drm/amdgpu: add the fan abnormal detection feature
authorlyndonli <Lyndon.Li@amd.com>
Mon, 21 Nov 2022 01:10:20 +0000 (09:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2022 14:47:15 +0000 (09:47 -0500)
commitef5fca9f7294509ee5013af9e879edc5837c1d6c
tree5f7e104ae3565f5fd47427dc0621b2201d56098f
parent1ec13219a1a7e65a37d7c02a7dd4de470564b3c2
drm/amdgpu: add the fan abnormal detection feature

Update the SW CTF limit from existing register
when there's a fan failure detected via SMU interrupt.

Signed-off-by: lyndonli <Lyndon.Li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c