]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Use HW lock mgr for PSR1
authorTom Chung <chiahsuan.chung@amd.com>
Tue, 1 Oct 2024 09:13:07 +0000 (17:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Jan 2025 18:40:48 +0000 (13:40 -0500)
[Why]
Without the dmub hw lock, it may cause the lock timeout issue
while do modeset on PSR1 eDP panel.

[How]
Allow dmub hw lock for PSR1.

Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit a2b5a9956269f4c1a09537177f18ab0229fe79f7)

drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c

index bf636b28e3e16eda6a007d9f69f1cd84717028a5..5bb8b78bf250a0e56c3e99ce7c99ed7f70c8f0f6 100644 (file)
@@ -63,7 +63,8 @@ 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)
+       if (link->psr_settings.psr_version == DC_PSR_VERSION_SU_1 ||
+           link->psr_settings.psr_version == DC_PSR_VERSION_1)
                return true;
 
        if (link->replay_settings.replay_feature_enabled)