From d829f6b01ef9ab9055cc7b21b9366adfab7bac6b Mon Sep 17 00:00:00 2001 From: Daniel Chapin Date: Mon, 8 Apr 2024 16:56:32 +0000 Subject: [PATCH 1/4] Revert "audio: recording tuning table 7.2_v4" Revert submission 26784592-aoc_0402 Reason for revert: Droidfood blocking bugs: b/333323844 and b/333317188 Reverted changes: /q/submissionid:26784592-aoc_0402 Change-Id: I66c4eb4ec07c9db1761f112d5174581bd9775b35 --- audio/caiman/tuning/bluenote/recording.gatf | Bin 153108 -> 108156 bytes audio/caiman/tuning/bluenote/template.xml | 7 +++---- audio/komodo/tuning/bluenote/recording.gatf | Bin 108180 -> 108156 bytes audio/komodo/tuning/bluenote/template.xml | 7 +++---- audio/tokay/tuning/bluenote/recording.gatf | Bin 108180 -> 108156 bytes audio/tokay/tuning/bluenote/template.xml | 7 +++---- 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/audio/caiman/tuning/bluenote/recording.gatf b/audio/caiman/tuning/bluenote/recording.gatf index fcae1469d7995743eb22b0a3243d7f9f13e01c38..a3fe90d8cfb37219b16d25fc3b944a0d6e46dc82 100644 GIT binary patch delta 934 zcmbQThV#!EHkXppyyTK)j0|O|MR_a?3=E7w3=~W6S<*zlGp*%&jb``n3yQNIY6j_ zkLeB5#Cv8yPckY-Gj#}Wj#G?cibW6D1O9uahqk3WU!pqqG004*;G&cYM delta 1533 zcmex!hHc6k&cu?^ykwp*CWf-qqC6G`1_nkT28yMh5oBOUElEsQ0P=G$KD=66u6{;3 zB+=H&!{tP=M;ueb_2ka7>uVOjt1J`APOU8F0IGuk0fUsplEfaMekPzm%l61Z#>sq) zAEwLZF`6^(n0#zKOd%WDlM$^Ic{*w@<3m4eel$gBZ*DNnsA8&Kw$Bwp%E-IW3K=q)I zve;O7nun2P^TKn6EL;u_3=9yw`OYN+!Obg__H{}z91;Sm1BEOD!Kcl11lGf%s&q3B7V0u*nqYI2NDG=mp^hA=nSa(fNi^h$P2-((z z>zr2-FT6+=W_o|Jfa`+lBb{@ZC=qsmA2q_Z|C~Y~kp#k`ssSmg0;FzD|8qp_hV7{r zi&!+d<|wQ*jfH_nXqAoY=nOI#^ApbHkH~JZrrAJI^$p%Cv2*13seRo=7tH?1ze_Lg0C!M@|hb}>H7h5PJ5b_xJ9 W5CjMrfawOI5tIzDWL_3f<^=%J@v%(+ diff --git a/audio/caiman/tuning/bluenote/template.xml b/audio/caiman/tuning/bluenote/template.xml index dde1524d..8145ea1b 100644 --- a/audio/caiman/tuning/bluenote/template.xml +++ b/audio/caiman/tuning/bluenote/template.xml @@ -17,8 +17,8 @@ - - + + @@ -285,7 +285,7 @@ - + @@ -436,7 +436,6 @@ - diff --git a/audio/komodo/tuning/bluenote/recording.gatf b/audio/komodo/tuning/bluenote/recording.gatf index e56d43235b9740019a34aabd6dc5f000e88336f2..3f0af82cacffa9743a971018d73fb63e9353c791 100644 GIT binary patch delta 1111 zcmbPomhI0Ow#1UsyyTK)j0|O|MR_a?3=E7w3=~U0A;`dxT9TNq0OZ#RxF36_s+D7Z zV%s;po9o5WmhV(n+}I<;>frTp-8#EJ*{PMq96)to;2>;}l30@10o2a~6lj>d@Urye zKYJx69WvM)v%!Fm@y+Dkeddf?Cg(niX6g{$eCm+^)8wifT$61MIvAka++0!ZHRsR8 zNrzilWv2Iu)kJ4;&03)UwrJT&ou5IsH-4DB;h+d7vQ^2O4Gw|rNW6g0j-K@h-@R0g z^Svhf@@~%pnE_2S;E~*fTIF z0BHsX2phz|Fu8xNIbjuYc+GH_{9v7t*e0MgL1XQXriXzPcA3=G?V(ja9? z7|N#GOkpHeU4t)rG-*~JdwMo!w@;yM%oF+%o2OOSStf1fi&== zCXmewFHZ)g3j8sKoF4a?&U*QJP4%?Tm;W9;sax;6O|C4uwp=7O@xgafv2Dxvr+=8j zh?Xq27ffX&FI!z;*Y@Q M6-xU$M^M@T03_FSLjV8( delta 1238 zcmex!hHc7OHkXppyyTu`j0|O|MR_a?3=E7w3=~VBu%3Y-wInfJ0m$!v`APom-gP?r zLhs%@fBuR1=XXcu@!T>w_?GF^rKnlwG$%`ZSK)L3Y5-}r*es}Wnun2PyC4grAq$s- z0|NsDZ};I~d^byq;gAqe7048qt4wLmSnq#O~0F@`aJvMUm_9g8zVO5YtCeg2+*?+$)2muyl0?^Cb&tK0 z!3r!YUtXumw3;oS_et3p#mWYLR4XSN3MEh9!_26%S>_54Ub{_T-bGH!$5#JMSd(w0 zsdpn~&fnRu_J04h{SwE1Wuuv#rKJ)lWv5JjqD*93HW1wG;kK`HG(kghA1J|NPtala zS|{tg4qbCY!~X7~2jA8oxO;G&*BqOE--YKM-0V;mLy7JKn9-d-{RA_k1i|QL0Yx_e DVrY2> diff --git a/audio/komodo/tuning/bluenote/template.xml b/audio/komodo/tuning/bluenote/template.xml index dde1524d..8145ea1b 100644 --- a/audio/komodo/tuning/bluenote/template.xml +++ b/audio/komodo/tuning/bluenote/template.xml @@ -17,8 +17,8 @@ - - + + @@ -285,7 +285,7 @@ - + @@ -436,7 +436,6 @@ - diff --git a/audio/tokay/tuning/bluenote/recording.gatf b/audio/tokay/tuning/bluenote/recording.gatf index fdc5c7954b3378ea5969ea80ce9b86b9aae47ee6..c18058b22c83a9942ba0ea808be42ad188e8f42b 100644 GIT binary patch delta 1166 zcmbPomhI0Ow#1UsyyTK)j0|O|MR_a?3=E7w3=~U0A;`dxT9TNq0OYSO)-r1O9l=?$ z`RCg&97WxmU4Ey$c(x+w%&YuuB~y7-vr{XJIe_ZG-~hitN@7W32T(r~P@rLAV*d0y z%#0G7C#Y;;*<2tV!O8e$`ohJG=8Rh=Gb%O8{_lWt))q9UltyCy|^;$>S-sQ`*9Vl_= zAdDV|(vx|NB&IK5W|W$^PHg%GW=0iYeDd%yzL`AN2uDm}IDzLx+=2bMfBk2E%!zc> z(c0C*zfWDHK1r_q2Vd0#9=v7A8w)&Cn4Cj-4oN~*OC&{0@?`?Xr#hqKRw6_Pzwm-b}~ cTyZ?GaihzkkA>?lOg>;rDAn$oHG`j@T^XXt=En)^5dphq z&y0qT(RSX^w}Lk=wqtibBrF=Jv}33HzMz|lrM=AtlO?{Za5?}rfMUgBv!l>y9!8e! zf-H=NEL;u_3=9yw-G_tm-7G1FLqb4Rpg3e;*m6i1&Yo~^a=<F5G5GIht&{EXI#N_FFm>E?z%Ut2Xm$b0P^C7?MmzPQ%yK%B}{ZE5g xFZ9G0J2eY#R!s2xy?5r)NBi$g77-#co(%*ySD5VU9F1&9$^<2b1{P3c0{{{zZ;Su{ diff --git a/audio/tokay/tuning/bluenote/template.xml b/audio/tokay/tuning/bluenote/template.xml index dde1524d..8145ea1b 100644 --- a/audio/tokay/tuning/bluenote/template.xml +++ b/audio/tokay/tuning/bluenote/template.xml @@ -17,8 +17,8 @@ - - + + @@ -285,7 +285,7 @@ - + @@ -436,7 +436,6 @@ - From 9e046788ed4a19906699db102817b3ed3ef5b108 Mon Sep 17 00:00:00 2001 From: Robert Lee Date: Tue, 9 Apr 2024 02:23:03 +0000 Subject: [PATCH 2/4] audio: update mixer paths - Remove unused controls to prevent output error log Bug: 333470780 Test: manual test Change-Id: I8ef2ca649dc03e1969596fc3d91d9a187e978283 Signed-off-by: Robert Lee --- audio/caiman/aidl_config/mixer_paths_aidl.xml | 12 ++++++------ audio/komodo/aidl_config/mixer_paths_aidl.xml | 12 ++++++------ audio/tokay/aidl_config/mixer_paths_aidl.xml | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/audio/caiman/aidl_config/mixer_paths_aidl.xml b/audio/caiman/aidl_config/mixer_paths_aidl.xml index c8adc9fc..889fec3c 100644 --- a/audio/caiman/aidl_config/mixer_paths_aidl.xml +++ b/audio/caiman/aidl_config/mixer_paths_aidl.xml @@ -1298,10 +1298,10 @@ - + @@ -1310,17 +1310,17 @@ - + - - + diff --git a/audio/komodo/aidl_config/mixer_paths_aidl.xml b/audio/komodo/aidl_config/mixer_paths_aidl.xml index c8adc9fc..889fec3c 100644 --- a/audio/komodo/aidl_config/mixer_paths_aidl.xml +++ b/audio/komodo/aidl_config/mixer_paths_aidl.xml @@ -1298,10 +1298,10 @@ - + @@ -1310,17 +1310,17 @@ - + - - + diff --git a/audio/tokay/aidl_config/mixer_paths_aidl.xml b/audio/tokay/aidl_config/mixer_paths_aidl.xml index c8adc9fc..889fec3c 100644 --- a/audio/tokay/aidl_config/mixer_paths_aidl.xml +++ b/audio/tokay/aidl_config/mixer_paths_aidl.xml @@ -1298,10 +1298,10 @@ - + @@ -1310,17 +1310,17 @@ - + - - + From 3b22e46ef69036fcf86b4b1e7299764059bcb010 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Wed, 27 Mar 2024 08:19:18 +0000 Subject: [PATCH 3/4] Disable auto prefer idle explictly for some conditions In auto prefer idle mode, a task in top-app will be granted prefer idle if it satisfied the conditions. So turn auto prefer idle off if top-app prefer_idle is explictly disabled. Also turn auto prefer off when other group enables prefer_idle explictly. Bug: 236868627 Test: build pass Change-Id: I6e5694dfd9b5ed30bfad31509415027d5bac71cb --- perf/powerhint-caiman.json | 82 +++++++++++++++++++++++++++++++ perf/powerhint-komodo.json | 82 +++++++++++++++++++++++++++++++ perf/powerhint-ripcurrentpro.json | 82 +++++++++++++++++++++++++++++++ perf/powerhint-tokay.json | 82 +++++++++++++++++++++++++++++++ 4 files changed, 328 insertions(+) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index dd64dbc4..12bda970 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -214,6 +214,16 @@ ], "ResetOnInit": true }, + { + "Name": "AutoPreferIdle", + "Path": "/proc/vendor_sched/auto_prefer_idle", + "Values": [ + "0", + "1" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -857,6 +867,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH_GPU", "Node": "GPUDvfsPeriod", @@ -1070,6 +1086,12 @@ "Duration": 2000, "Value": "1" }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "AutoPreferIdle", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL", @@ -1082,6 +1104,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "DISPLAY_CHANGE", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "DISPLAY_CHANGE_GPU", "Node": "GPUDvfsPeriod", @@ -1242,6 +1270,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "DISPLAY_INACTIVE", "Node": "FGPreferIdle", @@ -1332,6 +1366,12 @@ "Duration": 1000, "Value": "1" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "FGCpuset", @@ -1452,6 +1492,12 @@ "Duration": 100, "Value": "1" }, + { + "PowerHint": "CAMERA_ZOOMING_BOOST", + "Node": "AutoPreferIdle", + "Duration": 100, + "Value": "0" + }, { "PowerHint": "CAMERA_ZOOMING_BOOST", "Node": "PMU_POLL", @@ -1758,6 +1804,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CDHighCpusetCpus", @@ -1914,6 +1966,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDHighCpusetCpus", @@ -1962,6 +2020,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -2112,6 +2176,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUDVFSHeadroom", @@ -2226,6 +2296,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "Node": "CDPreferIdle", @@ -2797,6 +2873,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "GAME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "GAME", "Node": "FGPreferIdle", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index bd87fdf3..521c3f33 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -214,6 +214,16 @@ ], "ResetOnInit": true }, + { + "Name": "AutoPreferIdle", + "Path": "/proc/vendor_sched/auto_prefer_idle", + "Values": [ + "0", + "1" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -857,6 +867,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH_GPU", "Node": "GPUDvfsPeriod", @@ -1070,6 +1086,12 @@ "Duration": 2000, "Value": "1" }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "AutoPreferIdle", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL", @@ -1082,6 +1104,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "DISPLAY_CHANGE", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "DISPLAY_CHANGE_GPU", "Node": "GPUDvfsPeriod", @@ -1242,6 +1270,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "DISPLAY_INACTIVE", "Node": "FGPreferIdle", @@ -1332,6 +1366,12 @@ "Duration": 1000, "Value": "1" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "FGCpuset", @@ -1452,6 +1492,12 @@ "Duration": 100, "Value": "1" }, + { + "PowerHint": "CAMERA_ZOOMING_BOOST", + "Node": "AutoPreferIdle", + "Duration": 100, + "Value": "0" + }, { "PowerHint": "CAMERA_ZOOMING_BOOST", "Node": "PMU_POLL", @@ -1758,6 +1804,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CDHighCpusetCpus", @@ -1914,6 +1966,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDHighCpusetCpus", @@ -1962,6 +2020,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -2112,6 +2176,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUDVFSHeadroom", @@ -2226,6 +2296,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "Node": "CDPreferIdle", @@ -2797,6 +2873,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "GAME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "GAME", "Node": "FGPreferIdle", diff --git a/perf/powerhint-ripcurrentpro.json b/perf/powerhint-ripcurrentpro.json index dbe1c7a5..291afb0e 100644 --- a/perf/powerhint-ripcurrentpro.json +++ b/perf/powerhint-ripcurrentpro.json @@ -214,6 +214,16 @@ ], "ResetOnInit": true }, + { + "Name": "AutoPreferIdle", + "Path": "/proc/vendor_sched/auto_prefer_idle", + "Values": [ + "0", + "1" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -846,6 +856,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH_GPU", "Node": "GPUDvfsPeriod", @@ -1059,6 +1075,12 @@ "Duration": 2000, "Value": "1" }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "AutoPreferIdle", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL", @@ -1071,6 +1093,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "DISPLAY_CHANGE", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "DISPLAY_CHANGE_GPU", "Node": "GPUDvfsPeriod", @@ -1231,6 +1259,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "DISPLAY_INACTIVE", "Node": "FGPreferIdle", @@ -1321,6 +1355,12 @@ "Duration": 1000, "Value": "1" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "FGCpuset", @@ -1441,6 +1481,12 @@ "Duration": 100, "Value": "1" }, + { + "PowerHint": "CAMERA_ZOOMING_BOOST", + "Node": "AutoPreferIdle", + "Duration": 100, + "Value": "0" + }, { "PowerHint": "CAMERA_ZOOMING_BOOST", "Node": "PMU_POLL", @@ -1747,6 +1793,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CDHighCpusetCpus", @@ -1903,6 +1955,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDHighCpusetCpus", @@ -1951,6 +2009,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -2101,6 +2165,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUDVFSHeadroom", @@ -2215,6 +2285,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "Node": "CDPreferIdle", @@ -2666,6 +2742,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "GAME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "GAME", "Node": "FGPreferIdle", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index dd64dbc4..12bda970 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -214,6 +214,16 @@ ], "ResetOnInit": true }, + { + "Name": "AutoPreferIdle", + "Path": "/proc/vendor_sched/auto_prefer_idle", + "Values": [ + "0", + "1" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CPUUtilThreshold", "Path": "/proc/vendor_sched/util_threshold", @@ -857,6 +867,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "LAUNCH_GPU", "Node": "GPUDvfsPeriod", @@ -1070,6 +1086,12 @@ "Duration": 2000, "Value": "1" }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "AutoPreferIdle", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "LAUNCH_PMU", "Node": "PMU_POLL", @@ -1082,6 +1104,12 @@ "Duration": 5000, "Value": "0" }, + { + "PowerHint": "DISPLAY_CHANGE", + "Node": "AutoPreferIdle", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "DISPLAY_CHANGE_GPU", "Node": "GPUDvfsPeriod", @@ -1242,6 +1270,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "DISPLAY_INACTIVE", "Node": "FGPreferIdle", @@ -1332,6 +1366,12 @@ "Duration": 1000, "Value": "1" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "AutoPreferIdle", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "FGCpuset", @@ -1452,6 +1492,12 @@ "Duration": 100, "Value": "1" }, + { + "PowerHint": "CAMERA_ZOOMING_BOOST", + "Node": "AutoPreferIdle", + "Duration": 100, + "Value": "0" + }, { "PowerHint": "CAMERA_ZOOMING_BOOST", "Node": "PMU_POLL", @@ -1758,6 +1804,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_EXTREME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "CDHighCpusetCpus", @@ -1914,6 +1966,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDHighCpusetCpus", @@ -1962,6 +2020,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -2112,6 +2176,12 @@ "Duration": 0, "Value": "0x80" }, + { + "PowerHint": "CAMERA_STREAMING_LOW", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUDVFSHeadroom", @@ -2226,6 +2296,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_VIDEO_CALL", "Node": "CDPreferIdle", @@ -2797,6 +2873,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "GAME", + "Node": "AutoPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "GAME", "Node": "FGPreferIdle", From 9f43dc57997061a3272c77e341ce12f5bf27e4e6 Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Mon, 8 Apr 2024 16:48:49 +0800 Subject: [PATCH 4/4] odpm: correct device index of s2mpg15 for ZumaPro Bug: 332504591 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I78ac99e04e71787d68202a676f51e1a3d982fa7d Signed-off-by: Darren Hsu --- conf/init.caiman.rc | 4 ++-- conf/init.komodo.rc | 4 ++-- conf/init.tokay.rc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/init.caiman.rc b/conf/init.caiman.rc index d33ed77c..c7b3fbac 100644 --- a/conf/init.caiman.rc +++ b/conf/init.caiman.rc @@ -62,9 +62,9 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet # ODPM on early-boot && property:ro.boot.hardware.sku=GEC77 - write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" on early-boot && property:ro.boot.hardware.sku=GWVK6 - write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" # Start the twoshay touch service on property:sys.boot_completed=1 diff --git a/conf/init.komodo.rc b/conf/init.komodo.rc index 9a0c987f..c7c9e96f 100644 --- a/conf/init.komodo.rc +++ b/conf/init.komodo.rc @@ -66,9 +66,9 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet # ODPM on early-boot && property:ro.boot.hardware.sku=GZC4K - write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" on early-boot && property:ro.boot.hardware.sku=GQ57S - write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" # Start the twoshay touch service on property:sys.boot_completed=1 diff --git a/conf/init.tokay.rc b/conf/init.tokay.rc index cbab4af2..2dff8862 100644 --- a/conf/init.tokay.rc +++ b/conf/init.tokay.rc @@ -58,9 +58,9 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet # ODPM on early-boot && property:ro.boot.hardware.sku=GUR25 - write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" on early-boot && property:ro.boot.hardware.sku=G1B60 - write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" # Start the twoshay touch service on property:sys.boot_completed=1