Linux kernel 5.17 compatibility and patch

I cannot build 510.47.03 with Linux 5.17:

  MODPOST /tmp/nvidia/Module.symvers
ERROR: modpost: "drm_atomic_helper_update_plane" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_atomic_helper_connector_reset" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_atomic_helper_page_flip" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_atomic_helper_swap_state" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_helper_probe_single_connector_modes" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_kms_helper_hotplug_event" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "__drm_atomic_helper_crtc_destroy_state" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_atomic_helper_crtc_reset" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "__drm_atomic_helper_plane_duplicate_state" [/tmp/nvidia/nvidia-drm.ko] undefined!
ERROR: modpost: "drm_atomic_helper_connector_duplicate_state" [/tmp/nvidia/nvidia-drm.ko] undefined!
WARNING: modpost: suppressed 12 unresolved symbol warnings because there were too many)

Anyone seen patches to fix this?

Edit:

Solved it by CONFIG_DRM_BOCHS=m which enables the missing kernel modules/support (CONFIG_DRM_TTM=m).

This rather looks like you enabled “cut unused symbols” in your kernel config. So by enabling a different drm driver they appeared in symvers.

I used the same config as for my 5.15 kernel and for some reasons DRM_TTM is no longer enabled - again, fixed it by enabling CONFIG_DRM_BOCHS=m.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.