drm/amd/display: Fix a regression on Polaris cards
Subsystems (3)
PATCH 1/1 drm/amd/display: Fix a regression on Polaris cards
DCE products don't define a remove_stream_from_ctx like DCN ones do. This means that when compute_mst_dsc_configs_for_state() is called it always returns -EINVAL which causes MST to fail to setup.
Cc [email protected] # 6.4.y
Cc Harry Wentland <[email protected]>
Reported-by [email protected]
Fixes efa4c4df864e ("drm/amd/display: call remove_stream_from_ctx from res_pool funcs")
Signed-off-by Mario Limonciello <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -1
@@ -1327,7 +1327,7 @@ int compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,if (computed_streams[i])continue ; -if (!res_pool->funcs->remove_stream_from_ctx || +if (res_pool->funcs->remove_stream_from_ctx && res_pool->funcs->remove_stream_from_ctx (stream->ctx->dc, dc_state, stream) !=DC_OK )return -EINVAL ;
Signature · 1 line
2.34.1
Quoted 10 lines · Mario Limonciello
DCE products don't define a
remove_stream_from_ctxlike DCN ones do. This means that whencompute_mst_dsc_configs_for_state()is called it always returns-EINVALwhich causes MST to fail to setup.Cc [email protected] # 6.4.yCc Harry Wentland <[email protected]>Reported-by [email protected]Fixes efa4c4df864e ("drm/amd/display: call remove_stream_from_ctx from res_pool funcs")Signed-off-by Mario Limonciello <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 17 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1
-1@@ -1327,7 +1327,7 @@ int compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,if (computed_streams[i])continue ; -if (!res_pool->funcs->remove_stream_from_ctx || +if (res_pool->funcs->remove_stream_from_ctx && res_pool->funcs->remove_stream_from_ctx (stream->ctx->dc, dc_state, stream) !=DC_OK )return -EINVAL ;