diff options
author | Likun Gao <Likun.Gao@amd.com> | 2019-01-04 11:00:48 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-03-19 23:03:57 +0300 |
commit | 74ba3553b2bb26adb36dd7d0b13b85bca64f3ef2 (patch) | |
tree | a0e769543a854e73fde0ff2d82657fc5dc46ab25 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | |
parent | e921ec97fe696f89be5959fdc96dd722026ba5d0 (diff) | |
download | linux-74ba3553b2bb26adb36dd7d0b13b85bca64f3ef2.tar.xz |
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"); |