mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
drm/amdgpu/powerplay/smu7: enable AVFS control via ppfeaturemask
Allow the user to disable AFVS via ppfeaturemask for debugging. Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a4ead3e5d6
commit
b4abff4bb2
1 changed files with 2 additions and 1 deletions
|
|
@ -620,7 +620,8 @@ int smu7_init(struct pp_hwmgr *hwmgr)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (smum_is_hw_avfs_present(hwmgr))
|
||||
if (smum_is_hw_avfs_present(hwmgr) &&
|
||||
(hwmgr->feature_mask & PP_AVFS_MASK))
|
||||
hwmgr->avfs_supported = true;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue