Kernel 4.20-rc1 with 410.73 - Patched to Fix Compile, but Not Working Correctly..

Patched the source of 410.73 - with the pm patch already applied - to fix the two compile time errors:

NVIDIA-Linux-x86_64-410.73-custom/kernel/nvidia/linux_nvswitch.c:1582:5: error: implicit declaration of function ‘time_to_tm’; did you mean ‘time64_to_tm’? [-Werror=implicit-function-declaration]

and

NVIDIA-Linux-x86_64-410.73-custom/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:348:11: error: implicit declaration of function ‘vm_insert_pfn’; did you mean ‘vmf_insert_pfn’? [-Werror=implicit-function-declaration]

Compiled successfully, but with repeated warnings:

NVIDIA-Linux-x86_64-410.73-custom/kernel/nvidia-uvm/uvm_linux.h:270:2: warning: #warning "atomic64_t unavailable, demoting to atomic_t!" [-Wcpp]
#warning "atomic64_t unavailable, demoting to atomic_t!"

At runtime, the screen flickered with garbage characters, and eventually loaded, with warnings…

[ 121.826292] [drm] [nvidia-drm] [GPU ID 0x00000200] Loading driver
[ 121.972324] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d8000-0x000dbfff window]
[ 121.972471] caller _nv001126rm+0xe3/0x1d0 [nvidia] mapping multiple BARs
[ 125.546191] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[ 125.565592] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 125.565593] [drm] No driver support for vblank timestamp query.
[ 125.646943] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:02:00.0 on minor 0
[ 135.550609] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[ 138.805999] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[ 142.181899] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[ 199.227105] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[ 202.773576] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[ 206.041776] nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.

This is obviously not a ‘correct’ solution, so any advice would be appreciated!

Robert Gadsdon
rglinuxtech.com

Thanks to [i]loqs[/i], there is now a patch for NVIDIA 415.18 and kernel 4.20.

I have tested this with 4.20-rc3, and everything seems to be working correctly (KDE/Plasma etc…).

See: [url]http://rglinuxtech.com/?p=2443[/url]

Robert Gadsdon.
rglinuxtech.com