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

Quan, Evan Evan.Quan at amd.com
Wed Jun 21 00:50:58 UTC 2023


[AMD Official Use Only - General]

Reviewed-by: Evan Quan <evan.quan at amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Kenneth Feng
> Sent: Tuesday, June 20, 2023 11:46 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Feng, Kenneth <Kenneth.Feng at amd.com>
> Subject: [PATCH] drm/amd/pm: add abnormal fan detection for smu 13.0.0
>
> add abnormal fan detection for smu 13.0.0
>
> Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> index a6083957ae51..124287cbbff8 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
> @@ -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;
>  }
> --
> 2.34.1



More information about the amd-gfx mailing list