drm/amd/display: Force p-state disallow if leaving no plane config
authorAlvin Lee <alvin.lee2@amd.com>
Wed, 6 Dec 2023 19:52:32 +0000 (14:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 20:09:54 +0000 (15:09 -0500)
commit9a902a9073c287353e25913c0761bfed49d75a88
tree85db1199c793b96bfae273b451542b30b940e57a
parentdd4e4bb28843393065eed279e869fac248d03f0f
drm/amd/display: Force p-state disallow if leaving no plane config

[Description]
- When we're in a no plane config, DCN is always asserting
  P-State allow
- This creates a scenario where the P-State blackout can start
  just as VUPDATE takes place and transitions the DCN config to
  a one where one or more HUBP's are active which can result in
  underflow
- To fix this issue, force p-state disallow and unforce after
  the transition from no planes case -> one or more planes active

Reviewed-by: Samson Tam <samson.tam@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c