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

drm/amdgpu/dm: Resume short HPD IRQs before resuming MST topology

Since we're going to be reprobing the entire topology state on resume
now using sideband transactions, we need to ensure that we actually have
short HPD irqs enabled before calling drm_dp_mst_topology_mgr_resume().
So, do that.

Changes since v4:
* Fix typo in comments

Cc: Juston Li <juston.li@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lyude Paul and committed by
Alex Deucher
684cd480 88d80250

+3 -3
+3 -3
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 1239 1239 /* program HPD filter */ 1240 1240 dc_resume(dm->dc); 1241 1241 1242 - /* On resume we need to rewrite the MSTM control bits to enamble MST*/ 1243 - s3_handle_mst(ddev, false); 1244 - 1245 1242 /* 1246 1243 * early enable HPD Rx IRQ, should be done before set mode as short 1247 1244 * pulse interrupts are used for MST 1248 1245 */ 1249 1246 amdgpu_dm_irq_resume_early(adev); 1247 + 1248 + /* On resume we need to rewrite the MSTM control bits to enable MST*/ 1249 + s3_handle_mst(ddev, false); 1250 1250 1251 1251 /* Do detection*/ 1252 1252 list_for_each_entry(connector, &ddev->mode_config.connector_list, head) {