OSDN Git Service

drm/amd/display: When blanking during init loop to find OPP index
authorAlvin Lee <Alvin.Lee2@amd.com>
Fri, 17 Feb 2023 22:54:01 +0000 (17:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:22:39 +0000 (14:22 -0500)
commit67d198da2fd493629e498629781edc5695bbf4d9
tree26e842d7fff05f4291329136e520f3c732533c33
parentaee0c07a74d3f79aef553e3bfc6ddf184d33d3bf
drm/amd/display: When blanking during init loop to find OPP index

[Description]
For pipe harvesting cases we cannot rely on array index
to get the correct OPP instance, we must loop through
each instance to find the correct one.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@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/dcn32/dcn32_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_init.c