mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02: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
|
|
@ -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 New Issue
Block a user