]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drm/amd/powerplay: add thermal ctf support for navi10
[linux.git] / drivers / gpu / drm / amd / powerplay / amdgpu_smu.c
index 7d1d91975705ff7ddc178b709082cb30d5eae7ca..1d0523831a15bcd37195d1ed2e5045d84af2cee5 100644 (file)
@@ -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;