Skip to contentSkip to conversation

drm/amd/pm: add abnormal fan detection for smu 13.0.0

PATCH In review Kenneth Feng 2 participants 2 messages Jun 20, 2023 – Jun 21, 2023

Subsystems (3)
lore
Share & tools
lore

Kenneth Feng

author maintainer
#0 lore raw

PATCH 1/1 drm/amd/pm: add abnormal fan detection for smu 13.0.0

add abnormal fan detection for smu 13.0.0

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +1 -0
index a6083957ae51..124287cbbff8 100644
@@ -1710,6 +1710,7 @@ static int smu_v13_0_0_get_thermal_temperature_range(struct smu_context *smu,
 	range->mem_emergency_max = (pptable->SkuTable.TemperatureLimit[TEMP_MEM] + CTF_OFFSET_MEM)*
 		SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
 	range->software_shutdown_temp = powerplay_table->software_shutdown_temp;
+	range->software_shutdown_temp_offset = pptable->SkuTable.FanAbnormalTempLimitOffset;
 
 	return 0;
 }
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Quoted 34 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kenneth Feng
Sent: Tuesday, June 20, 2023 11:46 AM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/pm: add abnormal fan detection for smu 13.0.0

add abnormal fan detection for smu 13.0.0

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +0 -0
index a6083957ae51..124287cbbff8 100644
@@ -1710,6 +1710,7 @@ static int
 smu_v13_0_0_get_thermal_temperature_range(struct smu_context *smu,
      range->mem_emergency_max = (pptable-
Quoted 1 line

SkuTable.TemperatureLimit[TEMP_MEM] + CTF_OFFSET_MEM)*

              SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
      range->software_shutdown_temp = powerplay_table-
Quoted 1 line

software_shutdown_temp;

+ range->software_shutdown_temp_offset = pptable-

Quoted 1 line

SkuTable.FanAbnormalTempLimitOffset;

      return 0;

}
--
2.34.1