]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/pm: enable thermal alert on smu_v13_0_10
authorKenneth Feng <kenneth.feng@amd.com>
Fri, 14 Oct 2022 07:19:51 +0000 (15:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Oct 2022 02:13:34 +0000 (22:13 -0400)
enable thermal alert on smu_v13_0_10

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index 3d436e7f6e952e1f740a45b5b2e8be538943bf4c..4fe75dd2b329daaa0cc94df3a40bbf4b5ae1148d 100644 (file)
@@ -1312,12 +1312,10 @@ static int smu_smc_hw_setup(struct smu_context *smu)
                return ret;
        }
 
-       if (adev->ip_versions[MP1_HWIP][0] != IP_VERSION(13, 0, 10)) {
-               ret = smu_enable_thermal_alert(smu);
-               if (ret) {
-                       dev_err(adev->dev, "Failed to enable thermal alert!\n");
-                       return ret;
-               }
+       ret = smu_enable_thermal_alert(smu);
+       if (ret) {
+         dev_err(adev->dev, "Failed to enable thermal alert!\n");
+         return ret;
        }
 
        ret = smu_notify_display_change(smu);