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.


Comments

Kernel – 4.19-rc1 – OK with VMware, breaks NVIDIA – and Possible Fix.. — 6 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.