diff options
author | Likun Gao | 2019-01-04 09:00:48 +0100 |
---|---|---|
committer | Alex Deucher | 2019-03-19 21:03:57 +0100 |
commit | 74ba3553b2bb26adb36dd7d0b13b85bca64f3ef2 (patch) | |
tree | a0e769543a854e73fde0ff2d82657fc5dc46ab25 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | |
parent | drm/amd/powerplay: add function to set fan table to control thermal (diff) | |
download | kernel-qcow2-linux-74ba3553b2bb26adb36dd7d0b13b85bca64f3ef2.tar.gz kernel-qcow2-linux-74ba3553b2bb26adb36dd7d0b13b85bca64f3ef2.tar.xz kernel-qcow2-linux-74ba3553b2bb26adb36dd7d0b13b85bca64f3ef2.zip |
drm/amd/powerplay: add function to start thermal control
Add function to start thermal control for smu11 when smu hw_init.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index cd04369c652b..172b84480d6c 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -518,6 +518,10 @@ static int smu_hw_init(void *handle) if (ret) goto failed; + ret = smu_start_thermal_control(smu); + if (ret) + goto failed; + mutex_unlock(&smu->mutex); pr_info("SMU is initialized successfully!\n"); |