drm/amd/display: pbn_div need be updated for hotplug event
Alex Deucher
maintainerPATCH 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.
--- 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
@@ -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
Greg KH
maintainerQuoted 18 lines · Alex Deucher
From: Wayne Lin <[email protected]>
link_ratesometime will be changed when DP MST connector hotplug, sopbn_divalso need be updated; otherwise, it will mismatch withlink_rate, causes no output in external monitor.This is a backport of
commit9cdef4f72037("drm/amd/display:pbn_divneed be updated for hotplug event") to 6.1. This fixes a display light up failure on some docking stations.Tested-by Daniel Wheeler <[email protected]>Reviewed-by Jerry Zuo <[email protected]>Acked-by Rodrigo Siqueira <[email protected]>Signed-off-by Wade Wang <[email protected]>Signed-off-by Wayne Lin <[email protected]>Signed-off-by Alex Deucher <[email protected]>(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