diff options
author | Evan Quan <evan.quan@amd.com> | 2020-05-21 12:36:44 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-05-29 13:55:07 -0400 |
commit | 8c0bba64795fdfa89299aa160887ef3ff85c77d2 (patch) | |
tree | fa4be9e618f2c06b10bcd0a6f51db3e4e18d7a1b /drivers/gpu/drm/amd/powerplay/smu_internal.h | |
parent | drm/amd/powerplay: update Arcturus smu-driver headers (diff) | |
download | linux-dev-8c0bba64795fdfa89299aa160887ef3ff85c77d2.tar.xz linux-dev-8c0bba64795fdfa89299aa160887ef3ff85c77d2.zip |
drm/amd/powerplay: implement ASIC specific thermal throttling logging
Enable this for Arcturus only for now.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smu_internal.h')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smu_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_internal.h b/drivers/gpu/drm/amd/powerplay/smu_internal.h index c97444841abc..6b627d6e80b1 100644 --- a/drivers/gpu/drm/amd/powerplay/smu_internal.h +++ b/drivers/gpu/drm/amd/powerplay/smu_internal.h @@ -219,4 +219,6 @@ static inline int smu_send_smc_msg(struct smu_context *smu, enum smu_message_typ #define smu_i2c_eeprom_fini(smu, control) \ ((smu)->ppt_funcs->i2c_eeprom_fini ? (smu)->ppt_funcs->i2c_eeprom_fini((control)) : 0) +#define smu_log_thermal_throttling(smu) \ + ((smu)->ppt_funcs->log_thermal_throttling_event ? (smu)->ppt_funcs->log_thermal_throttling_event((smu)) : 0) #endif |