summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
diff options
context:
space:
mode:
authorKevin Wang <kevin1.wang@amd.com>2019-05-30 18:00:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 18:59:31 -0500
commit5e6d266573db27f97de56f457138730a6ac48413 (patch)
tree15fe4eafc79055e66492a51fb558cf0539a057e0 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
parent9634de271a474ca0e5fa04f3308b718f2e164e69 (diff)
downloadlinux-5e6d266573db27f97de56f457138730a6ac48413.tar.bz2
drm/amd/powerplay: add thermal ctf support for navi10
add sw-CTF support for navi10 Signed-off-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 7d1d91975705..1d0523831a15 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -1007,6 +1007,10 @@ static int smu_hw_init(void *handle)
if (ret)
goto failed;
+ ret = smu_register_irq_handler(smu);
+ if (ret)
+ goto failed;
+
mutex_unlock(&smu->mutex);
if (!smu->pm_enabled)
@@ -1051,6 +1055,9 @@ static int smu_hw_fini(void *handle)
kfree(table_context->od8_settings);
table_context->od8_settings = NULL;
+ kfree(smu->irq_source);
+ smu->irq_source = NULL;
+
ret = smu_fini_fb_allocations(smu);
if (ret)
return ret;