Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Don't link train DisplayPort on HPD until we get the dpcd

This is a port of:
DRM - radeon: Don't link train DisplayPort on HPD until we get the dpcd
to amdgpu.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org

+5
+5
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
··· 75 75 if (!amdgpu_display_hpd_sense(adev, amdgpu_connector->hpd.hpd)) { 76 76 drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF); 77 77 } else if (amdgpu_atombios_dp_needs_link_train(amdgpu_connector)) { 78 + /* Don't try to start link training before we 79 + * have the dpcd */ 80 + if (!amdgpu_atombios_dp_get_dpcd(amdgpu_connector)) 81 + return; 82 + 78 83 /* set it to OFF so that drm_helper_connector_dpms() 79 84 * won't return immediately since the current state 80 85 * is ON at this point.