thermal: enable frequency based constrain on gpu thermal throttle
Replacec cdevceiling and hardlimit information with freuqencies in thermal config Bug: 336698561 Test: Flash Build and boot to home, run adb dumpsys android.hardware.thermal.IThermal/default, check the cdevceiling and hardlimit number for gpu Change-Id: If5d105208ea055230dbbf4b6ecbac799b04a18db Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
parent
30eb0787d6
commit
c8155e9f31
3 changed files with 15 additions and 12 deletions
|
@ -759,8 +759,8 @@
|
|||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S2S_VDD_G3D",
|
||||
"CdevCeiling": [0, 9, 9, 9, 10, 12, 12],
|
||||
"LimitInfo": [0, 0, 0, 0, 0, 12, 12]
|
||||
"CdevCeilingFrequency": [940000, 419000, 419000, 419000, 376000, 302000, 302000],
|
||||
"LimitInfoFrequency": [940000, 940000, 940000, 940000, 940000, 302000, 302000]
|
||||
},
|
||||
{
|
||||
"CdevRequest": "tpu_cooling",
|
||||
|
@ -802,7 +802,7 @@
|
|||
{
|
||||
"CdevRequest": "thermal-gpufreq-0",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"CdevCeiling": [0, 9, 9, 10, 12, 12, 12]
|
||||
"CdevCeilingFrequency": [940000, 419000, 419000, 376000, 302000, 302000, 302000]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1162,7 +1162,8 @@
|
|||
{
|
||||
"Name":"thermal-gpufreq-0",
|
||||
"Type":"GPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote"
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote",
|
||||
"ScalingAvailableFrequenciesPath": "/sys/devices/platform/1f000000.mali/available_frequencies"
|
||||
},
|
||||
{
|
||||
"Name":"chg_mdis",
|
||||
|
|
|
@ -735,8 +735,8 @@
|
|||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S2S_VDD_G3D",
|
||||
"CdevCeiling": [0, 9, 9, 9, 10, 12, 12],
|
||||
"LimitInfo": [0, 0, 0, 0, 0, 12, 12]
|
||||
"CdevCeilingFrequency": [940000, 419000, 419000, 419000, 376000, 302000, 302000],
|
||||
"LimitInfoFrequency": [940000, 940000, 940000, 940000, 940000, 302000, 302000]
|
||||
},
|
||||
{
|
||||
"CdevRequest": "tpu_cooling",
|
||||
|
@ -778,7 +778,7 @@
|
|||
{
|
||||
"CdevRequest": "thermal-gpufreq-0",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"CdevCeiling": [0, 9, 9, 10, 12, 12, 12]
|
||||
"CdevCeilingFrequency": [940000, 419000, 419000, 376000, 302000, 302000, 302000]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1149,7 +1149,8 @@
|
|||
{
|
||||
"Name":"thermal-gpufreq-0",
|
||||
"Type":"GPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote"
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote",
|
||||
"ScalingAvailableFrequenciesPath": "/sys/devices/platform/1f000000.mali/available_frequencies"
|
||||
},
|
||||
{
|
||||
"Name":"chg_mdis",
|
||||
|
|
|
@ -740,8 +740,8 @@
|
|||
"MaxReleaseStep": 1,
|
||||
"MaxThrottleStep": 1,
|
||||
"BindedPowerRail": "S2S_VDD_G3D",
|
||||
"CdevCeiling": [0, 9, 9, 9, 10, 12, 12],
|
||||
"LimitInfo": [0, 0, 0, 0, 0, 12, 12]
|
||||
"CdevCeilingFrequency": [940000, 419000, 419000, 419000, 376000, 302000, 302000],
|
||||
"LimitInfoFrequency": [940000, 940000, 940000, 940000, 940000, 302000, 302000]
|
||||
},
|
||||
{
|
||||
"CdevRequest": "tpu_cooling",
|
||||
|
@ -783,7 +783,7 @@
|
|||
{
|
||||
"CdevRequest": "thermal-gpufreq-0",
|
||||
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
|
||||
"CdevCeiling": [0, 9, 9, 10, 12, 12, 12]
|
||||
"CdevCeilingFrequency": [940000, 419000, 419000, 376000, 302000, 302000, 302000]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1165,7 +1165,8 @@
|
|||
{
|
||||
"Name":"thermal-gpufreq-0",
|
||||
"Type":"GPU",
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote"
|
||||
"WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote",
|
||||
"ScalingAvailableFrequenciesPath": "/sys/devices/platform/1f000000.mali/available_frequencies"
|
||||
},
|
||||
{
|
||||
"Name":"chg_mdis",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue