Commit Graph

2540 Commits

Author SHA1 Message Date
Omkar Chandorkar 09f41e99fe vendor: audio: build libhfp_pal
- Show some love to audio-ar platforms
- We were building libhfp for older platforms already

Change-Id: Ic0e677b143f73f3aaed371892fe225a7bba52ee1
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-11-21 01:47:18 +00:00
BladeRunner-A2C 0ef9532042
Revert "common: Enable MSM_VIDC_TARGET_LIST to bengal 4.19"
- breaks build

ld.lld: error: undefined symbol: getConfigStoreBool
>>> referenced by qc_omx_core.c:478 (hardware/qcom/media/mm-core/src/common/qc_omx_core.c:478)
>>>               out/target/product/miatoll/obj_arm/SHARED_LIBRARIES/libmm-omxcore_intermediates/src/common/qc_omx_core.o:(OMX_GetHandle)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

This reverts commit bcede0edd0.

Change-Id: Ia89da00c7d0d112f61df5bacc82bbcce1f688c0a
2023-11-20 23:47:39 +06:00
Sebastiano Barezzi b3083d639e vendor: charging: Keep building health HIDL interface lib in vendor
* GNSS HAL needs it

Change-Id: Id2e1b2844d195d41fc67a0224e0dc39573f7702e
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-19 23:53:48 +00:00
chrisl7 bcede0edd0 common: Enable MSM_VIDC_TARGET_LIST to bengal 4.19
[1] - This is present in media hal, the same for kona and lito.

Change-Id: I45024dab5cea5686e46dda65ee1dd7af340cc5b7
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:55:06 +00:00
Alex Naidis d9851759c4 vendor: perf: sm6150: Lower background apps to 38
Improves memory performance and decreases power consumption
in our test cases.

Change-Id: If26a7a4ac0283cf09ab02c769885f50eae6f7719
2023-11-18 22:55:06 +00:00
Vishalcj17 f80bd91a0a vendor: perf: sm6150: Boost GPU on specific events
Change-Id: Iab2d8250ba4582a8cbe8fc1be6a4b4ce99ab7ace
2023-11-18 22:55:06 +00:00
Adithya R af7c101e63 vendor: perf: sm6150: Further fine-tune boosts configuration
Using 1612mhz little cluster boost freq will help overcome
minor lags and is also more efficient than 1497mhz.

Also use a more efficient big cluster freq for animation boost.

Change-Id: I5eb763a8d545cf1ac23b9a9515591f1555162a74
2023-11-18 22:55:06 +00:00
Adithya R b9a2e8b8ff vendor: perf: sm6150: Tune boosts config for performance
Change-Id: I705d32e6f4fd6a328898fa197f2237f80f893f5b
2023-11-18 22:55:06 +00:00
Jake Weinstein 55afd38265 vendor: perf: sm6150: Do not balance msm_drm and kgsl-3d0 IRQs
These are critical for display performance and should not be balanced
in order to improve latency and responsiveness.

Change-Id: I527a262d01bf91a372c156d580af38b467820163
2023-11-18 22:55:06 +00:00
chrisl7 343644d0c7 vendor: perf: bengal: Add app resume boost
[1] - From SPESGlobal_V14.0.3.0.TGCMIXM

Change-Id: I618b58eccc1b86d37a8b52fc59bfd1b3934bb33d
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:54:16 +00:00
Alex Naidis 16001ddce2 vendor: perf: bengal: Lower background apps to 38
Improves memory performance and decreases power consumption
in our test cases.

Change-Id: Id0ae7a2c03c4e209a020f8bf239da0adf9b3d0a8
2023-11-18 22:54:11 +00:00
Vishalcj17 b5c34c2479 vendor: perf: bengal: Boost GPU on specific events
* Properly tackle blur event lags with GPU boosting.

Change-Id: If1cf87d64b24a8a99353fec697656ff56d149c45
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:50:31 +00:00
chrisl7 d69b791aff vendor: perf: bengal: Tune khaje boosts values
Change-Id: I84d2a85617753dd68fcfa0e039c73c2441013b41
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:50:31 +00:00
Jake Weinstein 74e8014dd7 vendor: perf: bengal/bengal_515: Do not balance msm_drm and kgsl-3d0 IRQs
These are critical for display performance and should not be balanced
in order to improve latency and responsiveness.

Change-Id: I0248e26a7154c689c0d3f11dabe14a1b149353f9
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:50:31 +00:00
chrisl7 5cf257e473 vendor: perf: bengal: Partial update 4.19 configs to 5.15
[1] - Adapt nodes to 4.19

Change-Id: I9ff154f53550bfba62c57017e011e17b814512d1
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:50:31 +00:00
chrisl7 26420ebafe vendor: perf: Add condition to bengal 4.19 e 5.15 perf configs
Change-Id: Ic6f670a5a0c4c3dbc09eabd11b7e7cfd55224755
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:50:31 +00:00
chrisl7 b64504154d vendor: perf: Enabel perf framepacing to all
Change-Id: I2441505ffb2ade0a77dc0dc8bf1a650396c2a1e1
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-18 22:50:31 +00:00
Jprimero15 7fc3dfd3fa common: sepolicy: legacy: Added rule for perf aidl service
As moving perf-hal to AIDL from HIDL, added supported
rules.

Change-Id: I24ffa9728f6b88e9df5e7da259478a6962f6cd02
2023-11-18 14:48:55 +00:00
redducc 40e2c251dd sepolicy: parrot: Drop duplicate poweroptservice sepolicy
[1] - https://gerrit.aospa.co/c/AOSPA/android_device_qcom_common/+/36469

Change-Id: Ide17edcdff2c0a97b1d520193584c01ba2e9af0f
2023-11-16 19:40:44 +00:00
chrisl7 9817d1f368 sepolicy: Label DCVS nodes to all
[1] - Need after switch to AIDL Perf (SM8650)
[2] - Fix high spam
[3] - https://gerrit.aospa.co/c/AOSPA/android_device_qcom_sepolicy_vndr/+/36718

Change-Id: Ic803e1a34e6e80936c228fa2be264d9b8ad81bf9
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-15 14:01:13 +00:00
chrisl7 ba821f587e sepolicy: Allow system_app to acess zram
[1] - https://gerrit.aospa.co/c/AOSPA/android_device_xiaomi_sepolicy/+/36562

Change-Id: I3cb26c83ef1de0055bbcf3278b5614cd6095fd11
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-15 11:28:31 +00:00
BladeRunner-A2C 893f75d464 fixup! vendor: perf: Update to Shennong (SM8650)
We merged the test directory into the main directory in
an earlier commit to simplify the Makefile, but forgot to
remove it completely from the Makefile.

Change-Id: Ib1d9713025a2924a4b7f06d40694fb367c0ff95a
Signed-off-by: BladeRunner-A2C <john.smith@unused.email>
2023-11-14 14:16:14 +00:00
LuK1337 3cc9593303
overlay: Set max network scan search time to 254
- Behaviour was changed in A14 after https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2163424
- Stay inline with previous behaviour

Change-Id: If2b224298ffe731f8ccfd0b4f3b6d8a257b6f968
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-11-13 06:41:20 +00:00
Michael Bestas 289ff0620d sepolicy: bengal: Label emmc discard_max_bytes sysfs
Change-Id: I358bf7ccf29dadcac53e646d51c7c9a476f5d023
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 23:23:14 +00:00
chrisl7 48d1769230 Revert "sepolicy: bengal: Add pwr and powermodule sepolicy rules"
This reverts commit 8f99859250.

[1] - https://gerrit.aospa.co/c/AOSPA/android_device_qcom_common/+/36469

Change-Id: If9261e7a4ba332b1cc93365fc719ffd14617a8a5
2023-11-12 23:22:57 +00:00
Jake Weinstein 0ddcdaaaea vendor: perf: Disable unsupported nodes on 5.4 and lower
Change-Id: Iad39136aab0904b3cecdabad8b9755e38c680f6a
2023-11-13 07:49:44 +09:00
Jake Weinstein 0023e894c5 vendor: perf: Update to Shennong (SM8650)
missi_phone_cn_only64-user-14-UKQ1.230804.001-V816.0.9.0.UNBCNXM-release-keys

Change-Id: I9b383fa96444951eaff7d75336d4ba036221eea0
2023-11-13 07:48:08 +09:00
chrisl7 b293b65f10 common: sepolicy: Enable poweroptservice and powermodule sepolicy for all platforms
[1] - Based on kalama rules

Change-Id: I758bab4e62fda1f22b12e5040ac9618c229dd5c4
Co-Authored-By: Jake Weinstein <jake@aospa.co>
Co-Authored-By: Tobias Merkel <stylogey@gmail.com>
2023-11-13 07:48:08 +09:00
Jake Weinstein 328ccc1f06 vendor: perf: Disable PASR
This saves less than 1 mA of power.
Not worth the performance penalty.

Change-Id: I1c3e0857930b01abe6ebb227cd15d231c9f78b8f
2023-11-13 07:48:08 +09:00
Jake Weinstein d1329c5aac vendor: perf: Update configs to LA.VENDOR.13.2.1.r1-06400-DIVAR.0
Change-Id: Ic1eb213e5db53bc792c79d24f25d7db5adc2ec44
2023-11-13 07:48:08 +09:00
Jake Weinstein f5014125ed vendor: perf: Include msm_irqbalance.conf for Kalama
Change-Id: I480966e8f41092f0c8dd6a7e6c07c6cb8901d375
2023-11-13 07:48:08 +09:00
Jake Weinstein be583adf6e vendor: perf: Update to LA.VENDOR.13.2.6.r1-00600-KAILUA.0
Move videooptfeature to perf because it is part
  of LM.

Change-Id: I67f40b31f6eb0ad121b31b685b011b02e982cfce
2023-11-13 07:48:08 +09:00
Jake Weinstein a1a2465d79 vendor: perf: Remove SilkyScrollsFeature from Lahaina
This is not configured. Based on Qualcomm supporting Bengal_515
though, we should be able to support Lahaina and other SoCs.

Change-Id: I9ee058181e79b9be3e8ea0724d35b9fe2c561bb6
2023-11-13 07:48:08 +09:00
Jake Weinstein 43ffa48bfa vendor: perf: Update bengal learning module configurations to LA.VENDOR.13.2.1
Change-Id: Iea26598898ccd8dd9403fea9f5690be764aa8bec
2023-11-13 07:48:08 +09:00
Jake Weinstein 6a45131822 vendor: perf: Copy kalama learning module configs from LA.VENDOR.13.2.6.r1-00600-KAILUA.0
Change-Id: I11d5dfb9405ceff5ea73b0db9c6d050fd091e91a
2023-11-13 07:48:08 +09:00
Jake Weinstein bd21d0a16e vendor: Remove perf-legacy
All chips can use perf now.

Change-Id: Id7e1c910e064aa850bab112d016d2f30f56c41eb
2023-11-13 07:48:08 +09:00
Jake Weinstein d288aabe57 vendor: perf: Update taro configs to Pong
Change-Id: I13836677d1ace954a7af59af18bdfad4b71e1a9d
2023-11-13 07:48:08 +09:00
Jake Weinstein 69ca8e4b2f vendor: perf: Restore config changes from perf-legacy for holi/lahaina/6150
Change-Id: Ieb382929d592c57a5c35f88640c6c63ee79051fb
2023-11-13 07:48:08 +09:00
Jake Weinstein 4e86eec44f vendor: power: Use power feature configs from the SoC
Change-Id: I49515e7c2b451a4d9d78588d9f4664bb6963b50a
2023-11-13 07:48:08 +09:00
Pulkit077 e4163edba7 sepolicy: msmsteppe: label UFS sysfs node
Change-Id: I6056bb7c2697e9c1163803494b4d97cb82f38810
Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 00:09:37 +00:00
Pulkit077 28abd41e85 sepolicy: Fix wakeup labels for (msmnile|msmsteppe|atoll)
Change-Id: I9be4435303fb4295e48befbacfd84ee86e538662
Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 00:09:08 +00:00
Alexander Winkowski ce93fa1f57 sepolicy: Allow qti_init_shell to set watermark boost factor
Change-Id: Iffaf1f7846fdcf758adc1b173c52ac8a34754ee9
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 00:08:45 +00:00
Alexander Winkowski ed63575a3e sepolicy: Allow to run e2fsck over dsp partition
Change-Id: I08293267816226e2f1a97df787b6f61399c224bd
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 00:08:26 +00:00
Jaegeuk Kim 4a4e38553f sepolicy: Allow sysfs_devices_block to f2fs-tools
The fsck.f2fs checks the sysfs entries of block devices to get disk
information. Note that, the block device entries are device-specific.

1. fsck.f2fs
avc: denied { search } for comm="fsck.f2fs" name="0:0:0:0" dev="sysfs" ino=59803 scontext=u:r:fsck:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=dir permissive=0
avc: denied { getattr } for comm="fsck.f2fs" path="/sys/devices/platform/14700000.ufs/host0/target0:0:0/0:0:0:0/block/sda/sda7/partition" dev="sysfs" ino=60672 scontext=u:r:fsck:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=file permissive=0

2. mkfs.f2fs
avc: denied { search } for comm="make_f2fs" name="0:0:0:0" dev="sysfs" ino=59803 scontext=u:r:e2fs:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=dir permissive=0
avc: denied { getattr } for comm="make_f2fs" path="/sys/devices/platform/14700000.ufs/host0/target0:0:0/0:0:0:0/block/sda/sda8/partition" dev="sysfs" ino=61046 scontext=u:r:e2fs:s0 tcontext=u:object_r:sysfs_scsi_devices_0000:s0 tclass=file permissive=0

Bug: 172377740
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I409feec84565f965baa96b06a5b08bcfc1a8db02
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 00:08:13 +00:00
chrisl7 16ab1d68d2 sepolicy: legacy: isolated_app >>> isolated_app_all
[1] - Follow changes from LA_AU.VENDOR14 vndr

Change-Id: I0fce4f8813566ed11ff701b996ff27e75f199223
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-12 00:08:00 +00:00
chrisl7 b50135fb76 vendor: perf: Enable beluga for 4.19 and 5.4
Change-Id: Id83b0b5840f66c56293166968fae42750bed9cf1
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-08 17:17:44 +00:00
chrisl7 ec7b6897f9 sepolicy: Allow hal_wifi_default to search tombstone
[1] - 10-27 12:11:03.412 W/binder:936_1(936): type=1400 audit(0.0:4440): avc:  denied  { search } for  name="tombstones" dev="dm-36" ino=25 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_tombstone_data_file:s0 tclass=dir permissive=0

Change-Id: I71aeea252b9b4cd49edaa0585cb9d5c7cb5cb817
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-11-06 20:02:36 +00:00
Jake Weinstein 50b7fb9acb sepolicy: vendor: Correct path for SurfaceFlinger policy
Also use macros

Change-Id: I0c51de953a2e88e1a96603a033d697b3bdf190bf
2023-11-02 13:22:14 -05:00
Jake Weinstein bf63778267 system: overlay: Decrease priority of Qualcomm overlays
In the past, we had Qualcomm at a higher priority
than AOSPA, which made sense in theory in
case we needed to have vendor-specific overlays,
but in some cases, we want to override Qualcomm,
such as their color mode list.

Change-Id: Ibca3381f8ec8d8ee754f4b2da2ca5a5eef9644f3
2023-11-03 18:14:37 +00:00
Jake Weinstein 19cefae88a vendor: adreno-t: Update Vulkan and OpenGLES permissions
- 5.15 series supports Vulkan Level 3 and dEQP 2022-03-01

Change-Id: I2acd55c8cae5a6858a72fa34ab93feadd529f2f6
2023-10-31 12:00:57 -05:00