Am 23/03/2024 um 17:42 schrieb Andrei Borzenkov:
On 23.03.2024 19:07, Peter Maffter wrote:
I expected that someone can explain to me, why they simply dropped out DRM_UNLOCKED
You can read linux kernel commit log why this particular change happened. It may have been discussed on the corresponding development mailing lists (which you can find in MAINTAINERS file in Linux kernel sources) and/or LKML and found in archives. This list is the last place suitable for this question.
Internal kernel API is changing constantly. There is nothing new.
if I can reenter it and how I can compile nVidia drivers again.
You need to adapt NVIDIA driver to the new kernel API. You may look for changes in 550 series which is compatible with kernel 6.8. It may be enough as long as no modification of closed source part on NVIDIA driver is required.
Sorry Andrei for addressing you directly in my last email. This is quite an old system from Dec 2011. So no secure boot or similar. ll /sys/firmware/ total 0 drwxr-xr-x 5 root root 0 Mar 23 19:54 acpi drwxr-xr-x 4 root root 0 Mar 23 19:54 dmi drwxr-xr-x 20 root root 0 Mar 23 20:06 memmap ;-) I used the nVidia compile command from From: Bjoern Voigt via openSUSE Users <users@lists.opensuse.org> Date: Tue, 21 Nov 2023 11:37:52 +0100 Subject: Re: nVidia: build error with kernel 6.6.1 after editing nvidia-drm-drv.c and replacing DRM_UNLOCKED with 0 according to https://github.com/CachyOS/kernel-patches/blob/master/6.8/misc/nvidia/0001-n... It compiles now without error but there seems to be a problem with depmod and vmlinux not known: ... CC [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm/nvidia-drm-gem-user-memory.o LD [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm.o ld -r -o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-interface.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-frontend.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-instance.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-gpu-numa.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-acpi.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-chrdev.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-cray.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-dma.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-gvi.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-i2c.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-mempool.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-mmap.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-p2p.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-pat.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-procfs.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-usermap.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-vm.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-vtophys.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/os-interface.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/os-mlock.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/os-pci.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/os-registry.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/os-usermap.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-modeset-interface.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-pci-table.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-kthread-q.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-kthread-q-selftest.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-memdbg.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-ibmnpu.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv-report-err.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nv_uvm_interface.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia/nvlink_linux.o ld -r -o /usr/src/kernel-modules/nvidia-390.157-default/nvidia-modeset/nv-modeset-interface.o /usr/src/kernel-modules/nvidia-390.157-default/nvidia-modeset/nvidia-modeset-linux.o MODPOST /usr/src/kernel-modules/nvidia-390.157-default/Module.symvers CC [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia.mod.o LD [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia.ko BTF [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia.ko Skipping BTF generation for /usr/src/kernel-modules/nvidia-390.157-default/nvidia.ko due to unavailability of vmlinux CC [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-uvm.mod.o LD [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-uvm.ko BTF [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-uvm.ko Skipping BTF generation for /usr/src/kernel-modules/nvidia-390.157-default/nvidia-uvm.ko due to unavailability of vmlinux CC [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-modeset.mod.o LD [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-modeset.ko BTF [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-modeset.ko Skipping BTF generation for /usr/src/kernel-modules/nvidia-390.157-default/nvidia-modeset.ko due to unavailability of vmlinux CC [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm.mod.o LD [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm.ko BTF [M] /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm.ko Skipping BTF generation for /usr/src/kernel-modules/nvidia-390.157-default/nvidia-drm.ko due to unavailability of vmlinux make[2]: Leaving directory '/usr/src/linux-6.8.1-1-obj/x86_64/default' make[1]: Leaving directory '/usr/src/linux-6.8.1-1' make[1]: Entering directory '/usr/src/linux-6.8.1-1' make[2]: Entering directory '/usr/src/linux-6.8.1-1-obj/x86_64/default' INSTALL /usr/lib/modules/6.8.1-1-default/kernel/drivers/video/nvidia.ko INSTALL /usr/lib/modules/6.8.1-1-default/kernel/drivers/video/nvidia-uvm.ko INSTALL /usr/lib/modules/6.8.1-1-default/kernel/drivers/video/nvidia-modeset.ko INSTALL /usr/lib/modules/6.8.1-1-default/kernel/drivers/video/nvidia-drm.ko DEPMOD /usr/lib/modules/6.8.1-1-default Warning: modules_install: missing 'System.map' file. Skipping depmod. make[2]: Leaving directory '/usr/src/linux-6.8.1-1-obj/x86_64/default' make[1]: Leaving directory '/usr/src/linux-6.8.1-1' rm -f -r conftest make[1]: Entering directory '/usr/src/linux-6.8.1-1' make[2]: Entering directory '/usr/src/linux-6.8.1-1-obj/x86_64/default' CLEAN /usr/src/kernel-modules/nvidia-390.157-default CLEAN /usr/src/kernel-modules/nvidia-390.157-default/Module.symvers make[2]: Leaving directory '/usr/src/linux-6.8.1-1-obj/x86_64/default' make[1]: Leaving directory '/usr/src/linux-6.8.1-1' But I can boot to 6.8.1-1 without graphic system and only command line. I am missing here another point obviously and googling for the 2 errors does not give a sufficient solution for the nVidia case, but a lot of stuff for other drivers. I do guess it is a simple root cause for "Skipping BTF generation for /usr/src/kernel-modules/nvidia-390.157-default /nvidia-modeset.ko due to unavailability of vmlinux" and "Warning: modules_install: missing 'System.map' file. Skipping depmod." BR