From: jsg Date: Wed, 26 Jul 2023 06:20:51 +0000 (+0000) Subject: drm/amd/pm: add abnormal fan detection for smu 13.0.0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c172d65e5f127ef9b71812edb730661ecc4ff0bd;p=openbsd drm/amd/pm: add abnormal fan detection for smu 13.0.0 From Kenneth Feng 13e8af958cfa97d93d9824b863208c0bb0977361 in linux-6.1.y/6.1.40 2da0036ea99bccb27f7fe3cf2aa2900860e9be46 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c index d30fdd86ba1..a60af9e3b30 100644 --- a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +++ b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c @@ -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; }