Skip to content

Commit

Permalink
drm/amd/display: Use HW lock mgr for PSR1
Browse files Browse the repository at this point in the history
[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 a2b5a99)
  • Loading branch information
Tom Chung authored and Alex Deucher committed Jan 10, 2025
1 parent 470d4f0 commit b5c764d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5c764d

Please sign in to comment.