diff options
| author | Evan Quan <[email protected]> | 2020-08-12 04:08:56 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-14 20:22:40 +0000 |
| commit | 9f979a49e23f4b87d038708e06ea6d320e198e71 (patch) | |
| tree | 83a446ccbb83f82c154e7a5623d1c9a0fa8cdcf7 /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |
| parent | drm/amd/powerplay: optimize the interface for mgpu fan boost enablement (diff) | |
| download | kernel-9f979a49e23f4b87d038708e06ea6d320e198e71.tar.gz kernel-9f979a49e23f4b87d038708e06ea6d320e198e71.zip | |
drm/amd/powerplay: enable swSMU mgpu fan boost support
Enable mgpu fan boost feature on swSMU routines.
Signed-off-by: Evan Quan <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index 27417f873a36..240c440cbe00 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c @@ -1222,9 +1222,12 @@ int amdgpu_dpm_enable_mgpu_fan_boost(struct amdgpu_device *adev) void *pp_handle = adev->powerplay.pp_handle; const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; + struct smu_context *smu = &adev->smu; int ret = 0; - if (pp_funcs && pp_funcs->enable_mgpu_fan_boost) + if (is_support_sw_smu(adev)) + ret = smu_enable_mgpu_fan_boost(smu); + else if (pp_funcs && pp_funcs->enable_mgpu_fan_boost) ret = pp_funcs->enable_mgpu_fan_boost(pp_handle); return ret; |
