drm/amd/display: Refactor suspend/resume of Secure display
authorWayne Lin <Wayne.Lin@amd.com>
Tue, 27 Apr 2021 04:00:40 +0000 (12:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:39:16 +0000 (22:39 -0400)
commitd98af2725d42e85efb04a6939939eab31f562e45
tree019902fd35aa29da326baca50b2b3a562d95b0e3
parentf1900a9b0f6436153e6b1be398d31f1ead6096f6
drm/amd/display: Refactor suspend/resume of Secure display

[Why]
Once set ROI and do suspend/resume, current flow will not enable
OTG_CRC_CTL again due to we'll defer crc configuration when stream
is enabled.

[How]
Remove current suspend/resume function and have logic implemented into
amdgpu_dm_atomic_commit_tail()

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Reviewed-by: Chao-kai Wang <Stylon.Wang@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h