Skip to content

Commit

Permalink
davinci: Update powerhint from sunfish
Browse files Browse the repository at this point in the history
powerhint.json: correct the path and value

Because the arch of sm7150 is different from 8150, correct the path and
adjust the value to align with sm7150. This is the initial version of
settings and still need to tuning for power/performance balance.

Bug: 142552311
Test: build and check the values
Change-Id: If061ee698c5f0164af876f171d504daa7a0c5847

powerhint.json: adjust GPU frequency by power level

We have 7150AA/7150AB devices at the same time and they have different
GPU freq table, so we use power level to adjust them

Test: powerhint test
Bug: 149962153
Change-Id: I3aa778eea762f1cd11d162a094db5c564269315e
  • Loading branch information
Kyle Lin authored and adi8900 committed Dec 17, 2020
1 parent 423f035 commit c37be52
Showing 1 changed file with 37 additions and 29 deletions.
66 changes: 37 additions & 29 deletions power/powerhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,22 @@
},
{
"Name": "GPUMaxFreq",
"Path": "/sys/class/kgsl/kgsl-3d0/devfreq/max_freq",
"Path": "/sys/class/kgsl/kgsl-3d0/max_pwrlevel",
"Values": [
"610000000",
"430000000",
"180000000"
"0",
"3",
"7"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "GPUMinFreq",
"Path": "/sys/class/kgsl/kgsl-3d0/devfreq/min_freq",
"Path": "/sys/class/kgsl/kgsl-3d0/min_pwrlevel",
"Values": [
"610000000",
"430000000",
"355000000",
"267000000",
"180000000"
"0",
"3",
"7"
],
"ResetOnInit": true
},
Expand Down Expand Up @@ -176,7 +174,8 @@
"Values": [
"14236",
"9155",
"2288"
"7110",
"4577"
],
"ResetOnInit": true
},
Expand Down Expand Up @@ -217,6 +216,24 @@
],
"ResetOnInit": true
},
{
"Name": "L3LittleClusterMinFreq",
"Path": "/sys/class/devfreq/soc:qcom,cpu0-cpu-l3-lat/min_freq",
"Values": [
"1459200000",
"300000000"
],
"ResetOnInit": true
},
{
"Name": "L3BigClusterMinFreq",
"Path": "/sys/class/devfreq/soc:qcom,cpu6-cpu-l3-lat/min_freq",
"Values": [
"1459200000",
"300000000"
],
"ResetOnInit": true
},
{
"Name": "CameraHalCpuset",
"Path": "/dev/cpuset/camera-daemon/cpus",
Expand All @@ -235,15 +252,6 @@
],
"ResetOnInit": true
},
{
"Name": "L3BigClusterMinFreq",
"Path": "/sys/class/devfreq/soc:qcom,cpu6-cpu-l3-lat/min_freq",
"Values": [
"1459200000",
"300000000"
],
"ResetOnInit": true
},
{
"Name": "PMQoSCpuDmaLatency",
"Path": "/dev/cpu_dma_latency",
Expand Down Expand Up @@ -281,11 +289,11 @@
"ResetOnInit": true
},
{
"Name": "SchedFeatures",
"Path": "/sys/kernel/debug/sched_features",
"Name": "EnergyAware",
"Path": "/proc/sys/kernel/sched_energy_aware",
"Values": [
"NO_ENERGY_AWARE",
"ENERGY_AWARE"
"0",
"1"
],
"ResetOnInit": true
},
Expand Down Expand Up @@ -351,7 +359,7 @@
"PowerHint": "SUSTAINED_PERFORMANCE",
"Node": "GPUMaxFreq",
"Duration": 0,
"Value": "430000000"
"Value": "0"
},
{
"PowerHint": "INTERACTION",
Expand Down Expand Up @@ -421,9 +429,9 @@
},
{
"PowerHint": "LAUNCH",
"Node": "SchedFeatures",
"Node": "EnergyAware",
"Duration": 2000,
"Value": "NO_ENERGY_AWARE"
"Value": "0"
},
{
"PowerHint": "LAUNCH",
Expand Down Expand Up @@ -543,13 +551,13 @@
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMinFreq",
"Duration": 0,
"Value": "430000000"
"Value": "3"
},
{
"PowerHint": "EXPENSIVE_RENDERING",
"Node": "GPUMaxFreq",
"Duration": 0,
"Value": "610000000"
"Value": "0"
}
]
}

0 comments on commit c37be52

Please sign in to comment.