summaryrefstree
path: root/vendor/etc/gamesched_config.xml
blob: 17cbe468fcd5b7f6f805fba605e9e0ca0b0fddcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<?xml version="1.0" encoding="utf-8"?>
<!-- config value
 * Copyright (C) 2018 Huawei Inc.
 *
-->
<gamesched>
    <gamesched_common_config>
        <featureCfg>
            <mGpuAIEnable>1</mGpuAIEnable>
            <mSupportHotplug>1</mSupportHotplug>
            <mSupportGpuHotplug>0</mSupportGpuHotplug>
            <mSupportGpuMargin>1</mSupportGpuMargin>
            <mSupportOnlineLearning>1</mSupportOnlineLearning>
            <mUseYieldThreadDetect>0</mUseYieldThreadDetect>
            <mSupportL3Profiler>0</mSupportL3Profiler>
            <mIsLite>0</mIsLite>
            <mSuppGetDdrOtherVote>0</mSuppGetDdrOtherVote>
            <mSupportSetL3cPartition>0</mSupportSetL3cPartition>
            <mSupportRealTime>0</mSupportRealTime>
            <mSuppCpuBoundDetect>1</mSuppCpuBoundDetect>
            <mUseRtg>1</mUseRtg>
            <mSupportAbnFrameDetect>1</mSupportAbnFrameDetect>
            <mSupportVipThread>1</mSupportVipThread>
            <mFavorLittleEnable>1</mFavorLittleEnable>
            <mSupportGpuDop>0</mSupportGpuDop>
            <mSupportCpuHwpInfo>1</mSupportCpuHwpInfo>
            <mSupportSmt>1</mSupportSmt>
            <mSupportCloseOnsysAvs>1</mSupportCloseOnsysAvs>
        </featureCfg>

        <globalCfg>
            <mDefaultCpuDomain>1</mDefaultCpuDomain>
            <mNumCpuCores>8</mNumCpuCores>
            <mGpuTargetLoad>90</mGpuTargetLoad>
            <mGpuRunLoadRate>96</mGpuRunLoadRate>
            <mGpuFullLoad>100</mGpuFullLoad>
            <mGpuWindowSize>6</mGpuWindowSize>
            <mGpuCoreNum>4</mGpuCoreNum>
            <mClusterPowerThres>5</mClusterPowerThres>
            <mClusterProfileThres>12</mClusterProfileThres>
            <mSgdProfileThres>32</mSgdProfileThres>
            <mDefaultMaxBindcoreNum>6</mDefaultMaxBindcoreNum>
            <mCheckGpuVersionIoctl>0</mCheckGpuVersionIoctl>
            <mIsHvgrGpu>1</mIsHvgrGpu>
            <mIsHmKernel>1</mIsHmKernel>
        </globalCfg>

        <stringCfg>
            <mGpuCurFreqPath>/sys/class/devfreq/gpufreq/cur_freq</mGpuCurFreqPath>
            <mGpuUserFreqPath>/sys/class/devfreq/gpufreq/gpu_scene_aware/user_set_freq</mGpuUserFreqPath>
            <mDdrCurFreqPath>/sys/class/devfreq/ddrfreq/cur_freq</mDdrCurFreqPath>
            <mPerfCtlPath>/dev/hisi_perf_ctrl</mPerfCtlPath>
            <mGpuDevPath>/dev/hvgr0</mGpuDevPath>
            <mCpuPossiblePath>/sys/devices/system/cpu/possible</mCpuPossiblePath>
            <mCpuCoreSiblingListPath>/sys/devices/system/cpu/cpu*/topology/core_siblings_list</mCpuCoreSiblingListPath>
            <mClusterIdPath>/sys/devices/system/cpu/cpu*/topology/physical_package_id</mClusterIdPath>
            <mCpuCoreSiblingPath>/sys/devices/system/cpu/cpu*/topology/core_siblings</mCpuCoreSiblingPath>
            <mCpuAvlFreqPath>/sys/devices/system/cpu/cpufreq/policy*/scaling_available_frequencies</mCpuAvlFreqPath>
            <mGpuAvlFreqPath>/sys/class/devfreq/gpufreq/available_frequencies</mGpuAvlFreqPath>
            <mGpuTopAvlFreqPath>/sys/devices/platform/gputop/available_frequencies</mGpuTopAvlFreqPath>
            <mDdrAvlFreqPath>/sys/class/devfreq/ddrfreq/available_frequencies</mDdrAvlFreqPath>
            <mGpuAvlCoreMaskPath>/sys/devices/platform/e9fc0000.hvgr/core_mask</mGpuAvlCoreMaskPath>
        </stringCfg>

        <chipCfg>
            <mDdrTypePath>/sys/class/devfreq/ddrfreq/available_frequencies</mDdrTypePath>
            <mDdr4MaxFreq>2133000000</mDdr4MaxFreq>
            <mPossibleCpuPath>/sys/devices/system/cpu/possible</mPossibleCpuPath>
            <mChipTypePath>/proc/device-tree/hisi,chiptype</mChipTypePath>
            <mEnumCs2Str>csv2</mEnumCs2Str>
        </chipCfg>
    </gamesched_common_config>

    <gamesched_chip_config>
        <file_name mChipType="1" mDdrType="0" id="0"><!--//cs, ddr4-->
            <runtime_formula_file_path>/vendor/etc/runtime_formula.txt</runtime_formula_file_path>
            <power_formula_file_path>/vendor/etc/power_formula.txt</power_formula_file_path>
            <cpu_info_name>cpu_domain_list</cpu_info_name>
            <ddr_info_name>ddr4_info_list</ddr_info_name>
            <low_limit_freqs_list_name>low_limit_freqs_cs_list</low_limit_freqs_list_name>
            <boost_combs_list_name>boost_combs_cs_ddr4</boost_combs_list_name>
            <thermal_combs_list_name>thermal_combs_cs_ddr4</thermal_combs_list_name>
        </file_name>
        <file_name mChipType="1" mDdrType="1" id="1"><!--//cs, ddr5-->
            <runtime_formula_file_path>/vendor/etc/runtime_formula_ddr5.txt</runtime_formula_file_path>
            <power_formula_file_path>/vendor/etc/power_formula_ddr5.txt</power_formula_file_path>
            <cpu_info_name>cpu_domain_list</cpu_info_name>
            <ddr_info_name>ddr5_info_list</ddr_info_name>
            <low_limit_freqs_list_name>low_limit_freqs_cs_list</low_limit_freqs_list_name>
            <boost_combs_list_name>boost_combs_cs_ddr5</boost_combs_list_name>
            <thermal_combs_list_name>thermal_combs_cs_ddr5</thermal_combs_list_name>
        </file_name>
        <file_name mChipType="2" mDdrType="0" id="2"><!--//cs2, ddr4-->
            <runtime_formula_file_path>/vendor/etc/runtime_formula_cs2_ddr4.txt</runtime_formula_file_path>
            <power_formula_file_path>/vendor/etc/power_formula_cs2_ddr4.txt</power_formula_file_path>
            <cpu_info_name>cpu_domain_list_cs2</cpu_info_name>
            <ddr_info_name>ddr4_info_list</ddr_info_name>
            <low_limit_freqs_list_name>low_limit_freqs_cs2_list</low_limit_freqs_list_name>
            <boost_combs_list_name>boost_combs_cs2_ddr4</boost_combs_list_name>
            <thermal_combs_list_name>thermal_combs_cs_ddr4</thermal_combs_list_name>
        </file_name>
        <file_name mChipType="2" mDdrType="1" id="3"><!--//cs2, ddr5-->
            <runtime_formula_file_path>/vendor/etc/runtime_formula_cs2_ddr5.txt</runtime_formula_file_path>
            <power_formula_file_path>/vendor/etc/power_formula_cs2_ddr5.txt</power_formula_file_path>
            <cpu_info_name>cpu_domain_list_cs2</cpu_info_name>
            <ddr_info_name>ddr5_info_list</ddr_info_name>
            <low_limit_freqs_list_name>low_limit_freqs_cs2_list</low_limit_freqs_list_name>
            <boost_combs_list_name>boost_combs_cs2_ddr5</boost_combs_list_name>
            <thermal_combs_list_name>thermal_combs_cs_ddr5</thermal_combs_list_name>
        </file_name>
    </gamesched_chip_config>

    <gamesched_platform_config>
        <cpu_domain_list para_size="3">
            <mCpuDomains id="0">
                <freqs>418 490 550 668 758 864 1018 1148 1287 1430 1530</freqs>
                <scalingGovernor>schedutil</scalingGovernor>
                <cpuType>armv8_pmuv3</cpuType>
            </mCpuDomains>
            <mCpuDomains id="1">
                <freqs>418 450 576 692 750 869 999 1104 1204 1325 1440 1570 1652 1748 1850 1930</freqs>
                <scalingGovernor>schedutil</scalingGovernor>
                <cpuType>armv8_pmuv3</cpuType>
            </mCpuDomains>
            <mCpuDomains id="2">
                <freqs>1239 1364 1479 1594 1696 1844 1992 2120 2237 2350 2487 2620</freqs>
                <scalingGovernor>schedutil</scalingGovernor>
                <cpuType>armv8_pmuv3</cpuType>
            </mCpuDomains>
        </cpu_domain_list>

        <cpu_domain_list_cs2 para_size="3">
            <mCpuDomains id="0">
                <freqs>335 418 482 550 668 770 864 1018 1149 1239 1330 1400</freqs>
                <scalingGovernor>schedutil</scalingGovernor>
                <cpuType>armv8_pmuv3</cpuType>
            </mCpuDomains>
            <mCpuDomains id="1">
                <freqs>335 418 470 576 682 778 869 999 1114 1247 1346 1431 1620 1757 1880</freqs>
                <scalingGovernor>schedutil</scalingGovernor>
                <cpuType>armv8_pmuv3</cpuType>
            </mCpuDomains>
            <mCpuDomains id="2">
                <freqs>1120 1247 1364 1480 1613 1728 1850 1959 2060 2189 2300</freqs>
                <scalingGovernor>schedutil</scalingGovernor>
                <cpuType>armv8_pmuv3</cpuType>
            </mCpuDomains>
        </cpu_domain_list_cs2>

        <game_pmu_event_list para_size="3">
            <mGamePmuEvents id="0">
                <rawId>8</rawId>
                <name>Instructions</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatEwmaPredictor</predictorCreateFunc>
            </mGamePmuEvents>
            <mGamePmuEvents id="1">
                <rawId>23</rawId>
                <name>FE Issued</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatMeanValuePredictor</predictorCreateFunc>
            </mGamePmuEvents>
            <mGamePmuEvents id="2">
                <rawId>24</rawId>
                <name>BE Issued</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatMeanValuePredictor</predictorCreateFunc>
            </mGamePmuEvents>
        </game_pmu_event_list>
        <cpu_pmu_event_list para_size="3">
            <mCpuPmuEvents id="0">
                <rawId>8</rawId>
                <name>Instructions</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatEwmaPredictor</predictorCreateFunc>
            </mCpuPmuEvents>
            <mCpuPmuEvents id="1">
                <rawId>23</rawId>
                <name>FE Issued</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatMeanValuePredictor</predictorCreateFunc>
            </mCpuPmuEvents>
            <mCpuPmuEvents id="2">
                <rawId>24</rawId>
                <name>BE Issued</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatMeanValuePredictor</predictorCreateFunc>
            </mCpuPmuEvents>
        </cpu_pmu_event_list>
        <camera_pmu_event_list para_size="1">
            <mCameraPmuEvents id="0">
                <rawId>8</rawId>
                <name>Instructions</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>CreatMeanValuePredictor</predictorCreateFunc>
            </mCameraPmuEvents>
        </camera_pmu_event_list>

        <counter_events_list para_size="3">
            <mCounterEvents id="0">
                <rawId>d</rawId>
                <name>Gpu Active</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>nullptr</predictorCreateFunc>
            </mCounterEvents>
            <mCounterEvents id="1">
                <rawId>14</rawId>
                <name>JS0 Active</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>nullptr</predictorCreateFunc>
            </mCounterEvents>
            <mCounterEvents id="2">
                <rawId>17</rawId>
                <name>JS1 Active</name>
                <normalizeCoef>1000000</normalizeCoef>
                <predictorCreateFunc>nullptr</predictorCreateFunc>
            </mCounterEvents>
        </counter_events_list>

        <gpu_hotplug_list para_size="4">
            <mGpuHotplug id="0">
                <downLoadRatio>0</downLoadRatio>
                <coreNum>1</coreNum>
                <coreMask>0x1</coreMask>
            </mGpuHotplug>
            <mGpuHotplug id="1">
                <downLoadRatio>50</downLoadRatio>
                <coreNum>2</coreNum>
                <coreMask>0x3</coreMask>
            </mGpuHotplug>
            <mGpuHotplug id="2">
                <downLoadRatio>70</downLoadRatio>
                <coreNum>3</coreNum>
                <coreMask>0x7</coreMask>
            </mGpuHotplug>
            <mGpuHotplug id="4">
                <downLoadRatio>75</downLoadRatio>
                <coreNum>4</coreNum>
                <coreMask>0xF</coreMask>
            </mGpuHotplug>
        </gpu_hotplug_list>

        <ddr4_info_list para_size="1">
            <mDdrInfo id="0">
                <ddrFreq>418 826 1104 1661 1795 2131</ddrFreq>
                <ddrBws>4012 7929 10598 15945 17232 20457</ddrBws>
                <ddrBwsLowThre>3344 6608 8832 13819 14360 17048</ddrBwsLowThre>
            </mDdrInfo>
        </ddr4_info_list>

        <ddr5_info_list para_size="1">
            <mDdrInfo id="0">
                <ddrFreq>418 749 1104 1531 2107 2746 3197</ddrFreq>
                <ddrBws>4012 7190 10598 14697 20227 26361 30691</ddrBws>
                <ddrBwsLowThre>3344 5992 8832 12248 16856 21968 25576</ddrBwsLowThre>
            </mDdrInfo>
        </ddr5_info_list>

        <low_limit_freqs_es_list para_size="1">
            <mLowLimitFreqs id="0">
                <lpCpuFreq>0 1148 1530</lpCpuFreq>
                <pfCpuFreq>0 1104 1570</pfCpuFreq>
                <gpuFreq>0 308 474</gpuFreq>
            </mLowLimitFreqs>
        </low_limit_freqs_es_list>

        <low_limit_freqs_cs_list para_size="1">
            <mLowLimitFreqs id="0">
                <lpCpuFreq>0 1148 1530</lpCpuFreq>
                <pfCpuFreq>0 750 1104</pfCpuFreq>
                <gpuFreq>0 308 474</gpuFreq>
            </mLowLimitFreqs>
        </low_limit_freqs_cs_list>

        <low_limit_freqs_cs2_list para_size="1">
            <mLowLimitFreqs id="0">
                <lpCpuFreq>0 1148 1530</lpCpuFreq>
                <pfCpuFreq>0 778 1114</pfCpuFreq>
                <gpuFreq>0 308 474</gpuFreq>
            </mLowLimitFreqs>
        </low_limit_freqs_cs2_list>

        <l3_freq_table_list para_size="8">
            <vector_int id="0" >576   600</vector_int>
            <vector_int id="1" >869   749</vector_int>
            <vector_int id="2" >1104  964</vector_int>
            <vector_int id="3" >1570 1066</vector_int>
            <vector_int id="4" >1652 1066</vector_int>
            <vector_int id="5" >1850 1152</vector_int>
            <vector_int id="6" >2350 1316</vector_int>
            <vector_int id="7" >2620 1380</vector_int>
        </l3_freq_table_list>

        <boost_combs_cs_ddr4 para_size="10">
            <boost_combs id="0"> 0 758  418 </boost_combs>
            <boost_combs id="1"> 0 1018 826 </boost_combs>
            <boost_combs id="2"> 1 1104 1104</boost_combs>
            <boost_combs id="3"> 1 1325 1661</boost_combs>
            <boost_combs id="4"> 1 1570 1661</boost_combs>
            <boost_combs id="5"> 1 1748 1661</boost_combs>
            <boost_combs id="6"> 2 2120 2131</boost_combs>
            <boost_combs id="7"> 2 2237 2131</boost_combs>
            <boost_combs id="8"> 2 2487 2131</boost_combs>
            <boost_combs id="9"> 2 2620 2131</boost_combs>
        </boost_combs_cs_ddr4>

        <boost_combs_cs_ddr5 para_size="10">
            <boost_combs id="0"> 0 758  418 </boost_combs>
            <boost_combs id="1"> 0 1018 749 </boost_combs>
            <boost_combs id="2"> 1 1104 1104</boost_combs>
            <boost_combs id="3"> 1 1325 1531</boost_combs>
            <boost_combs id="4"> 1 1570 1531</boost_combs>
            <boost_combs id="5"> 1 1748 1531</boost_combs>
            <boost_combs id="6"> 2 2120 3197</boost_combs>
            <boost_combs id="7"> 2 2237 3197</boost_combs>
            <boost_combs id="8"> 2 2487 3197</boost_combs>
            <boost_combs id="9"> 2 2620 3197</boost_combs>
        </boost_combs_cs_ddr5>

        <boost_combs_cs2_ddr4 para_size="7">
            <boost_combs id="0"> 1 1114 1104</boost_combs>
            <boost_combs id="1"> 1 1346 1661</boost_combs>
            <boost_combs id="2"> 1 1620 1661</boost_combs>
            <boost_combs id="3"> 1 1880 1661</boost_combs>
            <boost_combs id="4"> 2 2060 2131</boost_combs>
            <boost_combs id="5"> 2 2189 2131</boost_combs>
            <boost_combs id="6"> 2 2300 2131</boost_combs>
        </boost_combs_cs2_ddr4>

        <boost_combs_cs2_ddr5 para_size="7">
            <boost_combs id="0"> 1 1114 1104</boost_combs>
            <boost_combs id="1"> 1 1346 1531</boost_combs>
            <boost_combs id="2"> 1 1620 1531</boost_combs>
            <boost_combs id="3"> 1 1880 1531</boost_combs>
            <boost_combs id="4"> 2 2060 3197</boost_combs>
            <boost_combs id="5"> 2 2189 3197</boost_combs>
            <boost_combs id="6"> 2 2300 3197</boost_combs>
        </boost_combs_cs2_ddr5>

        <thermal_combs_cs_ddr4 para_size="1">
            <boost_combs id="0">1 1440 1661</boost_combs>
        </thermal_combs_cs_ddr4>

        <thermal_combs_cs_ddr5 para_size="1">
            <boost_combs id="0">1 1440 1531</boost_combs>
        </thermal_combs_cs_ddr5>
    </gamesched_platform_config>
</gamesched>