Tune GPU dvfs period during app launch

Instead of using hard-coded GPU freq, tune
DVFS period instead.

Test: Boot
Bug: 239887528
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I53415fb5c5390adace99b593495c6388b3232cd0
This commit is contained in:
Wei Wang 2022-08-08 21:20:29 -07:00
parent b626d6195d
commit 801a67005d

View file

@ -123,6 +123,15 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "GPUDvfsPeriod",
"Path": "/sys/devices/platform/28000000.mali/dvfs_period",
"Values": [
"10",
"20"
],
"ResetOnInit": true
},
{ {
"Name": "UClampThreshold", "Name": "UClampThreshold",
"Path": "/proc/vendor_sched/uclamp_threshold", "Path": "/proc/vendor_sched/uclamp_threshold",
@ -549,9 +558,9 @@
}, },
{ {
"PowerHint": "LAUNCH_GPU", "PowerHint": "LAUNCH_GPU",
"Node": "GPUMinFreq", "Node": "GPUDvfsPeriod",
"Duration": 1000, "Duration": 1000,
"Value": "848000" "Value": "10"
}, },
{ {
"PowerHint": "LAUNCH_120FPS", "PowerHint": "LAUNCH_120FPS",