From: Wenjing Liu Date: Fri, 10 May 2024 15:25:55 +0000 (-0400) Subject: drm/amd/display: fix a typo which causes an incorrect ODM combine setup X-Git-Tag: v6.11-rc1~141^2~25^2~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b7fd8306efbd406fca9e8d27b2c103f951760c8;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: fix a typo which causes an incorrect ODM combine setup [why] A recent change for ODM combine refactor contains a typo which causes ODM combine mode programmed incorrectly. Reviewed-by: George Shen Acked-by: Roman Li Signed-off-by: Wenjing Liu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c index d085c9ff9d382..42c3c440ed890 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c @@ -854,7 +854,7 @@ enum dc_status dcn20_enable_stream_timing( opp_cnt = resource_get_opp_heads_for_otg_master(pipe_ctx, &context->res_ctx, opp_heads); for (i = 0; i < opp_cnt; i++) - opp_inst[opp_cnt] = opp_heads[i]->stream_res.opp->inst; + opp_inst[i] = opp_heads[i]->stream_res.opp->inst; odm_slice_width = resource_get_odm_slice_dst_width(pipe_ctx, false); last_odm_slice_width = resource_get_odm_slice_dst_width(pipe_ctx, true);