drm/amd/pm: add abnormal fan detection for smu 13.0.0
authorjsg <jsg@openbsd.org>
Wed, 26 Jul 2023 06:20:51 +0000 (06:20 +0000)
committerjsg <jsg@openbsd.org>
Wed, 26 Jul 2023 06:20:51 +0000 (06:20 +0000)
From Kenneth Feng
13e8af958cfa97d93d9824b863208c0bb0977361 in linux-6.1.y/6.1.40
2da0036ea99bccb27f7fe3cf2aa2900860e9be46 in mainline linux

sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c

index d30fdd8..a60af9e 100644 (file)
@@ -1281,6 +1281,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;
 }