failed to start gnome/gdm3 wayland session after apply NPU patches

Tomeu Vizoso tomeu.vizoso at collabora.com
Tue Jan 3 06:46:00 PST 2023


Hi Ning,

On 12/27/22 05:21, Zhang Ning wrote:
> Hi, Tomeu
> 
> after apply your NPU patches:
> http://lists.infradead.org/pipermail/linux-amlogic/2022-December/014428.html
> 
> VIM3 failed to start gnome/gdm3 wayland session.
> 
> before:
> 
> VIM3:~$ ls /dev/dri/by-path/ -l
> total 0
> lrwxrwxrwx 1 root root  8 Dec 27 04:06 platform-ff900000.vpu-card -> ../card0
> lrwxrwxrwx 1 root root  8 Dec 27 04:06 platform-ffe40000.gpu-card -> ../card1
> lrwxrwxrwx 1 root root 13 Dec 27 04:06 platform-ffe40000.gpu-render -> ../renderD128
> 
> after:
> 
> VIM3:~$ ls /dev/dri/by-path/ -l
> total 0
> lrwxrwxrwx 1 root root  8 Dec 27 04:10 platform-etnaviv-card -> ../card0
> lrwxrwxrwx 1 root root 13 Dec 27 04:10 platform-etnaviv-render -> ../renderD128
> lrwxrwxrwx 1 root root  8 Dec 27 04:10 platform-ff900000.vpu-card -> ../card1
> lrwxrwxrwx 1 root root  8 Dec 27 04:10 platform-ffe40000.gpu-card -> ../card2
> lrwxrwxrwx 1 root root 13 Dec 27 04:10 platform-ffe40000.gpu-render -> ../renderD129
> 
> the fail log:
> Dec 27 04:10:42 VIM3 gnome-shell[673]: g_hash_table_destroy: assertion 'hash_table != NULL' failed
> Dec 27 04:10:42 VIM3 gnome-shell[673]: Failed to open gpu '/dev/dri/card0': No suitable mode setting backend found
> Dec 27 04:10:42 VIM3 gnome-shell[673]: Added device '/dev/dri/card1' (meson) using atomic mode setting.
> Dec 27 04:10:42 VIM3 gnome-shell[673]: g_hash_table_destroy: assertion 'hash_table != NULL' failed
> Dec 27 04:10:42 VIM3 gnome-shell[673]: Failed to open gpu '/dev/dri/card2': No suitable mode setting backend found
> Dec 27 04:10:42 VIM3 gnome-shell[673]: Failed to initialize accelerated iGPU/dGPU framebuffer sharing: No matching EGL configs
> Dec 27 04:10:42 VIM3 gnome-shell[673]: Created gbm renderer for '/dev/dri/card1'
> Dec 27 04:10:42 VIM3 gnome-shell[673]: Integrated GPU /dev/dri/card1 selected as primary
> 
> how to configure system to boot to gui with npu enabled?

Maybe you can do that by setting the "mutter-device-preferred-primary" 
udev tag for card2?

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1562

Regards,

Tomeu



More information about the linux-amlogic mailing list