summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2019-04-18 11:53:04 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-05-24 12:20:47 -0500
commit901cb599dbc233fc325e3602e7c1218d2c24359c (patch)
treeb08e0ba946b8355571217be1152c58d8ce5fc56c /drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h
parent437ccd175a7a3c9871536a26b2d28e3c99515e7f (diff)
downloadlinux-901cb599dbc233fc325e3602e7c1218d2c24359c.tar.bz2
drm/amd/powerplay: support temperature emergency max values
These new interfaces(temp1_emergency, temp2_emergency, temp3_emergency) are supported on SOC15 dGPUs only. 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/inc/pp_thermal.h')
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h b/drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h
index 75a0a2f8bea2..3e30768f9e1c 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h
@@ -27,14 +27,18 @@
static const struct PP_TemperatureRange SMU7ThermalWithDelayPolicy[] =
{
- {-273150, 99000, -273150, 99000, -273150, 99000},
- { 120000, 120000, 120000, 120000, 120000, 120000},
+ {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000},
+ { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},
};
static const struct PP_TemperatureRange SMU7ThermalPolicy[] =
{
- {-273150, 99000, -273150, 99000, -273150, 99000},
- { 120000, 120000, 120000, 120000, 120000, 120000},
+ {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000},
+ { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},
};
+#define CTF_OFFSET_EDGE 5
+#define CTF_OFFSET_HOTSPOT 5
+#define CTF_OFFSET_HBM 5
+
#endif