565 Video driver open modules not build with 6.13 kernel

I know that this kernel is still not officially released, do not write about it. Don’t fool yourself, after the official release the situation will be exactly the same as it has been many times

nvidia/nv.c:3918:9: Note: in macro extension  «NV_KMALLOC_ATOMIC»
 3918 |         NV_KMALLOC_ATOMIC(nvet, sizeof(nvidia_event_t));
      |         ^~~~~~~~~~~~~~~~~
  CC [M]  nvidia/nv-vtophys.o
  CC [M]  nvidia/os-interface.o
make[5]: *** [/usr/lib/modules/6.13.0-rc3-1-MANJARO/build/scripts/Makefile.build:194: nvidia/nv.o] error 1
make[5]: *** Waiting for tasks to complete…
In file included from nvidia/os-interface.c:27:
nvidia/os-interface.c: in function «os_alloc_mem»:
././common/inc/nv-linux.h:586:37: Warning: it is recommended to wrap empty body in operator «if» [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:637:13: Note: in macro extension «NV_KMALLOC_ATOMIC»
  637 |             NV_KMALLOC_ATOMIC(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
././common/inc/nv-linux.h:601:37: Warning: it is recommended to wrap empty body in operator «if» [-Wempty-body]
  601 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:643:13: Note: in macro extension «NV_KMALLOC_NO_OOM»
  643 |             NV_KMALLOC_NO_OOM(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
nvidia/os-interface.c: in function «os_queue_work_item»:
././common/inc/nv-linux.h:586:37: Warning: it is recommended to wrap empty body in operator «if» [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:1184:5:Note: in macro extension  «NV_KMALLOC_ATOMIC»
 1184 |     NV_KMALLOC_ATOMIC(oqd, sizeof(os_queue_data_t));
      |     ^~~~~~~~~~~~~~~~~
nvidia/os-interface.c: in function «os_alloc_wait_queue»:
././common/inc/nv-linux.h:572:37: Warning: it is recommended to wrap empty body in operator«if» [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
nvidia/os-interface.c:2059:5: Note: in macro extension  «NV_KMALLOC»
 2059 |     NV_KMALLOC(*wq, sizeof(os_wait_queue));
      |     ^~~~~~~~~~
make[4]: *** [/usr/lib/modules/6.13.0-rc3-1-MANJARO/build/Makefile:1989: .] error 2
make[3]: *** [/usr/lib/modules/6.13.0-rc3-1-MANJARO/build/Makefile:251: __sub-make] error 2
make[3]: exit from folder «/var/lib/dkms/nvidia/565.77/build/kernel-open»
make[2]: *** [Makefile:251: __sub-make] error 2
make[2]: exit from folder «/usr/lib/modules/6.13.0-rc3-1-MANJARO/build»
make[1]: *** [Makefile:115: modules] error 2
make[1]: exit from folder«/var/lib/dkms/nvidia/565.77/build/kernel-open»
make: *** [Makefile:59: modules] error 2
1 Like

aghhhh, back at it again. Hopefully this time nvidia can take proactive steps to fix this at a time before the kernel release. 6.12 left a lot of people with broken drivers and a lot of package maintainers being forced to apply patches.

Same for me. I use CLI to compile my drivers. Here is the relevant part of the nvidia-installer.log

LD [M] nvidia.o
ld: cannot find ./nvidia/nv-kernel.o: No such file or directory
LD [M] nvidia-uvm.o
make[4]: *** [/usr/src/linux-6.13.0-1/scripts/Makefile.build:388: nvidia.o] Error 1
LD [M] nvidia-modeset.o
ld: cannot find ./nvidia-modeset/nv-modeset-kernel.o: No such file or directory
make[4]: *** [/usr/src/linux-6.13.0-1/scripts/Makefile.build:388: nvidia-modeset.o] Error 1
LD [M] nvidia-drm.o
LD [M] nvidia-peermem.o
make[4]: Target ‘./’ not remade because of errors.
make[3]: *** [/usr/src/linux-6.13.0-1/Makefile:2012: .] Error 2
make[3]: Target ‘modules’ not remade because of errors.
make[2]: *** [/usr/src/linux-6.13.0-1/Makefile:251: __sub-make] Error 2
make[2]: Target ‘modules’ not remade because of errors.
make[2]: Leaving directory ‘/tmp/selfgz1961/NVIDIA-Linux-x86_64-565.77/kernel’
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-6.13.0-1’
make: *** [Makefile:115: modules] Error 2

Here is the full log

nvidia-installer.log.fail.txt (69.1 KB)

Patches for 6.13. For closed module it’s specifically 0001/0008/0009/0010, for open you can use all of them.

I’m on OpenSuse TumbleWeed … never heard of CachyOS … dunno if that makes a difference
Did an extract only applied the patches both ways…didn’t work. Guess I’m stuck with 550’s which are horrible on the Unigine Engine Heaven benchmark. It’s been a month and a half … would be nice if the developers could put out a new driver …

Ok, I added 0007 to the other patches. The results are in fail2.log. Then I was getting a nvidia-drm fail so I added the changed nvidia-drm-outputclass.conf file (don’t know if I needed that one or not), that log is fail3
nvidia-installer.log.fail2.txt (69.4 KB)
nvidia-installer.log.fail3.txt (69.4 KB)
. If I ever get this to compile I’ll just make one big patch … heh

I give up … kernel.o is not building and I can’t figure it out … applied patches 1 at a time, seperately, together etc…I guess I just need 565.8

In Arch-based systems with this easier, community fixes have been available for quite some time.
In version 570, as stated it is fixed, only unclear its status, there is published .run file, but no official information on nvidia sites.
upd:installed version 570, really works well on 6.13

THANK YOU !! i’m back to normal now on KDE Plasma/Wayland and TumbleWeed