mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
walleye: Adjust powerhint for QOS interface
Currently all writes to the dev interface are done by WriteStringToFd that uses char internally. The current values seem to expect to be written as s32, this sadly won't happen and triggers a special case in the write handling of pm_qos_power_write: it expects char buffers to be encoded as base16 and decodes them. This means the current 44 is actually 0x44 -> 68 seen by the kernel. Luckily it seems like both accepted values for this node don't hit the threshold to enter C2, so it was never noticed in real usage and didn't effect the device C-States handling during hints. Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Change-Id: Ic544d4dcaa1edc3de913aed737baf1af88a45360
This commit is contained in:
committed by
Asriadi Rahim
parent
0a18eceb70
commit
e56aa9a6c9
@@ -130,8 +130,8 @@
|
||||
"Name": "PMQoSCpuDmaLatency",
|
||||
"Path": "/dev/cpu_dma_latency",
|
||||
"Values": [
|
||||
"44",
|
||||
"100"
|
||||
"2c",
|
||||
"64"
|
||||
],
|
||||
"HoldFd": true
|
||||
},
|
||||
@@ -373,7 +373,7 @@
|
||||
"PowerHint": "LAUNCH",
|
||||
"Node": "PMQoSCpuDmaLatency",
|
||||
"Duration": 5000,
|
||||
"Value": "44"
|
||||
"Value": "2c"
|
||||
},
|
||||
{
|
||||
"PowerHint": "LAUNCH",
|
||||
@@ -421,7 +421,7 @@
|
||||
"PowerHint": "CAMERA_LAUNCH",
|
||||
"Node": "PMQoSCpuDmaLatency",
|
||||
"Duration": 1000,
|
||||
"Value": "44"
|
||||
"Value": "2c"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_STREAMING",
|
||||
@@ -457,7 +457,7 @@
|
||||
"PowerHint": "CAMERA_SHOT",
|
||||
"Node": "PMQoSCpuDmaLatency",
|
||||
"Duration": 1000,
|
||||
"Value": "44"
|
||||
"Value": "2c"
|
||||
},
|
||||
{
|
||||
"PowerHint": "CAMERA_SHOT",
|
||||
@@ -493,7 +493,7 @@
|
||||
"PowerHint": "AUDIO_STREAMING",
|
||||
"Node": "PMQoSCpuDmaLatency",
|
||||
"Duration": 2000,
|
||||
"Value": "44"
|
||||
"Value": "2c"
|
||||
},
|
||||
{
|
||||
"PowerHint": "AUDIO_LOW_LATENCY",
|
||||
@@ -505,7 +505,7 @@
|
||||
"PowerHint": "AUDIO_LOW_LATENCY",
|
||||
"Node": "PMQoSCpuDmaLatency",
|
||||
"Duration": 0,
|
||||
"Value": "44"
|
||||
"Value": "2c"
|
||||
},
|
||||
{
|
||||
"PowerHint": "EXPENSIVE_RENDERING",
|
||||
|
||||
Reference in New Issue
Block a user