The nvidia-drivers-435.21-r1 fails to compilve with kernel-5.4.x /tmp/portage/x11-drivers/nvidia-drivers-435.21-r1/work/kernel/nvidia-drm/nvidia-drm-drv.c:662:44: error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean ‘DRIVER_PCI_DMA’? 662 | .driver_features = DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER, | ^~~~~~~~~~~~ | DRIVER_PCI_DMA make[2]: *** [scripts/Makefile.build:266: /tmp/portage/x11-drivers/nvidia-drivers-435.21-r1/work/kernel/nvidia-drm/nvidia-drm-drv.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Reproducible: Always
Created attachment 629786 [details, diff] nvidia-drivers-435.21-kernel-5.4.patch Patch to solve problem
What's keeping you at 435.x?
I get random crashes of the 440 series driver with a memory access problem. The machine is still running as I can ssh into it, but the display is completely black. The log contains: ## Nov 25 12:08:35 [kernel] [92161.729665] X: page allocation failure: order:4, mode:0x6040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null) ## Nov 25 12:08:35 [kernel] [92161.729667] X cpuset=/ mems_allowed=0 ## Nov 25 12:08:35 [kernel] [92161.729671] CPU: 6 PID: 3049 Comm: X Tainted: P O 4.19.82-gentoo #1 ## Nov 25 12:08:35 [kernel] [92161.729671] Hardware name: ASUS All Series/Z97-A, BIOS 2012 09/30/2014 ## Nov 25 12:08:35 [kernel] [92161.729672] Call Trace: ## Nov 25 12:08:35 [kernel] [92161.729677] dump_stack+0x46/0x59 ## Nov 25 12:08:35 [kernel] [92161.729681] warn_alloc+0xdf/0x175 ## Nov 25 12:08:35 [kernel] [92161.729682] __alloc_pages_slowpath+0x6d2/0x6ff ## Nov 25 12:08:35 [kernel] [92161.729793] ? _nv033288rm+0xc/0x20 [nvidia] ## Nov 25 12:08:35 [kernel] [92161.729795] __alloc_pages_nodemask+0x163/0x1e0 ## Nov 25 12:08:35 [kernel] [92161.729797] kmalloc_order+0xf/0x35 ## Nov 25 12:08:35 [kernel] [92161.729798] kmalloc_order_trace+0x19/0x8c ## Nov 25 12:08:35 [kernel] [92161.729807] ? nv_kthread_q_stop+0x1810/0x29a0 [nvidia_modeset] It does not happen with 435. It looks similar to these problems: https://forums.developer.nvidia.com/t/still-experiencing-random-crashdumps-rhel7-7-x-page-allocation-failure-order-4-mode-0x40d0-in-nvkms-ioctl-nvidia-modeset/109301#5412883 https://forums.developer.nvidia.com/t/nvidia-gpu-kvm-switch-x11-crash/107065#5399854
(In reply to Jeroen Roovers from comment #2) > What's keeping you at 435.x? I reported only a problem encountered on the forum [1]. [1] https://forums.gentoo.org/viewtopic-t-1110844.html
(In reply to Marco Genasci from comment #4) > (In reply to Jeroen Roovers from comment #2) > > What's keeping you at 435.x? > > I reported only a problem encountered on the forum [1]. Why?
(In reply to Steve Evans from comment #3) > I get random crashes of the 440 series driver with a memory access problem. OK, I'll reopen. > The machine is still running as I can ssh into it, but the display is > completely black. Did you report this to Nvidia?
(In reply to Jeroen Roovers from comment #5) > (In reply to Marco Genasci from comment #4) > > (In reply to Jeroen Roovers from comment #2) > > > What's keeping you at 435.x? > > > > I reported only a problem encountered on the forum [1]. > > Why? This isn't correct? It's correct that a stable package not compile with a stable kernel?
I searched the nvidia forums and found similar reports, but never reported it myself. I will do so.
(In reply to Marco Genasci from comment #7) > (In reply to Jeroen Roovers from comment #5) > > (In reply to Marco Genasci from comment #4) > > > (In reply to Jeroen Roovers from comment #2) > > > > What's keeping you at 435.x? > > > > > > I reported only a problem encountered on the forum [1]. > > > > Why? > > This isn't correct? No, because you _apparently_ don't use this software so that generates all kinds of false positives. > It's correct that a stable package not compile with a stable kernel? Many questions! The race between kernel releases and proprietary drivers catching up is at work here. See also[0]: the warning has been in place for many months: ~/git/gentoo/x11-drivers/nvidia-drivers $ ebuild nvidia-drivers-435.21-r4.ebuild pretend Appending /home/jer/git/gentoo to PORTDIR_OVERLAY... * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.6.15-gentoo-JeR * Gentoo supports kernels which are supported by NVIDIA * which are limited to the following kernels: * <sys-kernel/gentoo-sources-5.4 * <sys-kernel/vanilla-sources-5.4 * * You are free to utilize eapply_user to provide whatever * support you feel is appropriate, but will not receive * support as a result of those changes. * * Do not file a bug report about this. * * Checking for suitable kernel configuration options... [ ok ] [0] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54642813c7ca3e633730b29f3491b24cd6976eac
Confirm: \"435.21\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DMODULE -DKBUILD_BASENAME='"nvidia_drm_linux"' -DKBUILD_MODNAME='"nvidia_drm"' -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-435.21-r7/work/kernel/nvidia-drm/nvidia-drm-linux.o /var/tmp/portage/x11-drivers/nvidia-drivers-435.21-r7/work/kernel/nvidia-drm/nvidia-drm-linux.c /var/tmp/portage/x11-drivers/nvidia-drivers-435.21-r7/work/kernel/nvidia-drm/nvidia-drm-drv.c:662:44: error: 'DRIVER_PRIME' undeclared here (not in a function); did you mean 'DRIVER_PCI_DMA'? 662 | .driver_features = DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER, | ^~~~~~~~~~~~ | DRIVER_PCI_DMA Emerge --info: bartali /home/jesnow # emerge --info Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/hardened, gcc-9.3.0, glibc-2.32-r2, 5.4.38-gentoo x86_64) ================================================================= System uname: Linux-5.4.38-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-gentoo-2.7 KiB Mem: 16322212 total, 7454336 free KiB Swap: 22330364 total, 20666112 free Timestamp of repository gentoo: Tue, 24 Nov 2020 23:00:01 +0000 Head commit of repository gentoo: 768258979b788969ffd7a23fccc2031afdf47fcb Head commit of repository TDE: fdd45a0650c023e2b92265d9aa6592491f4c9fe1 Head commit of repository abendbrot: 5835bdd21ddccdfe1dfea8e2b0a77690dfad4b81 Timestamp of repository audio-overlay: Wed, 25 Nov 2020 18:29:14 +0000 Head commit of repository audio-overlay: 0479a34746e1825cf37ce8175713c27b9cfe111f Head commit of repository cloveros: fd7a52022d156499d1dc2b9e6f626a65de5e875e Head commit of repository compiz-reloaded: 500baf890a527da0aafd0a97ae4fb19851b953d0 Head commit of repository tlp: ced908095a1bafc1af3583efc4a24b39e2ab8c12 sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 3.7.12 [enabled]