aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWayne Lin <[email protected]>2025-05-13 08:06:50 +0000
committerAlex Deucher <[email protected]>2025-06-03 19:35:34 +0000
commitdeb24e64c8881c462b29e2c69afd9e6669058be5 (patch)
tree313b9c7bfc172924886ef6cbd4f15a01bcceb4d2
parentdrm/amd/display: Drop unnecessary `amdgpu` prefix (diff)
downloadkernel-deb24e64c8881c462b29e2c69afd9e6669058be5.tar.gz
kernel-deb24e64c8881c462b29e2c69afd9e6669058be5.zip
drm/amd/display: Avoid trying AUX transactions on disconnected ports
[Why & How] Observe that we try to access DPCD 0x600h of disconnected DP ports. In order not to wasting time on retrying these ports, call dpcd_write_rx_power_ctrl() after checking its connection status. Reviewed-by: Aurabindo Pillai <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/link_dpms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_dpms.c b/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
index 273a3be6d593..f16cba4b9119 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
@@ -140,7 +140,8 @@ void link_blank_dp_stream(struct dc_link *link, bool hw_init)
}
}
- if ((!link->wa_flags.dp_keep_receiver_powered) || hw_init)
+ if (((!link->wa_flags.dp_keep_receiver_powered) || hw_init) &&
+ (link->type != dc_connection_none))
dpcd_write_rx_power_ctrl(link, false);
}
}