From 80cfd1db6757a8dc6fef671abeb40480dac178cf Mon Sep 17 00:00:00 2001 From: Evan Quan Date: Thu, 28 Dec 2017 14:20:05 +0800 Subject: [PATCH] drm/amd/powerplay: new hw manager interface for retrieving device specific thermal range Added a new callback for asic specific backends to specify the temperature ranges. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h index bd2889f73426..384a4cb71b93 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h @@ -339,6 +339,8 @@ struct pp_hwmgr_func { uint32_t mc_addr_low, uint32_t mc_addr_hi, uint32_t size); + int (*get_thermal_temperature_range)(struct pp_hwmgr *hwmgr, + struct PP_TemperatureRange *range); }; struct pp_table_func { -- 2.30.2