aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-04-27 13:46:08 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-05-15 13:44:18 -0500
commitfc5a136ddad944d2f909d3ffcde924b7afa792f4 (patch)
tree9d5b300afbb3ab4d2470fe9b6f4adfbd6fca083f /drivers/gpu/drm/amd/powerplay
parentdrm/amdgpu: Switch to interruptable wait to recover from ring hang. (diff)
downloadlinux-dev-fc5a136ddad944d2f909d3ffcde924b7afa792f4.tar.xz
linux-dev-fc5a136ddad944d2f909d3ffcde924b7afa792f4.zip
drm/amd/pp: Skip fan attributes if fan not present
With powerplay enabled, also need to skip fan attributes if no fan present. Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
index eecb11824412..71b42331f185 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@ -229,6 +229,9 @@ int hwmgr_hw_init(struct pp_hwmgr *hwmgr)
if (ret)
goto err;
+ ((struct amdgpu_device *)hwmgr->adev)->pm.no_fan =
+ hwmgr->thermal_controller.fanInfo.bNoFan;
+
ret = hwmgr->hwmgr_func->backend_init(hwmgr);
if (ret)
goto err1;