Kernel – 5.13-rc1 – OK with patched VMware, Breaks NVIDIA..
Kernel 5.13-rc1 is out and brief details are here: http://lkml.iu.edu/hypermail/linux/kernel/2105.1/00457.html
VMware 16.1.1 (patched..) compiles and loads OK, but NVIDIA 465.27 compile fails:
..................................
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c: At top level:
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c:454: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]
454 | .atomic_check = nv_drm_plane_atomic_check,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c:454:23: note: (near initialization for ‘nv_plane_helper_funcs.atomic_check’)
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c:455:23: error: initialization of ‘void (*)(struct drm_plane *, struct drm_atomic_state *)’ from incompatible pointer type ‘void (*)(struct drm_plane *, struct drm_plane_state *)’ [-Werror=incompatible-pointer-types]
455 | .atomic_update = nv_drm_plane_atomic_update,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c:455:23: note: (near initialization for ‘nv_plane_helper_funcs.atomic_update’)
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c:456:23: error: initialization of ‘void (*)(struct drm_plane *, struct drm_atomic_state *)’ from incompatible pointer type ‘void (*)(struct drm_plane *, struct drm_plane_state *)’ [-Werror=incompatible-pointer-types]
456 | .atomic_disable = nv_drm_plane_atomic_disable,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.c:456:23: note: (near initialization for ‘nv_plane_helper_funcs.atomic_disable’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:272: /home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel/nvidia-drm/nvidia-drm-crtc.o] Error 1
make[1]: *** [Makefile:1839: /home/rgadsdon/NVIDIA-Linux-x86_64-465.27/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-5.13-rc1'
make: *** [Makefile:80: modules] Error 2
I had wondered if this might be compiler-related, but the same failure occurred with GCC 11.x (Fedora 34) and GCC 10.x (Fedora 33)..
Robert Gadsdon. May 9th, 2021
Joan Bruguera did it again it seems…: https://gist.github.com/joanbm or the ‘raw’ patch: https://gist.githubusercontent.com/joanbm/4a9d392e6f2d45c93ef434bda78174e5/raw/60a9d3846e6ba377da8cecaf56dd8eefa35ce03d/nvidia-fix-linux-5.13.patch
I successfully compiled it about 10 hours ago with Clang 12.0.1 (git version)
Thanks.!. I’ll test it (with GCC 11..)
RG.
> VMware 16.1.1 (patched..) compiles and loads OK
Where is the patch?
I got vmware to compile on linux-5.13-rc1, loaded, started vmware Windows 10, but it freezed everying including the linux host!
May be I’m doing something wrong, but works fine on 5.12.4
Thanks,
Jeff
Patch location is in an earlier article: https://rglinuxtech.com/?p=2859 The patch for 16.1.1 is there, in another tree, but seems the same as the 16.1.0 version.. 16.1.1 seems to run OK on most systems, but I had to revert to 16.1.0 on another, although there is no obvious error shown, just occasionally ‘freezing’ guest (win10)..
RG.
> Patch location is in an earlier article: https://rglinuxtech.com/?p=2859 The patch for 16.1.1 is there, in another tree, but seems the same as the 16.1.0 version.. 16.1.1 seems to run OK on most systems, but I had to revert to 16.1.0 on another, although there is no obvious error shown, just occasionally ‘freezing’ guest (win10)..
Got it! Thanks!