]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35ccc7ea78c81d6a119b114eeecafcf22837450b
tree724d43bdc1bc3aceb4543a647832bc389ac89024
parentaa4236bb9940156ec676fcda739c36f3366a5d8f
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