Skip to content
Snippets Groups Projects
Commit 411b9898 authored by Tom Chung's avatar Tom Chung Committed by Frieder Schrempf
Browse files

drm/amd/display: Use HW lock mgr for PSR1


[ Upstream commit b5c764d6ed556c4e81fbe3fd976da77ec450c08e ]

[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: default avatarSun peng Li <sunpeng.li@amd.com>
Signed-off-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit a2b5a9956269f4c1a09537177f18ab0229fe79f7)
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 773a0195
No related branches found
No related tags found
1 merge request!184🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.128)
...@@ -65,7 +65,8 @@ void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv, ...@@ -65,7 +65,8 @@ void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv,
bool should_use_dmub_lock(struct dc_link *link) 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; return true;
return false; return false;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment