OSDN Git Service

drm/amd/display: Implement workaround for writing to OTG_PIXEL_RATE_DIV register
authorSaaem Rizvi <SyedSaaem.Rizvi@amd.com>
Mon, 6 Mar 2023 20:10:13 +0000 (15:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Mar 2023 04:48:01 +0000 (00:48 -0400)
commit74fa4c81aadf418341f0d073c864ea7dca730a2e
tree0443ba81f62057c2c1e9fb2eea407b797b515461
parentcfa075982768840c468c874219dbec558722cb7f
drm/amd/display: Implement workaround for writing to OTG_PIXEL_RATE_DIV register

[Why and How]
Current implementation requires FPGA builds to take a different
code path from DCN32 to write to OTG_PIXEL_RATE_DIV. Now that
we have a workaround to write to OTG_PIXEL_RATE_DIV register without
blanking display on hotplug on DCN32, we can allow the code paths for
FPGA to be exactly the same allowing for more consistent
testing.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Saaem Rizvi <SyedSaaem.Rizvi@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/dcn20/dcn20_dccg.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dccg.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h