Commit graph

618 commits

Author SHA1 Message Date
Anand S
e20781cc82
sm6375-common: sepolicy: Address radio service denials
* E SELinux : avc:  denied  { find } for pid=2577 uid=10160 name=vendor.qti.hardware.radio.qcrilhook.IQtiOemHook/oemhook0 scontext=u:r:vendor_qtelephony:s0:c160,c256,c512,c768 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
* E SELinux : avc:  denied  { find } for pid=2577 uid=10160 name=vendor.qti.hardware.radio.am.IQcRilAudio/slot1 scontext=u:r:vendor_qtelephony:s0:c160,c256,c512,c768 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0

Change-Id: I7f31e90c42e0f5a8f5b85147f34f4c30448e6208
2024-07-25 20:16:00 +05:30
Anand S
b3f68d0b14
sm6375-common: sepolicy: Address input sysfs nodes as sysfs_sensors
Change-Id: I74bcef0780be332a6b0ca8b11e562d0f82a27cae
2024-07-25 20:16:00 +05:30
Anand S
7e713efdbb
sm6375-common: sepolicy: Label dt-gesture nodes for Power HAL
Change-Id: Ie84e6eaf7748e2d5371f3239aff631eeafc1e982
2024-07-25 20:16:00 +05:30
Anand S
41c90591ea
sm6375-common: sepolicy: Allow libperfmgr to write to sysfs_sensors nodes
Change-Id: I22ce808b706adfc8dedc976283129ba4d8ded815
2024-07-25 20:16:00 +05:30
Anand S
5c7c376986
sm6375-common: sepolicy: Add capsense_reset sepolicies
Change-Id: Ie329c52951965b3de54fd701e5011981fabc216b
2024-07-25 20:16:00 +05:30
Anand S
558658882d
sm6375-common: Fix copying path of ueventd.rc
* ueventd: Legacy ueventd configuration file detected and will not be parsed: /vendor/ueventd.rc. Please move your configuration to /vendor/etc/ueventd.rc instead.

Change-Id: I85eaea032bc8e9c494ee604fdc8c199dc1f610ef
2024-07-25 20:16:00 +05:30
Anand S
a315f406b1
sm6375-common: Update from MMI-U1UGS34M.23-82-2-2
* From fogos_g-user 14 U1UGS34M.23-82-2-2 0c9cb9 release-keys.

Change-Id: I4d85b2ea3aa6edf8e55df8155b21dbbce9ed6579
2024-07-23 19:38:04 +05:30
Sugakesshaa
436dc832b4
sm6375-common: Configure sched {up/down}migrate
Change-Id: I7e804b386cb1a632b18720a83fcea17fc45776a8
2024-07-21 20:16:00 +05:30
Adithya R
c440e2d2b3
sm6375-common: Move audio-app cpuset to 1-2
audio driver affines pm-qos requests to these cpus so it makes sense
to use them for audio-app as well

Change-Id: I61223db706042e215b1ab5ca9eb4562989e362f6
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Jake Weinstein
6e4c4fa62b
sm6375-common: Do not allow restricted tasks to run on big cores
The restricted cpuset is for system tasks that are
throttled because the screen is off. Google only
runs these tasks on the little cluster
to save power and we will follow suit.

Change-Id: I0174beb11dae2109df4ddf65304bd50c5cc05264
2024-07-21 20:16:00 +05:30
Jake Weinstein
3351ac9c03
sm6375-common: Move background cpuset to CPU0-1
Change-Id: I927eac32be54dea076d5c5f15f7e57ab4b57fc3b
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Vaisakh Murali
d24e229705
sm6375-common: Import stock cpuset parameters
Change-Id: I6f5ec83f53cc89de51c60e011f6a35c80cf590c9
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Kyle Lin
ef9b2da616
sm6375-common: Fine tune the read_ahead size
fine tune the read_ahead size for runtime

Change-Id: If7929c51222e325a019532ce0d16045a52778165
Signed-off-by: Kyle Lin <kylelin@google.com>
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
Vaisakh Murali
038d9e8853
sm6375-common: Introduce a stub blair-post-boot script
This will be used to tune some parameters in the device. Only run
this script after proprietary kernel post-boot has run, so that
these changes are not overriden by the same.

Change-Id: Ibcef27a2813870c62d54c9d762eae9e03da677ad
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
2024-07-21 20:16:00 +05:30
me-cafebabe
8931f83873
sm6375-common: sepolicy: Allow vendor_init write to proc_sched
Change-Id: I7665a5f03f3ce383e00956b67023626604422093
2024-07-21 20:16:00 +05:30
LuK1337
3491348ec3
sm6375-common: sepolicy: Allow libperfmgr to read and write to sde-crtc-*
Change-Id: I5abde96b2a6bdde7f7b5cd577f878ce93b8dc8b3
2024-07-21 20:16:00 +05:30
Anand S
3092927bb5
sm6375-common: sepolicy: Address some denials for fogos
Change-Id: I3ab1949c10eb3313a3fb701bbddeffb4bf15237c
2024-07-21 20:16:00 +05:30
Anand S
8d0f27975b
sm6375-common: Remove in-tree Livedisplay HAL
Change-Id: I6f6ccfdc816c2bfb7267f13b6e6787014282f446
2024-07-21 20:16:00 +05:30
Anand S
928b8b38b5
sm6375-common: Switch to GNSS HAL from stock
* From U1UG34M.23-82-2

Change-Id: I75ac90f482127ae1119e2c691d11b2b574f1efb4
2024-07-20 20:16:00 +05:30
Anand S
f3dfd70ae6
sm6375-common: Drop custom GNSS hal
Change-Id: I1971cb6a7e9b791684f99294be10d19ce843fa83
2024-07-20 20:16:00 +05:30
Bruno Martins
4ac703b559
sm6375-common: Enable powerhint parsing after boot completion
Change-Id: Ie065f234bfd949264b962bae80e400a446f65b80
2024-07-20 20:16:00 +05:30
Bruno Martins
4ec7aee975
sm6375-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-07-20 20:16:00 +05:30
Anand S
74fce3f5d0
sm6375-common: Drop power init script
* Switch back to old init script for power stuffs.
* Bring back post boot script.

Change-Id: Ifca0be0f7bb767dfeb601083e66e73c88521f880
2024-07-20 20:16:00 +05:30
Anand S
1f580a9b66
sm6375-common: sepolicy: Label fogos touch hal
Change-Id: I02521006113b41d985ce5d84a1acf54596401b97
2024-07-19 20:16:00 +05:30
Anand S
876282f246
sm6375-common: sepolicy: Drop duplicate genfs entries
Change-Id: I26195c1faa12dd2eaf8d7c5b0ec6487d82527f72
2024-07-19 20:16:00 +05:30
EcrosoftXiao
e03aec7112
sm6375-common: Switch to Thermal 2.0 mock
* QTI Thermal couldn't read the temperature for some reason
* sepolicy: Adjust sepolicy for thermal

Change-Id: Idea1bcdea070913ef35b699fafd1242d740453a9
2024-07-19 20:16:00 +05:30
Vachounet
751c572071
sm6375-common: Enable config_supportDoubleTapWake overlay
Change-Id: I2811745eadbb0ee5db550b16d75f8eef0308bfe6
2024-07-18 20:16:00 +05:30
Georg Veichtlbauer
b1ef939300
sm6375-common: powerhint: Add DT2W
Change-Id: I7d0dfe249798864a39afd4f339b692584faaf3ec
2024-07-18 20:16:00 +05:30
Matt Buckley
c0f264b813
sm6375-common: power-libperfmgr: Remove wakeup behavior from PowerHintSession and PowerSessionManager
Currently, all sessions get boosted any time DISPLAY_UPDATE_IMMINENT is
sent from SurfaceFlinger which can lead to large, unnecessary boosts.
This patch aims to change that by removing the wakeup behavior, relying
instead on sessions to boost themselves with new load change hints.

 * Remove wakeup() from PowerHintSession
 * Remove wakeSessions from PowerSessionManager
 * Remove related timers and message handlers
 * Remove DISPLAY_UPDATE_IMMINENT behavior entirely

Test: manual
Bug: b/260136431
Change-Id: I4610edfefe8fcbef7d4cdbf5768830a9392a54f7
2024-07-18 20:16:00 +05:30
Matt Buckley
3f3622d6be
sm6375-common: power-libperfmgr: Add better tracing for sendHint and refactor existing tracing
Reset traced hint value to -1 on reportActualWorkDuration or stale
timeout, and rewrite existing tracing for readability.

Bug: b/243973548
Test: manual
Change-Id: I135ec5f8971a9902d880e4089b0df746f5b917e2
2024-07-18 20:16:00 +05:30
Jimmy Shiu
beb75b2b3d
sm6375-common: power-libperfmgr: ADPF: refine StaleTimeHandler
Bug: 256515601
Test: build
Change-Id: Ia7f80c838961b837733c457b189f16c6433cf3c3
2024-07-18 20:16:00 +05:30
Jimmy Shiu
798d139e00
sm6375-common: power-libperfmgr: ADPF: remove unused EarlyBoostHandler
Bug: 256515601
Test: build
Change-Id: I9b63c6ee3decaa4c70f38bcc66a0e9e1de464ad6
2024-07-18 20:16:00 +05:30
Vivekachooz
fc7b944e04
sm6375-common: powerhint: Enable CPUDDRLat boost
Change-Id: I5ed88740f92064cf5e7cdcdfb19e1b77eb891a35
2024-07-18 20:16:00 +05:30
Vivekachooz
4b69a52f2c
sm6375-common: powerhint: Tune powerhint
Change-Id: I8fe54e156b15b6d3a58d7f83cf33d1cf83ce2418
2024-07-18 20:16:00 +05:30
Jimmy Shiu
5e76a2a191
sm6375-common: power-libperfmgr: ADPF: send ADPF_FIRST_FRAME hint
To send ADPF_FIRST_FRAME hint when reportWorkDurations was called first
time after stale state.

Bug: 243025173
Test: PtsUiBench & CUJ
Change-Id: I4377b1f549646bcf44bdf26b2657b7bc0646f9a4
Merged-In: I4377b1f549646bcf44bdf26b2657b7bc0646f9a4
2024-07-18 20:16:00 +05:30
Jimmy Shiu
f4fd4bcd5c
sm6375-common: power-libperfmgr: ADPF: support sending power hint
Send a hint only when the system can support the hint.

Bug: 243025173
Test: PtsUiBench & CUJ
Change-Id: If56d0c22f8dd61f5fe27ba79f08f2963269abe41
Merged-In: If56d0c22f8dd61f5fe27ba79f08f2963269abe41
2024-07-18 20:16:00 +05:30
Sugakesshaa
c4d4353fdd
sm6375-common: powerhint: Tune scheduler parameters
- kanged from powerhal boosting on CLO

Change-Id: Ic8b5a9d2b6b2a0b7a92c85445e30cd45936b60d2
2024-07-18 20:16:00 +05:30
Adithya R
cc6d0d7bca
sm6375-common: power-libperfmgr: Allow certain hints to be processed always
These don't affect performance, so we don't need to disable them
for battery saver or sustained performance mode.

Change-Id: I483d7fa6d0067f21d46b6811ba324793415218c7
2024-07-18 20:16:00 +05:30
Adithya R
431daebc40
sm6375-common: power-libperfmgr: Properly handle sustained performance mode
* when tested with [1], even after exiting the app, spm was
   still active in powerhal thereby keeping max freqs limited
   and blocking boosts

 * enable/disable it properly and end all other hints before
   enabling, to fix this issue

 * while we're at it, don't handle max freq for anything other
   than spm in powerhint

[1] https://android.googlesource.com/platform/cts/+/refs/heads/master/hostsidetests/sustainedperf

Change-Id: I6e37dfa7ffab0137d70cb5ba5d1b156133416062
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30
Adithya R
52a7d65121
sm6375-common: power-libperfmgr: Disable boosting when battery saver is on
* end all running boosts when battery saver is turned on,
   and block all boosts until its turned off

Change-Id: I6793d694747c27591e69594d9d46da3490673d63
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30
Chiawei Wang
ce80b10348
sm6375-common: configs: use min_pwrlevel to configure GPU freq
Bug: 146334579
Bug: 146336388
Test: run pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHALAPITest
Test: run pts -m PtsPerformanceTestCases -t com.google.android.perf.pts.PowerHintJsonVerifyTest
Change-Id: I18c0210463f29831cc94c629a98718406ebdf21b
2024-07-18 20:16:00 +05:30
Wilson Chan
98d5b5b8d0
sm6375-common: configs: Add Flipendo powerhint
Bug: 153940282
Test: Manually check powerhint succeeds and check perf
Change-Id: Ia3482d3e3b69562aa7c0e5dd326037d1b3806930
2024-07-18 20:16:00 +05:30
Vivekachooz
1f4bd589cc
sm6375-common: configs: Enable FIXED_PERFORMANCE in powerhint
Change-Id: I30d519369162d577e419b1c0982a4ac1783fb3b7
2024-07-18 20:16:00 +05:30
Vivekachooz
4b9e90d4fb
sm6375-common: configs: Tune CPUBWMinFreq to a higher frequency
Change-Id: Iceb807b2175141576381fa9dd9a96c8845db3d3b
2024-07-18 20:16:00 +05:30
Vivekachooz
c89c6beec2
sm6375-common: rootdir: Cleanup power init script
* Let powerhint handle this

Change-Id: If98c748567995b2bbb33bf0d9c1e2192b0c43b7c
2024-07-18 20:16:00 +05:30
Vivekachooz
5ac3c047b3
sm6375-common: configs: Rearrange powerhint
Change-Id: I77e792f4d453ce6c0b929cad7236be38e6ba475e
2024-07-18 20:16:00 +05:30
Subhajeet Muhuri
4562fbcd20
sm6375-common: powerhint: Remove audio hints
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
Change-Id: Ife1cb1e356e62283f3c4d353931458adaf84e975
2024-07-18 20:16:00 +05:30
Vivekachooz
d2cffdfdb0
sm6375-common: rootdir: Tune background cgroup uclamp values
* Values taken from gs201

Change-Id: Ice4cb9b6ee4845e5a965ead26f2775a1522b065c
2024-07-18 20:16:00 +05:30
Jake Weinstein
0c0f036d7a
sm6375-common: Use foreground cpuset/uclamp for gralloc
Makes sure rendering has enough capacity.

Change-Id: I7ad051248353485a8090bec578b2c4325ea06024
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30
Jake Weinstein
9be114c30d
sm6375-common: Use foreground uclamp for hwcomposer
Matches SF, makes sure rendering always
has enough capacity.

Also switches to task_profiles.

Change-Id: I2a2de504be7d3f4f66f31445f44fbbf9376bd927
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2024-07-18 20:16:00 +05:30