drm/amd/display: DCHUB underflow counter increasing in some scenarios
authorAric Cyr <aric.cyr@amd.com>
Mon, 8 Mar 2021 20:43:34 +0000 (15:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:33:19 +0000 (23:33 -0400)
commit4710430a779e6077d81218ac768787545bff8c49
treefaae9f2c4191b8fc18d4a378cff52b356835fde9
parent592a631883fdaa3ead08e59961dd16b11cfd6740
drm/amd/display: DCHUB underflow counter increasing in some scenarios

[Why]
When unplugging a display, the underflow counter can be seen to
increase because PSTATE switch is allowed even when some planes are not
blanked.

[How]
Check that all planes are not active instead of all streams before
allowing PSTATE change.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c