Bug 50819

Summary: e2c3: X drm modules
Product: Branch p10 Reporter: AlexOrl <a.orlov>
Component: firefoxAssignee: Michael Shigorin <mike>
Status: NEW --- QA Contact: qa-p10 <qa-p10>
Severity: normal    
Priority: P1 CC: amakeenk, mike
Version: не указана   
Hardware: e2k   
OS: Linux   
Attachments:
Description Flags
dmesg загрузки (Симпли 10.2 / e2c3)
none
Симпли 10.2 / e2c3: лог загрузки графической подсистемы
none
Симпли 10.2 / e2c3: лог старта видео-плееров
none
OS Elbrus 6.x / e2c3: для сравнения лог загрузки X-сервера на ОС Эльбрус одной из ранних сборок (Linux version 5.4.0-3.22-e2c3 (root@avior-2) (lcc:1.25.20:Nov-17-2021:e2k-v6-linux.cross:x86_64-li none

Description AlexOrl 2024-07-04 15:56:04 MSK
Created attachment 16367 [details]
dmesg загрузки (Симпли 10.2 / e2c3)

Исходная ОС: Simply Linux 10.2  (Captain Finn)
Ядро: Linux 5.10.210-elbrus-def-alt1.20.1
Архитектура:e2k
Дополнительно:
#  cat /proc/bootdata
boot_ver='
boot#10138 branches/l_e16c; tlu#36380 e16c.last/dbg/GLOB_INCL()
built on Oct 17 2023 at 20:13:08'
mb_type='unknown' (0x0)
chipset_type='IOHUB'
cpu_type='E2C3'
cache_lines_damaged=0
...

*Проблем несколько:

1) Сборка firefox по умолчанию (91.13 чего-то там, e2kv6) -- говорят не желает элементарное - проигрывать YouTube 360p, в реальном времени;

2) MPV, VLC, Mplayer при старте воспроизведения видео MP4, без доп.параметров, вылетают с различными ошибками (пользователь от имени которого стартует воспроизведение, по умолчанию, состоит в группах audio, video и др.):

$  vlc /run/media/user/ARCH/Vid/video_2024-06-26_21-10-27.mp4
VLC media player 3.0.18 Vetinari (revision 3.0.18-alt3)
...
libEGL warning: DRI2: failed to authenticate
Failed to open VDPAU backend libvdpau_nvidia.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога
libEGL warning: DRI2: failed to authenticate
Error:lccrt_ctx_load_plugin:543: Can't open plugin [asm] config file [/usr/lib/lccrt/plugin/asm/plugin.conf]
...
Error:lccrt_context_find_plugin:757: No plugin with name [lccopt-e2k64]
...
ERROR: backend's compilation fails

...
$  mpv /run/media/user/ARCH/Vid/video_2024-06-26_21-10-27.mp4
 (+) Video --vid=1 (*) (h264 640x360 30.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
pci id for fd 10: 1fff:8031, driver (null)
MESA-LOADER: failed to open mga2: /usr/lib64/X11/modules/dri/mga2_dri.so: cannot open shared object file: No such file or directory (search
failed to load driver: mga2
[vo/gpu/drm] Failed to acquire DRM master: Permission denied
[vo/gpu/drm] Failed to commit ModeSetting atomic request: Permission denied
[vo/gpu/opengl] Failed to set CRTC for connector 49: Permission denied
...
[vo/xv] No Xvideo support found.
[vo/sdl] Using opengl
[vo/sdl] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the sdl VO.
[W][00321.260362] pw.conf      | [          conf.c: 1008 try_load_conf()] can't load config client-rt.conf: No such file or directory
[E][00321.261671] pw.conf      | [          conf.c: 1030 pw_conf_load_conf_for_context()] can't load config client-rt.conf: No such file or
AO: [pulse] 48000Hz stereo 2ch float
VO: [sdl] 640x360 yuv420p
Error:lccrt_ctx_load_plugin:543: Can't open plugin [asm] config file [/usr/lib/lccrt/plugin/asm/plugin.conf]
: No such file or directory
Error:lccrt_context_find_plugin:757: No plugin with name [lccopt-e2k64]
: No such file or directory
ERROR: backend's compilation fails

Аварийный останов

3) при старте X-сервера не наблюдается использования модулей DRM (mga2/pvr) -- что, к примеру, наличествует в случае OSL:
[   164.485]
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[   164.485] Build Operating System: Linux 4.9.0-6-amd64 x86_64
[   164.485] Current Operating System: Linux elbrus2c3 5.4.0-3.22-e2c3 #1 SMP Sun Apr 3 19:57:12 MSK 2022 e2k
[   164.485] Kernel command line: console=tty0 consoleblank=0 video=HDMI-0:1920x1080@60 mga2.lvds=0 mga2.hdmi=1 root=UUID=a65116b5-d0f2-4bb
[   164.485] Build Date: 11 February 2022  02:23:47AM
...
[   164.503] (II) xfree86: Adding drm device (/dev/dri/card0)
[   164.505] (II) xfree86: Adding drm device (/dev/dri/card1)
[   164.518] (--) PCI:*(0@0:26:0) 1fff:8031:0000:0005 rev 0, Mem @ 0x60180000/524288
[   164.518] (--) PCI: (0@0:27:0) 1fff:802a:0000:0000 rev 0, Mem @ 0x60100000/524288
[   164.519] (--) PCI: (0@0:28:0) 1fff:802b:0000:0000 rev 0, Mem @ 0x60080000/524288
[   164.519] (--) PCI: (0@0:29:0) 1fff:802c:0000:0000 rev 0, Mem @ 0x60040000/262144
[   164.519] (--) PCI: (0@0:30:0) 1fff:802d:0000:0000 rev 0, Mem @ 0x60001000/4096
[   164.519] (--) PCI: (0@0:31:0) 1fff:802e:0000:0000 rev 0, Mem @ 0x60000000/4096
[   164.519] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   164.519] (II) LoadModule: "glx"
[   164.522] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   164.546] (II) Module glx: vendor="X.Org Foundation"
[   164.546]    compiled for 1.20.13, module version = 1.0.0
[   164.546]    ABI class: X.Org Server Extension, version 10.0
[   164.553] (II) LoadModule: "mga2"
[   164.553] (II) Loading /usr/lib/xorg/modules/drivers/mga2_drv.so
[   164.556] (II) Module mga2: vendor="X.Org Foundation"
[   164.556]    compiled for 1.20.13, module version = 2.0.0
[   164.556]    Module class: X.Org Video Driver
[   164.556]    ABI class: X.Org Video Driver, version 24.1
[   164.556] (II) MGA2: Driver for MCST chipsets: MGA2, MGA2.5, MGA2.6
[   164.556] (++) using VT number 7
...
[   165.114] (II) Initializing extension DRI2
[   165.116] (WW) MGA2(0): Failed to retrieve fbcon fb: id 53
[   165.204] (II) MGA2(0): Setting screen physical size to 1185 x 423
[   165.204] resize called 4480 1600
...

***в случае Alt Simply:

X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
[    21.343] Build Operating System: ALT p10 (Aronia) e2k
[    21.343] Current Operating System: Linux BITBLAZE 5.10.210-elbrus-def-alt1.20.1 #1 SMP Sat Apr 20 20:25:00 UTC 2024 e2k
[    21.343] Kernel command line: console=ttyS0,115200 console=tty0 hardreset root=UUID=152838e8-2f3f-445e-a692-899eda585500 mtdparts=spi0.0:4672k(rBOOT),64k(rWORK),64k(rDEV3),64k(rS3S4),640k(rVROM),9856k(rU_OS)
[    21.343] Build Date: 29 May 2024  07:30:27PM
...
[    21.366] (II) xfree86: Adding drm device (/dev/dri/card0)
[    21.366] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1a.0/drm/card0
[    21.367] (DB) /dev/dri/card0 has 2 connectors
[    21.367] (II) xfree86: Adding drm device (/dev/dri/card1)
[    21.367] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1b.0/e2c3_gpu_rogue.2.auto/drm/card1
[    21.382] (--) PCI:*(0@0:26:0) 1fff:8031:0000:0005 rev 0, Mem @ 0x60180000/524288
[    21.382] (--) PCI: (0@0:27:0) 1fff:802a:0000:0000 rev 0, Mem @ 0x60100000/524288
[    21.382] (--) PCI: (0@0:28:0) 1fff:802b:0000:0000 rev 0, Mem @ 0x60080000/524288
[    21.383] (--) PCI: (0@0:29:0) 1fff:802c:0000:0000 rev 0, Mem @ 0x60040000/262144
[    21.383] (--) PCI: (0@0:30:0) 1fff:802d:0000:0000 rev 0, Mem @ 0x60001000/4096
[    21.384] (--) PCI: (0@0:31:0) 1fff:802e:0000:0000 rev 0, Mem @ 0x60000000/4096
[    21.384] (II) LoadModule: "glx"
[    21.399] (II) Loading /usr/lib64/X11/modules/extensions/libglx.so
[    21.424] (II) Module glx: vendor="X.Org Foundation"
[    21.424]    compiled for 1.20.14, module version = 1.0.0
[    21.424]    ABI class: X.Org Server Extension, version 10.0
[    21.425] (==) Matched modesetting as autoconfigured driver 0
[    21.425] (==) Matched fbdev as autoconfigured driver 1
[    21.425] (==) Assigned the driver to the xf86ConfigLayout
[    21.425] (II) LoadModule: "modesetting"
[    21.425] (II) Loading /usr/lib64/X11/modules/drivers/modesetting_drv.so
[    21.427] (II) Module modesetting: vendor="X.Org Foundation"
[    21.427]    compiled for 1.20.14, module version = 1.20.14
[    21.427]    Module class: X.Org Video Driver
[    21.427]    ABI class: X.Org Video Driver, version 24.1
[    21.427] (II) LoadModule: "fbdev"
[    21.428] (II) Loading /usr/lib64/X11/modules/drivers/fbdev_drv.so
[    21.429] (II) Module fbdev: vendor="X.Org Foundation"
[    21.429]    compiled for 1.20.14, module version = 0.5.0
[    21.429]    Module class: X.Org Video Driver
[    21.429]    ABI class: X.Org Video Driver, version 24.1
[    21.429] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    21.429] (II) FBDEV: driver for framebuffer: fbdev
[    21.429] (II) modeset(0): using drv /dev/dri/card0
[    21.429] (WW) Falling back to old probe method for fbdev
[    21.429] (II) Loading sub module "fbdevhw"
[    21.429] (II) LoadModule: "fbdevhw"
[    21.429] (II) Loading /usr/lib64/X11/modules/libfbdevhw.so
[    21.431] (II) Module fbdevhw: vendor="X.Org Foundation"
[    21.431]    compiled for 1.20.14, module version = 0.0.2
[    21.431]    ABI class: X.Org Video Driver, version 24.1
[    21.432] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
...
[    22.476] (II) Loading sub module "fb"
[    22.476] (II) LoadModule: "fb"
[    22.476] (II) Loading /usr/lib64/X11/modules/libfb.so
[    22.478] (II) Module fb: vendor="X.Org Foundation"
[    22.478]    compiled for 1.20.14, module version = 1.0.0
[    22.479]    ABI class: X.Org ANSI C Emulation, version 0.4
[    22.479] (II) UnloadModule: "fbdev"
[    22.479] (II) Unloading fbdev
[    22.479] (II) UnloadSubModule: "fbdevhw"
[    22.479] (II) Unloading fbdevhw
[    22.484] (==) modeset(0): Backing store enabled
[    22.484] (==) modeset(0): Silken mouse enabled
[    22.488] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    22.489] (==) modeset(0): DPMS enabled
...
[    22.506] (II) SELinux: Disabled on system
[    22.506] (II) Initializing extension GLX
[    22.506] (II) AIGLX: Screen 0 is not DRI2 capable
[    22.531] (II) IGLX: Loaded and initialized swrast
[    22.531] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    22.531] (II) Initializing extension XFree86-VidModeExtension
[    22.532] (II) Initializing extension XFree86-DGA
[    22.532] (II) Initializing extension XFree86-DRI
[    22.533] (II) Initializing extension DRI2
[    22.534] (II) modeset(0): Damage tracking initialized
[    22.534] (II) modeset(0): Setting screen physical size to 527 x 296
...


Все логи прикладываю ниже; Догадки не строю, но тех модулей, что проскакивают в логах, в сборке Симли 10.2 для X-сервера как-будто действительно не существует?! / в том числе модуля ядра pvr.ko, используемого в OSL.

* * *

Подскажите, пожалуйста, когда примерно ждать или какой вариант p10 использовать, чтобы юзерские задачи обычного просмотра видео штатно закрывать на Elbrus e2c3?

* * *

P.S> да, по слухам, как-будто части проблем (проигрывание 360p Youtube в FF без ощутимых задержек) нет в более ранней версии Симпли 10.1; но для проигрывания сохраненных на диске MP4-видео все одно необходимо вручную указывать софтверный вывод через X11, чтобы успешно посмотреть -- что, кстати, позволяет вполне свободно, без задержек просматривать 2K/1K/FullHD 25...29fps (h264) на 2-х ядрах К1891ВМ06 без аппаратного ускорения!
Comment 1 AlexOrl 2024-07-04 15:57:25 MSK
Created attachment 16368 [details]
Симпли 10.2 / e2c3: лог загрузки графической подсистемы
Comment 2 AlexOrl 2024-07-04 15:58:34 MSK
Created attachment 16369 [details]
Симпли 10.2 / e2c3: лог старта видео-плееров
Comment 3 AlexOrl 2024-07-04 16:01:34 MSK
Created attachment 16370 [details]
OS Elbrus 6.x / e2c3: для сравнения лог загрузки X-сервера на ОС Эльбрус одной из ранних сборок (Linux version 5.4.0-3.22-e2c3 (root@avior-2) (lcc:1.25.20:Nov-17-2021:e2k-v6-linux.cross:x86_64-li