Commit 5be3bb6e authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: no MGPU fan boost enablement on DPM disabled

As MGPU fan boost feature will be definitely not needed when
DPM is disabled. So, there is no need to error out.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 734afd4b
...@@ -1318,12 +1318,12 @@ static int pp_enable_mgpu_fan_boost(void *handle) ...@@ -1318,12 +1318,12 @@ static int pp_enable_mgpu_fan_boost(void *handle)
{ {
struct pp_hwmgr *hwmgr = handle; struct pp_hwmgr *hwmgr = handle;
if (!hwmgr || !hwmgr->pm_en) if (!hwmgr)
return -EINVAL; return -EINVAL;
if (hwmgr->hwmgr_func->enable_mgpu_fan_boost == NULL) { if (!hwmgr->pm_en ||
hwmgr->hwmgr_func->enable_mgpu_fan_boost == NULL)
return 0; return 0;
}
mutex_lock(&hwmgr->smu_lock); mutex_lock(&hwmgr->smu_lock);
hwmgr->hwmgr_func->enable_mgpu_fan_boost(hwmgr); hwmgr->hwmgr_func->enable_mgpu_fan_boost(hwmgr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment