drm/amd/display: make sure pipe power gating reach requested hw state
authorCharlene Liu <Charlene.Liu@amd.com>
Wed, 2 Feb 2022 21:35:14 +0000 (16:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 22:02:06 +0000 (17:02 -0500)
commit8639bd70497ac96a83ff26b8118afcdc45f1cfaf
tree724d43bdc1bc3aceb4543a647832bc389ac89024
parentc5365554514178840400b801787bedb567811064
drm/amd/display: make sure pipe power gating reach requested hw state

[why]
display mapping change will involved pipe power gating on and off.
when doing this too fase, sometimes usbc will have no display.
check HW status, it is still in pipe power gating.

[how]
insert polling HW status to make sure the required state reached.
also add dal registry key handling.

Reviewed-by: Sung joon Kim <Sungjoon.Kim@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@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/dcn31/dcn31_hwseq.c