Help for nvidia driver install

Hi Nvidiaer,
my use ubuntu 20.04.3, and kernel is 5.13。
itls ok to installing NVIDIA-Linux-x86)64-535.98.run;
but there is error in installing NVIDIA-Linux-x86)64-465.19.01.run:

*/tmp/selfgz1770/NVIDIA-Linux-x86_64-465.19.01/kernel/nvidia-drm/nvidia-drm-crtc.c:456:23: error: initialization of 'int (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'int (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types]*
*  456 |     .atomic_check   = nv_drm_plane_atomic_check,*

i really need to using v465, please tell me which ubuntu &kernel version i should used.

Thanks very much!
lei

Hi, please give me a help, thanks

You might try downgrading ubuntu to the GA kernel though I doubt this will make the 465 driver compile.

Hi generix,
Thanks a lot, and could you tell me how to check which kernel version v465 compiled with?

Driver v465 is from may 2021 https://http.download.nvidia.com/XFree86/Linux-x86_64/465.31/
So the GA kernel 5.4 of Ubuntu 20.04 should work though a patch might still be needed due to backports: https://forums.developer.nvidia.com/t/linux-6-7-3-545-29-06-550-40-07-error-modpost-gpl-incompatible-module-nvidia-ko-uses-gpl-only-symbol-rcu-read-lock/280908?u=generix