Skip to contentSkip to conversation

drm/amd/display: pbn_div need be updated for hotplug event

PATCH In review Alex Deucher 2 participants 2 messages Jan 23, 2024 – Jan 27, 2024

Subsystems (4)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amd/display: pbn_div need be updated for hotplug event

From: Wayne Lin <[email protected]>

link_rate sometime will be changed when DP MST connector hotplug, so pbn_div also need be updated; otherwise, it will mismatch with link_rate, causes no output in external monitor.

This is a backport of
commit 9cdef4f72037 ("drm/amd/display: pbn_div need be updated for hotplug event") to 6.1. This fixes a display light up failure on some docking stations.

(cherry picked from commit 9cdef4f720376ef0fb0febce1ed2377c19e531f9)
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -2
index 13e0b521e3db..f02e509d5fac 100644
@@ -6677,8 +6677,7 @@ static int dm_encoder_helper_atomic_check(struct drm_encoder *encoder,
 	if (IS_ERR(mst_state))
 		return PTR_ERR(mst_state);
 
-	if (!mst_state->pbn_div)
-		mst_state->pbn_div = dm_mst_get_pbn_divider(aconnector->mst_port->dc_link);
+	mst_state->pbn_div = dm_mst_get_pbn_divider(aconnector->mst_port->dc_link);
 
 	if (!state->duplicated) {
 		int max_bpc = conn_state->max_requested_bpc;
Signature · 1 line
2.42.0
maintainer
#1 lore raw
Quoted 18 lines · Alex Deucher

From: Wayne Lin <[email protected]>

link_rate sometime will be changed when DP MST connector hotplug, so pbn_div also need be updated; otherwise, it will mismatch with link_rate, causes no output in external monitor.

This is a backport of
commit 9cdef4f72037 ("drm/amd/display: pbn_div need be updated for hotplug event") to 6.1. This fixes a display light up failure on some docking stations.

(cherry picked from commit 9cdef4f720376ef0fb0febce1ed2377c19e531f9)
Quoted 3 lines
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Now queued up, thanks.

greg k-h