1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#ifndef SMU_11_0_7_PPTABLE_H
23#define SMU_11_0_7_PPTABLE_H
24
25
26#define SMU_11_0_7_TABLE_FORMAT_REVISION 15
27
28
29#define SMU_11_0_7_PP_PLATFORM_CAP_POWERPLAY 0x1
30#define SMU_11_0_7_PP_PLATFORM_CAP_SBIOSPOWERSOURCE 0x2
31#define SMU_11_0_7_PP_PLATFORM_CAP_HARDWAREDC 0x4
32#define SMU_11_0_7_PP_PLATFORM_CAP_BACO 0x8
33#define SMU_11_0_7_PP_PLATFORM_CAP_MACO 0x10
34#define SMU_11_0_7_PP_PLATFORM_CAP_SHADOWPSTATE 0x20
35
36
37#define SMU_11_0_7_PP_THERMALCONTROLLER_NONE 0
38#define SMU_11_0_7_PP_THERMALCONTROLLER_SIENNA_CICHLID 28
39
40#define SMU_11_0_7_PP_OVERDRIVE_VERSION 0x81
41#define SMU_11_0_7_PP_POWERSAVINGCLOCK_VERSION 0x01
42
43enum SMU_11_0_7_ODFEATURE_CAP {
44 SMU_11_0_7_ODCAP_GFXCLK_LIMITS = 0,
45 SMU_11_0_7_ODCAP_GFXCLK_CURVE,
46 SMU_11_0_7_ODCAP_UCLK_LIMITS,
47 SMU_11_0_7_ODCAP_POWER_LIMIT,
48 SMU_11_0_7_ODCAP_FAN_ACOUSTIC_LIMIT,
49 SMU_11_0_7_ODCAP_FAN_SPEED_MIN,
50 SMU_11_0_7_ODCAP_TEMPERATURE_FAN,
51 SMU_11_0_7_ODCAP_TEMPERATURE_SYSTEM,
52 SMU_11_0_7_ODCAP_MEMORY_TIMING_TUNE,
53 SMU_11_0_7_ODCAP_FAN_ZERO_RPM_CONTROL,
54 SMU_11_0_7_ODCAP_AUTO_UV_ENGINE,
55 SMU_11_0_7_ODCAP_AUTO_OC_ENGINE,
56 SMU_11_0_7_ODCAP_AUTO_OC_MEMORY,
57 SMU_11_0_7_ODCAP_FAN_CURVE,
58 SMU_11_0_ODCAP_AUTO_FAN_ACOUSTIC_LIMIT,
59 SMU_11_0_7_ODCAP_POWER_MODE,
60 SMU_11_0_7_ODCAP_COUNT,
61};
62
63enum SMU_11_0_7_ODFEATURE_ID {
64 SMU_11_0_7_ODFEATURE_GFXCLK_LIMITS = 1 << SMU_11_0_7_ODCAP_GFXCLK_LIMITS,
65 SMU_11_0_7_ODFEATURE_GFXCLK_CURVE = 1 << SMU_11_0_7_ODCAP_GFXCLK_CURVE,
66 SMU_11_0_7_ODFEATURE_UCLK_LIMITS = 1 << SMU_11_0_7_ODCAP_UCLK_LIMITS,
67 SMU_11_0_7_ODFEATURE_POWER_LIMIT = 1 << SMU_11_0_7_ODCAP_POWER_LIMIT,
68 SMU_11_0_7_ODFEATURE_FAN_ACOUSTIC_LIMIT = 1 << SMU_11_0_7_ODCAP_FAN_ACOUSTIC_LIMIT,
69 SMU_11_0_7_ODFEATURE_FAN_SPEED_MIN = 1 << SMU_11_0_7_ODCAP_FAN_SPEED_MIN,
70 SMU_11_0_7_ODFEATURE_TEMPERATURE_FAN = 1 << SMU_11_0_7_ODCAP_TEMPERATURE_FAN,
71 SMU_11_0_7_ODFEATURE_TEMPERATURE_SYSTEM = 1 << SMU_11_0_7_ODCAP_TEMPERATURE_SYSTEM,
72 SMU_11_0_7_ODFEATURE_MEMORY_TIMING_TUNE = 1 << SMU_11_0_7_ODCAP_MEMORY_TIMING_TUNE,
73 SMU_11_0_7_ODFEATURE_FAN_ZERO_RPM_CONTROL = 1 << SMU_11_0_7_ODCAP_FAN_ZERO_RPM_CONTROL,
74 SMU_11_0_7_ODFEATURE_AUTO_UV_ENGINE = 1 << SMU_11_0_7_ODCAP_AUTO_UV_ENGINE,
75 SMU_11_0_7_ODFEATURE_AUTO_OC_ENGINE = 1 << SMU_11_0_7_ODCAP_AUTO_OC_ENGINE,
76 SMU_11_0_7_ODFEATURE_AUTO_OC_MEMORY = 1 << SMU_11_0_7_ODCAP_AUTO_OC_MEMORY,
77 SMU_11_0_7_ODFEATURE_FAN_CURVE = 1 << SMU_11_0_7_ODCAP_FAN_CURVE,
78 SMU_11_0_ODFEATURE_AUTO_FAN_ACOUSTIC_LIMIT = 1 << SMU_11_0_ODCAP_AUTO_FAN_ACOUSTIC_LIMIT,
79 SMU_11_0_7_ODFEATURE_POWER_MODE = 1 << SMU_11_0_7_ODCAP_POWER_MODE,
80 SMU_11_0_7_ODFEATURE_COUNT = 16,
81};
82
83#define SMU_11_0_7_MAX_ODFEATURE 32
84
85enum SMU_11_0_7_ODSETTING_ID {
86 SMU_11_0_7_ODSETTING_GFXCLKFMAX = 0,
87 SMU_11_0_7_ODSETTING_GFXCLKFMIN,
88 SMU_11_0_7_ODSETTING_CUSTOM_GFX_VF_CURVE_A,
89 SMU_11_0_7_ODSETTING_CUSTOM_GFX_VF_CURVE_B,
90 SMU_11_0_7_ODSETTING_CUSTOM_GFX_VF_CURVE_C,
91 SMU_11_0_7_ODSETTING_CUSTOM_CURVE_VFT_FMIN,
92 SMU_11_0_7_ODSETTING_UCLKFMIN,
93 SMU_11_0_7_ODSETTING_UCLKFMAX,
94 SMU_11_0_7_ODSETTING_POWERPERCENTAGE,
95 SMU_11_0_7_ODSETTING_FANRPMMIN,
96 SMU_11_0_7_ODSETTING_FANRPMACOUSTICLIMIT,
97 SMU_11_0_7_ODSETTING_FANTARGETTEMPERATURE,
98 SMU_11_0_7_ODSETTING_OPERATINGTEMPMAX,
99 SMU_11_0_7_ODSETTING_ACTIMING,
100 SMU_11_0_7_ODSETTING_FAN_ZERO_RPM_CONTROL,
101 SMU_11_0_7_ODSETTING_AUTOUVENGINE,
102 SMU_11_0_7_ODSETTING_AUTOOCENGINE,
103 SMU_11_0_7_ODSETTING_AUTOOCMEMORY,
104 SMU_11_0_7_ODSETTING_FAN_CURVE_TEMPERATURE_1,
105 SMU_11_0_7_ODSETTING_FAN_CURVE_SPEED_1,
106 SMU_11_0_7_ODSETTING_FAN_CURVE_TEMPERATURE_2,
107 SMU_11_0_7_ODSETTING_FAN_CURVE_SPEED_2,
108 SMU_11_0_7_ODSETTING_FAN_CURVE_TEMPERATURE_3,
109 SMU_11_0_7_ODSETTING_FAN_CURVE_SPEED_3,
110 SMU_11_0_7_ODSETTING_FAN_CURVE_TEMPERATURE_4,
111 SMU_11_0_7_ODSETTING_FAN_CURVE_SPEED_4,
112 SMU_11_0_7_ODSETTING_FAN_CURVE_TEMPERATURE_5,
113 SMU_11_0_7_ODSETTING_FAN_CURVE_SPEED_5,
114 SMU_11_0_7_ODSETTING_AUTO_FAN_ACOUSTIC_LIMIT,
115 SMU_11_0_7_ODSETTING_POWER_MODE,
116 SMU_11_0_7_ODSETTING_COUNT,
117};
118#define SMU_11_0_7_MAX_ODSETTING 64
119
120enum SMU_11_0_7_PWRMODE_SETTING {
121 SMU_11_0_7_PMSETTING_POWER_LIMIT_QUIET = 0,
122 SMU_11_0_7_PMSETTING_POWER_LIMIT_BALANCE,
123 SMU_11_0_7_PMSETTING_POWER_LIMIT_TURBO,
124 SMU_11_0_7_PMSETTING_POWER_LIMIT_RAGE,
125 SMU_11_0_7_PMSETTING_ACOUSTIC_TEMP_QUIET,
126 SMU_11_0_7_PMSETTING_ACOUSTIC_TEMP_BALANCE,
127 SMU_11_0_7_PMSETTING_ACOUSTIC_TEMP_TURBO,
128 SMU_11_0_7_PMSETTING_ACOUSTIC_TEMP_RAGE,
129};
130#define SMU_11_0_7_MAX_PMSETTING 32
131
132struct smu_11_0_7_overdrive_table
133{
134 uint8_t revision;
135 uint8_t reserve[3];
136 uint32_t feature_count;
137 uint32_t setting_count;
138 uint8_t cap[SMU_11_0_7_MAX_ODFEATURE];
139 uint32_t max[SMU_11_0_7_MAX_ODSETTING];
140 uint32_t min[SMU_11_0_7_MAX_ODSETTING];
141 int16_t pm_setting[SMU_11_0_7_MAX_PMSETTING];
142} __attribute__((packed));
143
144enum SMU_11_0_7_PPCLOCK_ID {
145 SMU_11_0_7_PPCLOCK_GFXCLK = 0,
146 SMU_11_0_7_PPCLOCK_SOCCLK,
147 SMU_11_0_7_PPCLOCK_UCLK,
148 SMU_11_0_7_PPCLOCK_FCLK,
149 SMU_11_0_7_PPCLOCK_DCLK_0,
150 SMU_11_0_7_PPCLOCK_VCLK_0,
151 SMU_11_0_7_PPCLOCK_DCLK_1,
152 SMU_11_0_7_PPCLOCK_VCLK_1,
153 SMU_11_0_7_PPCLOCK_DCEFCLK,
154 SMU_11_0_7_PPCLOCK_DISPCLK,
155 SMU_11_0_7_PPCLOCK_PIXCLK,
156 SMU_11_0_7_PPCLOCK_PHYCLK,
157 SMU_11_0_7_PPCLOCK_DTBCLK,
158 SMU_11_0_7_PPCLOCK_COUNT,
159};
160#define SMU_11_0_7_MAX_PPCLOCK 16
161
162struct smu_11_0_7_power_saving_clock_table
163{
164 uint8_t revision;
165 uint8_t reserve[3];
166 uint32_t count;
167 uint32_t max[SMU_11_0_7_MAX_PPCLOCK];
168 uint32_t min[SMU_11_0_7_MAX_PPCLOCK];
169} __attribute__((packed));
170
171struct smu_11_0_7_powerplay_table
172{
173 struct atom_common_table_header header;
174 uint8_t table_revision;
175 uint16_t table_size;
176 uint32_t golden_pp_id;
177 uint32_t golden_revision;
178 uint16_t format_id;
179 uint32_t platform_caps;
180
181 uint8_t thermal_controller_type;
182
183 uint16_t small_power_limit1;
184 uint16_t small_power_limit2;
185 uint16_t boost_power_limit;
186 uint16_t software_shutdown_temp;
187
188 uint16_t reserve[8];
189
190 struct smu_11_0_7_power_saving_clock_table power_saving_clock;
191 struct smu_11_0_7_overdrive_table overdrive_table;
192
193 PPTable_t smc_pptable;
194} __attribute__((packed));
195
196#endif
197