mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amd/pm: allow the user to force BACO on smu v13.0.0/7
allow the user to force BACO on smu v13.0.0/7 Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
400a39f1ec
commit
e49311c44a
@@ -2263,7 +2263,7 @@ int smu_v13_0_baco_set_state(struct smu_context *smu,
|
||||
if (state == SMU_BACO_STATE_ENTER) {
|
||||
ret = smu_cmn_send_smc_msg_with_param(smu,
|
||||
SMU_MSG_EnterBaco,
|
||||
smu_baco->maco_support ?
|
||||
(smu_baco->maco_support && amdgpu_runtime_pm != 1) ?
|
||||
BACO_SEQ_BAMACO : BACO_SEQ_BACO,
|
||||
NULL);
|
||||
} else {
|
||||
|
||||
@@ -2206,7 +2206,8 @@ static int smu_v13_0_0_baco_enter(struct smu_context *smu)
|
||||
|
||||
if (adev->in_runpm && smu_cmn_is_audio_func_enabled(adev))
|
||||
return smu_v13_0_baco_set_armd3_sequence(smu,
|
||||
smu_baco->maco_support ? BACO_SEQ_BAMACO : BACO_SEQ_BACO);
|
||||
(smu_baco->maco_support && amdgpu_runtime_pm != 1) ?
|
||||
BACO_SEQ_BAMACO : BACO_SEQ_BACO);
|
||||
else
|
||||
return smu_v13_0_baco_enter(smu);
|
||||
}
|
||||
|
||||
@@ -2134,7 +2134,8 @@ static int smu_v13_0_7_baco_enter(struct smu_context *smu)
|
||||
|
||||
if (adev->in_runpm && smu_cmn_is_audio_func_enabled(adev))
|
||||
return smu_v13_0_baco_set_armd3_sequence(smu,
|
||||
smu_baco->maco_support ? BACO_SEQ_BAMACO : BACO_SEQ_BACO);
|
||||
(smu_baco->maco_support && amdgpu_runtime_pm != 1) ?
|
||||
BACO_SEQ_BAMACO : BACO_SEQ_BACO);
|
||||
else
|
||||
return smu_v13_0_baco_enter(smu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user