Comment # 23 on bug 1215981 from Petr Vorel
TL;DR: Probably problem in my setup, we can probably close this. The rest is a
description if you find something which I do obviously wrong or if there is
something what can be improved.

I wonder how can happen that 2 driver versions can coexist together?
(kernel-firmware-nvidia-gsp-G06-525.116 vs. kernel-firmware-nvidia-gspx-G06-535
and nvidia-open-driver-G06-signed-kmp-default-535 and
nvidia-open-driver-G06-signed-kmp-default-545):

$ rpm -qa |grep -i nvidia | sort
kernel-firmware-nvidia-20231107-1.1.noarch
kernel-firmware-nvidia-gsp-G06-525.116.04-2.1.x86_64
kernel-firmware-nvidia-gsp-G06-535.54.03-1.1.x86_64
kernel-firmware-nvidia-gspx-G06-535.113.01-1.1.x86_64
kernel-firmware-nvidia-gspx-G06-535.129.03-1.1.x86_64
kernel-firmware-nvidia-gspx-G06-535.129.03-11.1.x86_64
kernel-firmware-nvidia-gspx-G06-535.129.03-12.1.x86_64
kernel-firmware-nvidia-gspx-G06-545.29.02-13.1.x86_64
libnvidia-egl-wayland1-1.1.12-1.2.x86_64
libva-nvidia-driver-0.0.10-1.1.x86_64
nvidia-compute-G06-32bit-535.129.03-15.1.x86_64
nvidia-compute-G06-535.129.03-15.1.x86_64
nvidia-gl-G06-32bit-535.129.03-15.1.x86_64
nvidia-gl-G06-535.129.03-15.1.x86_64
nvidia-open-driver-G06-signed-kmp-default-535.129.03_k6.6.1_1-1.2.x86_64
nvidia-open-driver-G06-signed-kmp-default-545.29.02_k6.5.9_1-57.1.x86_64
nvidia-video-G06-32bit-535.129.03-15.1.x86_64
nvidia-video-G06-535.129.03-15.1.x86_64


$ rpm -qi kernel-firmware-nvidia-gspx-G06-545.29.02-13.1.x86_64
Name        : kernel-firmware-nvidia-gspx-G06
Version     : 545.29.02
Release     : 13.1
Architecture: x86_64
Install Date: Út 14. listopadu 2023, 09:27:44
Group       : System/Kernel
Size        : 64294720
License     : GPL-2.0-only AND SUSE-Firmware AND GPL-2.0-or-later AND MIT
Signature   : RSA/SHA256, Po 13. listopadu 2023, 16:53:44, Key ID
590401a1e38fb563
Source RPM  : kernel-firmware-nvidia-gspx-G06-545.29.02-13.1.nosrc.rpm
Build Date  : Po 13. listopadu 2023, 16:53:25
Build Host  : i04-ch2a
Vendor      : obs://build.opensuse.org/X11:Drivers:Video
URL         : https://www.nvidia.com/en-us/drivers/unix/
Summary     : Kernel firmware file for open NVIDIA kernel module driver G06
Description :
This package contains the versioned kernel firmware file "gsp.bin" for
the OpenSource NVIDIA kernel module driver G06.
Distribution: X11:Drivers:Video:Redesign / openSUSE_Tumbleweed

$ rpm -qi kernel-firmware-nvidia-gspx-G06-535.129.03-1.1.x86_64
Name        : kernel-firmware-nvidia-gspx-G06
Version     : 535.129.03
Release     : 1.1
Architecture: x86_64
Install Date: Pá 10. listopadu 2023, 07:23:53
Group       : System/Kernel
Size        : 61824832
License     : GPL-2.0-only AND SUSE-Firmware AND GPL-2.0-or-later AND MIT
Signature   : RSA/SHA512, Čt 2. listopadu 2023, 20:48:50, Key ID
35a2f86e29b700a4
Source RPM  : kernel-firmware-nvidia-gspx-G06-535.129.03-1.1.nosrc.rpm
Build Date  : Čt 2. listopadu 2023, 20:48:26
Build Host  : i04-ch1b
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://www.nvidia.com/en-us/drivers/unix/
Summary     : Kernel firmware file for open NVIDIA kernel module driver G06
Description :
This package contains the versioned kernel firmware file "gsp.bin" for
the OpenSource NVIDIA kernel module driver G06.
Distribution: openSUSE Tumbleweed

I suppose this is due multiversion = provides:multiversion(kernel), right?

Because I see that both nvidia-open-driver devel [1] and factory [2] have the
same newer version, the same applies to kernel-firmware-nvidia-gspx-G06 [3] [4]
I removed obs://build.opensuse.org/X11:Drivers:Video and removed packages and
install only the latest version.

After this, the default value ("options nvidia-drm modeset=1 fbdev=1" and *not*
set NVreg_OpenRMEnableSupporteGpus=1) was working for xorg. After installation
the still was not working even I run dracut, I needed to ssh to the system,
rerun dracut and reboot to get it working. Let's assume I did something wrong,
that's why I needed to rerun dracut via ssh. But sway did not work.

Removing "fbdev=1" made no difference (working xorg, broken sway).

Adding NVreg_OpenRMEnableSupporteGpus=1 is the option which breaks booting.

For sway are also needed nvidia-video-G06 (otherwise sway startup freezes) and
nvidia-gl-G06 (sway startup fails) from the proprietary NVIDIA repository.

i.e. both kernel open driver
nvidia-open-driver-G06-signed-kmp-default-545.29.02_k6.6.1_1-1.1.x86_64 and GPU 
and proprietary NVIDIA OpenGL libraries are needed for sway (while this might
be obvious from the block post [5] it was new for me, because sway claims
"don't use nvidia proprietary").

[1]
https://build.opensuse.org/package/view_file/X11:Drivers:Video:Redesign/nvidia-open-driver-G06-signed/nvidia-open-driver-G06-signed.changes?expand=1
[2]
https://build.opensuse.org/package/view_file/openSUSE:Factory/nvidia-open-driver-G06-signed/nvidia-open-driver-G06-signed.changes?expand=1
[3]
https://build.opensuse.org/package/view_file/X11:Drivers:Video:Redesign/kernel-firmware-nvidia-gspx-G06/kernel-firmware-nvidia-gspx-G06.changes?expand=1
[4]
https://build.opensuse.org/package/view_file/openSUSE:Factory/kernel-firmware-nvidia-gspx-G06/kernel-firmware-nvidia-gspx-G06.changes?expand=1
[5] https://sndirsch.github.io/nvidia/2022/06/07/nvidia-opengpu.html


You are receiving this mail because: