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:
Alex Deucher
2018-08-10 13:19:26 -05:00
parent a4ead3e5d6
commit b4abff4bb2

View File

@@ -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;