OSDN Git Service

drm/amd/display: Handle potential dpp_inst mismatch with pipe_idx
authorAnthony Wang <anthony1.wang@amd.com>
Fri, 30 Apr 2021 13:09:02 +0000 (09:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:11:03 +0000 (18:11 -0400)
commit9119e993cfd16e65b34d626e8e0b51a847bb2a02
tree57850415f4c770aff1ba1c105218c851cf376dba
parent98ad74c6a92e195f8c9577a5b2e4a4057ce5d5a4
drm/amd/display: Handle potential dpp_inst mismatch with pipe_idx

[Why]
In some pipe harvesting configs, we will select the incorrect
dpp_inst when programming DTO. This is because when any intermediate
pipe is fused, resource instances are no longer in 1:1
correspondence with pipe index.

[How]
When looping through pipes to program DTO, get the dpp_inst
associated with each pipe from res_pool.

Signed-off-by: Anthony Wang <anthony1.wang@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c