diff options
author | Evan Quan <evan.quan@amd.com> | 2020-12-07 15:50:08 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-11 16:02:30 -0400 |
commit | 1e75be2b674932b53ed1bdd7df35f89e47585388 (patch) | |
tree | ebe66004b871fc1f1eba286b5dfcbe413d170652 /drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | |
parent | 415e51bdcfa0e724172f66ce12d8ef7819fdd1c7 (diff) | |
download | linux-1e75be2b674932b53ed1bdd7df35f89e47585388.tar.gz linux-1e75be2b674932b53ed1bdd7df35f89e47585388.tar.bz2 linux-1e75be2b674932b53ed1bdd7df35f89e47585388.zip |
drm/amd/pm: update the cached dpm feature status
For some ASICs, the real dpm feature disablement job is handled by
PMFW during baco reset and custom pptable loading. Cached dpm feature
status need to be updated to pair that.
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h')
-rw-r--r-- | drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h index 73fca113f3d9..0c06c2f6ea43 100644 --- a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h @@ -974,7 +974,9 @@ struct pptable_funcs { * @disable_all_features_with_exception: Disable all features with * exception to those in &mask. */ - int (*disable_all_features_with_exception)(struct smu_context *smu, enum smu_feature_mask mask); + int (*disable_all_features_with_exception)(struct smu_context *smu, + bool no_hw_disablement, + enum smu_feature_mask mask); /** * @notify_display_change: Enable fast memory clock switching. |