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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:25 +0000 (14:47 +0200)
commitdd5d6042e5d2d487793470d9606d4263a0e28ae6
tree5f2297b5eadc8785654de2b1422d506f7fa16120
parent9cc76f29b9e54a7e727c1c0d2d5210735d34b079
drm/amd/display: DCHUB underflow counter increasing in some scenarios

[ Upstream commit 4710430a779e6077d81218ac768787545bff8c49 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c