drm/amd/display: Disable SubVP if test pattern is enabled
authorGeorge Shen <george.shen@amd.com>
Fri, 22 Sep 2023 18:38:31 +0000 (14:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 21:01:08 +0000 (17:01 -0400)
commit9af4377fd5d04e7e9e2477d13dbea32849de04e7
treec0dff6844451c76414ee30b8029b7edc0d8e5adc
parent051d90070d4c811d7413756cc42a59f2c28e0d0f
drm/amd/display: Disable SubVP if test pattern is enabled

[Why]
Enabling DPG causes HUBP to stay in blank constantly. If DPG is enabled
while an MCLK switch is taking place with SubVP, it will cause the MCLK
to never complete. This is because SubVP MCLK switch relies a HUBP
VLine interrupt, which will never occur when HUBP is constantly in
blank.

[How]
Disable SubVP when test pattern is enabled.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Reviewed-by: Nevenko Stupar <nevenko.stupar@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: George Shen <george.shen@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/dml/dcn32/dcn32_fpu.c