Kernel – 4.19-rc1 – OK with VMware, breaks NVIDIA – and Possible Fix..
Kernel 4.19-rc1 has been released, and very brief details of changes are here: http://lkml.iu.edu/hypermail/linux/kernel/1808.3/01014.html
VMware 14.1.3 compiles/loads OK, but NVIDIA (396.54) compile failed:
...................... /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-drm/nvidia-drm-encoder.c:219:11: error: implicit declaration of function ‘drm_mode_connector_attach_encoder’; did you mean ‘drm_connector_attach_encoder’? [-Werror=implicit-function-declaration] ret = drm_mode_connector_attach_encoder(connector, encoder); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drm_connector_attach_encoder cc1: some warnings being treated as errors ....................
– and a similar error with nvidia-drm-connector.c
Changing occurrences of ‘drm_mode_connector_attach_encoder’ to ‘drm_connector_attach_encoder’ and ‘drm_mode_connector_update_edid_property’ to ‘drm_connector_update_edid_property’ enabled the driver to compile/load OK, but this has not been further tested, yet:
........................ ld -r -o /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-modeset/nv-modeset-interface.o /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-modeset/nvidia-modeset-linux.o Building modules, stage 2. MODPOST 4 modules CC /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-drm.mod.o LD [M] /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-drm.ko CC /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-modeset.mod.o LD [M] /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-modeset.ko CC /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-uvm.mod.o LD [M] /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia-uvm.ko CC /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia.mod.o LD [M] /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-396.54/kernel/nvidia.ko make[2]: Leaving directory '/usr/src/linux-4.19-rc1' make[1]: Leaving directory '/usr/src/linux-4.19-rc1'
I also found that this was a problem for the DisplayLink 4.2 driver, as well..
Robert Gadsdon, August 27, 2018.
Checkout my nvidia dev forum post if you want to get it working:
https://devtalk.nvidia.com/default/topic/1038726/linux/black-screens-on-boot-with-current-master-4-19-staging-and-396-xx/
I tested this patch with the latest driver – 396.54 – and the DRM_CONTROL_ALLOW occurrences have already been removed, so the patch to NVIDIA-Linux-x86_64-396.54/kernel/nvidia-drm/nvidia-drm-drv.c is no longer necessary.
RG.
Can you reproduce Xorg black screen error that I’ve mentioned in the bug report caused by the commit mentioned in the thread?
https://github.com/torvalds/linux/commit/7eeaeb90a6a5c8dc0de9bbb16a12d474d31d820e
Just tested 396.54 – with the patches to nvidia-drm-encoder.c and nvidia-drm-connector.c – and it runs OK on my system, with Kernel 4.19-rc1 (Fedora 28, with KDE/Plasma desktop).
RG.
Tested with 396.54 with the above patches and runs fine on kernel 4.19-rc3 Xubuntu 18.04. Thank you 🙂