Browse Source

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 <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Evan Quan 7 years ago
parent
commit
80cfd1db67
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

+ 2 - 0
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 {