NVIDIA – Extra 440.59 Patch for 5.6-rc3 – With a Gotcha..
Thanks to Isaak I. Aleksandrov, there is now an additional patch for NVIDIA driver 440.59 to accommodate the Y2038 changes in Kernel 5.6-rc3. This should be applied after the original 5.6-rc1 patch ( https://gitlab.com/snippets/1937313 ), and can be found here: https://gitlab.com/snippets/1944237
I have tested this, and it compiles OK with GCC9 (current distros) but fails with GCC10 (pre-beta Fedora 32):
............
/home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.c: In function ‘nvswitch_os_get_platform_time’:
/home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.c:1583:21: error: storage size of ‘ts’ isn’t known
1583 | struct timespec ts;
| ^~
/home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.c:1585:5: error: implicit declaration of function ‘getnstimeofday’; did you mean ‘nv_gettimeofday’? [-Werror=implicit-function-declaration]
1585 | getnstimeofday(&ts);
| ^~~~~~~~~~~~~~
| nv_gettimeofday
/home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.c:1586:21: error: implicit declaration of function ‘timespec_to_ns’; did you mean ‘timespec64_to_ns’? [-Werror=implicit-function-declaration]
1586 | return ((NvU64) timespec_to_ns(&ts));
| ^~~~~~~~~~~~~~
| timespec64_to_ns
/home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.c:1583:21: warning: unused variable ‘ts’ [-Wunused-variable]
1583 | struct timespec ts;
| ^~
/home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.c:1587:1: warning: control reaches end of non-void function [-Wreturn-type]
1587 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:268: /home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel/nvidia/linux_nvswitch.o] Error 1
make[1]: *** [Makefile:1681: /home/rgadsdon/NVIDIA-Linux-x86_64-440.59-custom/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-5.6-rc3'
make: *** [Makefile:81: modules] Error 2
Robert Gadsdon. February 24th 2020.
The patches does not work on 5.6-rc3, kernel-5.6.patch, timeval_hack.patch does not work, correct the infos
Thanks for giving the patch a try, and I’m sorry for the mistake on my part. Really shouldn’t post patches and code without properly testing beforehand…
Anyway, I’m (kinda) pretty confident it should now work. No need for the extra patch this time ’round.