[PATCH 2/2] drm/amd/pm: enable thermal alart on smu_v13_0_10
Zhang, Hawking
Hawking.Zhang at amd.com
Fri Oct 14 07:41:11 UTC 2022
[AMD Official Use Only - General]
+ if (ret) {
+ dev_err(adev->dev, "Failed to enable thermal alert!\n");
+ return ret;
It seems code alignment issue here, please double check before the commit
Other than that, series is
Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>
Regards,
Hawking
-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Kenneth Feng
Sent: Friday, October 14, 2022 15:28
To: amd-gfx at lists.freedesktop.org
Cc: Feng, Kenneth <Kenneth.Feng at amd.com>
Subject: [PATCH 2/2] drm/amd/pm: enable thermal alart on smu_v13_0_10
enable thermal alart on smu_v13_0_10
Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
---
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 3d436e7f6e95..4fe75dd2b329 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -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);
--
2.25.1
More information about the amd-gfx
mailing list