drm/amd/display: use HW lock mgr for PSR-SU
authorDavid Zhang <dingchen.zhang@amd.com>
Tue, 3 May 2022 21:28:18 +0000 (17:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:42:21 +0000 (14:42 -0400)
commitc2a050c5e07faf9ed2fa1daa1eb642d9da4a879d
treee27f0752624e8eeeaea32f9e26977393b92cf324
parentc7eac19eda0a82f0c1dd9455012754445772fd09
drm/amd/display: use HW lock mgr for PSR-SU

[why]
Feature requires synchronization of dig, pipe, and cursor locking
between driver and DMUB fw for PSR-SU

[how]
return True if PSR-SU in the checker should_use_dmub_lock()

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c