Bug 1206572

Summary: nVidia driver gfxG06 RPM doesn't install
Product: [openSUSE] openSUSE Distribution Reporter: Aaron Williams <aaronw>
Component: X11 3rd Party DriverAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P3 - Medium CC: aaron.w2, aaronw
Version: Leap 15.4Flags: sndirsch: needinfo? (aaronw)
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Aaron Williams 2022-12-21 02:51:10 UTC
After recent changes the nVidia driver nvidia-gfxG06-kmp-default-525.60.11_k5.14.21_150400.22-lp154.15.2.x86_64 is installing broken symlinks in /lib/modules/5.14.21-150400.24.38-default/weak-updates/updates.
It is pointing to the old kernel /lib/modules/5.14.21-150400.22-default/updates/nvidia-drm.ko which does not exist. This is the RPMs.
I can manually install the drivers by going to the 
/usr/src/kernel-modules/nvidia-525.60.11-default directory and running make modules; make modules_innstall; depmod -a

The annoying part is I need to do this every single time there is a kernel update.
Comment 1 Stefan Dirsch 2022-12-31 22:26:35 UTC
This doesn't look that wrong. Indeed modules should be installed to /lib/modules/5.14.21-150400.22-default/updates/ and then symlinks pointing to these modules from current kernel tree.
Comment 2 Stefan Dirsch 2023-01-02 14:36:15 UTC
Hmm. I couldn't reproduce this. I made a fresh Leap 15.4 installation, added nvidia repo and installed G06 packages. nvidia is active after a reboot. Then I also made the Kernel security update.

# rpm -qa | grep nvidia
nvidia-gfxG06-kmp-default-525.60.11_k5.14.21_150400.22-lp154.15.2.x86_64
nvidia-computeG06-525.60.11-lp154.15.1.x86_64
x11-video-nvidiaG06-32bit-525.60.11-lp154.15.1.x86_64
nvidia-glG06-525.60.11-lp154.15.1.x86_64
nvidia-computeG06-32bit-525.60.11-lp154.15.1.x86_64
nvidia-glG06-32bit-525.60.11-lp154.15.1.x86_64
x11-video-nvidiaG06-525.60.11-lp154.15.1.x86_64
kernel-firmware-nvidia-20220509-150400.4.13.1.noarch

# rpm -qa | grep kernel|grep -v firmware
kernel-default-extra-5.14.21-150400.24.38.1.x86_64
kernel-macros-5.14.21-150400.24.38.1.noarch
kernel-devel-5.14.21-150400.24.38.1.noarch
kernel-devel-5.14.21-150400.22.1.noarch
kernel-default-devel-5.14.21-150400.24.38.1.x86_64
kernel-default-devel-5.14.21-150400.22.1.x86_64
kernel-default-optional-5.14.21-150400.24.38.1.x86_64
purge-kernels-service-0-8.3.1.noarch
kernel-default-5.14.21-150400.24.38.1.x86_64

# uname -r
5.14.21-150400.24.38-default

# find . | grep nvidia|grep updates
./5.14.21-150400.22-default/updates/nvidia-peermem.ko
./5.14.21-150400.22-default/updates/nvidia-modeset.ko
./5.14.21-150400.22-default/updates/nvidia.ko
./5.14.21-150400.22-default/updates/nvidia-drm.ko
./5.14.21-150400.22-default/updates/nvidia-uvm.ko
./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-peermem.ko
./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-modeset.ko
./5.14.21-150400.24.38-default/weak-updates/updates/nvidia.ko
./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-drm.ko
./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-uvm.ko

# lsmod | grep nvidia
nvidia_drm             73728  3
nvidia_modeset       1208320  5 nvidia_drm
nvidia_uvm           1327104  0
nvidia              56156160  208 nvidia_uvm,nvidia_modeset
drm_kms_helper        303104  1 nvidia_drm
drm                   630784  7 drm_kms_helper,nvidia,nvidia_drm

# ll ./5.14.21-150400.24.38-default/weak-updates/updates/*
lrwxrwxrwx 1 root root 60  2. Jan 15:13 ./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-drm.ko -> /lib/modules/5.14.21-150400.22-default/updates/nvidia-drm.ko
lrwxrwxrwx 1 root root 64  2. Jan 15:13 ./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-modeset.ko -> /lib/modules/5.14.21-150400.22-default/updates/nvidia-modeset.ko
lrwxrwxrwx 1 root root 64  2. Jan 15:13 ./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-peermem.ko -> /lib/modules/5.14.21-150400.22-default/updates/nvidia-peermem.ko
lrwxrwxrwx 1 root root 60  2. Jan 15:13 ./5.14.21-150400.24.38-default/weak-updates/updates/nvidia-uvm.ko -> /lib/modules/5.14.21-150400.22-default/updates/nvidia-uvm.ko
lrwxrwxrwx 1 root root 56  2. Jan 15:13 ./5.14.21-150400.24.38-default/weak-updates/updates/nvidia.ko -> /lib/modules/5.14.21-150400.22-default/updates/nvidia.ko

# ll /lib/modules/5.14.21-150400.22-default/updates/
total 158292
-rw-r--r-- 1 root root  6782928  2. Jan 15:13 nvidia-drm.ko
-rw-r--r-- 1 root root  2528256  2. Jan 15:13 nvidia-modeset.ko
-rw-r--r-- 1 root root   437928  2. Jan 15:13 nvidia-peermem.ko
-rw-r--r-- 1 root root 70051856  2. Jan 15:13 nvidia-uvm.ko
-rw-r--r-- 1 root root 82272376  2. Jan 15:13 nvidia.ko
Comment 3 Stefan Dirsch 2023-01-02 14:38:59 UTC
Please run the same commands and post the results here. Maybe we can find this way the culprit.
Comment 4 Stefan Dirsch 2023-01-26 04:02:35 UTC
Any news on this one?
Comment 5 Aaron Williams 2023-01-26 07:54:55 UTC
I'll run this again with the next update. I recall still seeing the failure with the last update last week.
Comment 6 Stefan Dirsch 2023-02-23 20:39:50 UTC
We have another update online since Feb 13. Please give it a try.
Comment 7 Stefan Dirsch 2023-03-11 10:13:49 UTC
Ok. Let's assume the issue is fixed now. Otherwise please reopen and run the same commands and post the results here as in comment#2.