mirror of
https://github.com/hardkernel/linux.git
synced 2026-05-31 08:16:39 +09: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user