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)
[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

index b1b2e3c6f379d13c75ff7075a884c70e45ed29a6..3f32e9c3fbaf4cdb1020990fa0b315e579043bc9 100644 (file)
@@ -65,5 +65,7 @@ void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv,
 
 bool should_use_dmub_lock(struct dc_link *link)
 {
+       if (link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)
+               return true;
        return false;
 }