On 02.05.2021 20:20, Andrei Borzenkov wrote:
On 02.05.2021 18:18, Mailings wrote:
Hi Michael, Andrei
thanks for your swift responses! One correction: I mentioned the wrong kernel version - its 5.11.15 for build 20210425.
Michael - I've tried your suggestion but it failed complaining about a - in my words - "mismatch" with nvidia-gfxG05-kmp-default-460.73.01_k5.11.11_1-37.1.x86_64.rpm (The file I've tee'd the output to got overwritten so regrettably I can't provide more details, grmbl) The kernel-source for 5.11.15 is present.
Your comment and also Andrei's point stating the nvidia modules are compiled on the machine made me try to update to the latest available build 20210429 which employs kernel 5.12.0. (Not knowing much about the "nvidia issue" I assumed nvidia are trying to keep some stuff from others looking into, thus forcing download of some pre-complied objects rather than to compile in situ)
After the change to 5.12.0 all is fine again - I'm writing this mail on the system.
One observation: I was following the update closely (which I usually don't do ;-)) and was concerned when I saw:
------------------------------------------------------------------------------------------------------------
.......BTF [M] /usr/src/kernel-modules/nvidia-460.73.01-default/nvidia.ko Skipping BTF generation for /usr/src/kernel-modules/nvidia-460.73.01-default/ nvidia.ko due to unavailability of vmlinux make[2]: Verzeichnis „/usr/src/linux-5.12.0-1-obj/x86_64/default“ wird verlassen make[1]: Leaving directory '/usr/src/linux-5.12.0-1' ld -r -o nv-linux.o \ nvidia.mod.o nvidia/nv-interface.o ld: cannot find nvidia/nv-interface.o: No such file or directory make: *** [Makefile:113: nv-linux.o] Error 1
Yes, I can reproduce it. It is due to this line of nvidia/nvidia.Kbuild:
always += $(NVIDIA_INTERFACE)
Changing it to
always-m += $(NVIDIA_INTERFACE)
allows build to complete. I am not exactly sure what this part does and why it fails for 5.12 and not for 5.11, but you should open bug report on openSUSE bugzilla and possibly report it nvidia.
OK, apparently older kernels accepted "always" and 5.12 no more. This is usual case of nVidia build being broken with kernel updates. tw:/usr/src/kernel-modules/nvidia-460.73.01-default # make -f Makefile nv-linux.o SYSSRC=/lib/modules/5.11.15-1-default/source SYSOUT=/usr/src/linux-5.11.15-1-obj/x86_64/default make[1]: Entering directory '/usr/src/linux-5.11.15-1' make[2]: Entering directory '/usr/src/linux-5.11.15-1-obj/x86_64/default' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead Open bug report for openSUSE and possible for nVidia. P.S. I was not sure whether to use always-y or always-m, apparently both work. Some kernel guru needs to chime in. Kernel documentation mentions both.