Commit c2a050c5 authored by David Zhang's avatar David Zhang Committed by Alex Deucher
Browse files

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: default avatarDavid Zhang <dingchen.zhang@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c7eac19e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}