xref: /linux/drivers/gpu/drm/amd/pm/powerplay/inc/pp_thermal.h (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1837d542aSEvan Quan /*
2837d542aSEvan Quan  * Copyright 2018 Advanced Micro Devices, Inc.
3837d542aSEvan Quan  *
4837d542aSEvan Quan  * Permission is hereby granted, free of charge, to any person obtaining a
5837d542aSEvan Quan  * copy of this software and associated documentation files (the "Software"),
6837d542aSEvan Quan  * to deal in the Software without restriction, including without limitation
7837d542aSEvan Quan  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8837d542aSEvan Quan  * and/or sell copies of the Software, and to permit persons to whom the
9837d542aSEvan Quan  * Software is furnished to do so, subject to the following conditions:
10837d542aSEvan Quan  *
11837d542aSEvan Quan  * The above copyright notice and this permission notice shall be included in
12837d542aSEvan Quan  * all copies or substantial portions of the Software.
13837d542aSEvan Quan  *
14837d542aSEvan Quan  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15837d542aSEvan Quan  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16837d542aSEvan Quan  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17837d542aSEvan Quan  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18837d542aSEvan Quan  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19837d542aSEvan Quan  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20837d542aSEvan Quan  * OTHER DEALINGS IN THE SOFTWARE.
21837d542aSEvan Quan  *
22837d542aSEvan Quan  */
23837d542aSEvan Quan #ifndef PP_THERMAL_H
24837d542aSEvan Quan #define PP_THERMAL_H
25837d542aSEvan Quan 
26837d542aSEvan Quan #include "power_state.h"
27837d542aSEvan Quan 
28*4d2d4f15SRan Sun static const struct PP_TemperatureRange __maybe_unused SMU7ThermalWithDelayPolicy[] = {
29837d542aSEvan Quan 	{-273150,  99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000},
30837d542aSEvan Quan 	{ 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},
31837d542aSEvan Quan };
32837d542aSEvan Quan 
33*4d2d4f15SRan Sun static const struct PP_TemperatureRange __maybe_unused SMU7ThermalPolicy[] = {
34837d542aSEvan Quan 	{-273150,  99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000},
35837d542aSEvan Quan 	{ 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},
36837d542aSEvan Quan };
37837d542aSEvan Quan 
38837d542aSEvan Quan #define CTF_OFFSET_EDGE			5
39837d542aSEvan Quan #define CTF_OFFSET_HOTSPOT		5
40837d542aSEvan Quan #define CTF_OFFSET_HBM			5
41837d542aSEvan Quan 
42837d542aSEvan Quan #endif
43