NVIDIA – Patch for Kernel 5.14-rc. Support..
Thanks (again) to Joan Bruguera, there is a patch available for NVIDIA driver 465.31, at https://gist.github.com/joanbm/144a965c36fc1dc0d1f1b9be3438a368
I have tested this with the latest beta driver – 470.42.01 – and kernel 5.14-rc1, and it does apply OK (with some offsets):
……
patching file a/kernel/common/inc/nv-time.h
Hunk #2 succeeded at 215 (offset 9 lines).
patching file a/kernel/nvidia-drm/nvidia-drm-drv.c
Hunk #2 succeeded at 922 (offset 18 lines).
– and the resulting patched driver seems to load/run OK.. (after brief tests with KDE/Plasma etc..)
Robert Gadsdon. July 13th 2021.
Indeed, great work by Joan Bruguera.
Based on his efforts, it is also possible to get the legacy 390.143 driver to run with kernel 5.14.
The statements regarding TASK_INTERRUPTIBLE are residing in kernel/nvidia/nvlink_linux.c and kernel/nvidia/os-interface.c but the fix is the same as proposed by Joan for nv-time.h.
According to a hint from Michal Kubeček, I have replaced these statements like below:
– current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
The pdev fix in nvidia_drm_drv.c is the same in 390 as in 470.
So again – great work by Joan, saved not only me a lot of time 🙂 Thanks a lot!
And the same thanks to you for your hinting in troubleshooting this driver! 🙂
As my comment regarding the legacy driver 390.143 was deleted by the moderators:
Is it forbidden in general to make reference to this driver as this is a discussion pertaining to the latest beta drivers only?
If yes please apologize that I was not able to get this information from this thread’s Subject line.
Is there a more appropriate place to discuss the driver 390.143?
Thanks in advance.
Not ‘deleted’… Just awaiting moderation – to stop spammers..
RG
OK,thanks. I was just wondering why the comment was “Awaiting moderation” first but then disappeared entirely. That looked like it was deleted.