mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/amd/pm: restore user customized OD settings properly for NV1x
The customized OD settings can be divided into two parts: those
committed ones and non-committed ones.
- For those changes which had been fed to SMU before S3/S4/Runpm
suspend kicked, they are committed changes. They should be properly
restored and fed to SMU on S3/S4/Runpm resume.
- For those non-committed changes, they are restored only without feeding
to SMU.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -417,6 +417,15 @@ static void smu_restore_dpm_user_profile(struct smu_context *smu)
|
||||
}
|
||||
}
|
||||
|
||||
/* Restore user customized OD settings */
|
||||
if (smu->user_dpm_profile.user_od) {
|
||||
if (smu->ppt_funcs->restore_user_od_settings) {
|
||||
ret = smu->ppt_funcs->restore_user_od_settings(smu);
|
||||
if (ret)
|
||||
dev_err(smu->adev->dev, "Failed to upload customized OD settings\n");
|
||||
}
|
||||
}
|
||||
|
||||
/* Disable restore flag */
|
||||
smu->user_dpm_profile.flags &= ~SMU_DPM_USER_PROFILE_RESTORE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user