From 7ba30cb4031d7eeea571d316c1e2dc563066ce90 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Wed, 29 Mar 2023 00:00:31 +0800 Subject: [PATCH 1/5] Add uevent rule for gcma_camera dmaheap nodes Add uevent rule for newly adding dmaheap node to set correct owners and permissions. Bug: 275481134 Test: Launch camera and taking shots Change-Id: I030e82381ff718523184d8a5601bd2d9a5a0278c Signed-off-by: Martin Liu --- conf/ueventd.zuma.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/ueventd.zuma.rc b/conf/ueventd.zuma.rc index 7483184a..de697bef 100644 --- a/conf/ueventd.zuma.rc +++ b/conf/ueventd.zuma.rc @@ -218,6 +218,8 @@ /dev/dma_heap/sensor_direct_heap 0444 system graphics /dev/dma_heap/aaudio_playback_heap 0444 system audio /dev/dma_heap/aaudio_capture_heap 0444 system audio +/dev/dma_heap/gcma_camera 0444 system system +/dev/dma_heap/gcma_camera-uncached 0444 system system # Direct Charging /dev/logbuffer_pca9468_tcpm 0600 system system From eeaa79174d7b4a1f715bfc6c663d61e389cd0969 Mon Sep 17 00:00:00 2001 From: Poomarin Phloyphisut Date: Wed, 10 May 2023 10:48:04 +0000 Subject: [PATCH 2/5] pixelstats: add waves sysfs for VendorAudioThirdPartyEffectStatsReported Bug: 280248116 Test: Local Test Change-Id: I611703dec29506a30f18f3e693cb8104320dfe9e --- pixelstats/service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pixelstats/service.cpp b/pixelstats/service.cpp index 13ab5c34..333a32fb 100644 --- a/pixelstats/service.cpp +++ b/pixelstats/service.cpp @@ -88,7 +88,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = { "/sys/devices/platform/exynos-drm/secondary-panel/error_count_te", "/sys/devices/platform/exynos-drm/secondary-panel/error_count_unknown", }, - .PDMStatePath = "/sys/devices/platform/audiometrics/pdm_state" + .PDMStatePath = "/sys/devices/platform/audiometrics/pdm_state", + .WavesPath = "/sys/devices/platform/audiometrics/waves" }; const struct UeventListener::UeventPaths ueventPaths = { From b64a13cd3165d07b4631ede9819a5f85974586c7 Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Fri, 26 May 2023 22:30:51 +0000 Subject: [PATCH 3/5] init: Add async for suspend/resume Bug: 258100247 Change-Id: Ifcec9418e2b10db1f2a533fc04110ab548e241a6 Signed-off-by: Ziyi Cui --- conf/init.zuma.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 277026b1..9c2c9e63 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -817,6 +817,13 @@ on property:sys.boot_completed=1 write /sys/devices/system/cpu/cpufreq/policy8/sched_pixel/pmu_limit_enable 1 write /proc/vendor_sched/pmu_poll_enable 0 + # Make devices on the critical path for suspend/resume asynchronous + write /sys/devices/platform/fixedregulator@0/regulator/regulator.2/power/async "enabled" + write /sys/devices/platform/fixedregulator@0/power/async "enabled" + write /sys/devices/platform/26040000.clock-controller/power/async "enabled" + write /sys/devices/platform/10840000.pinctrl/power/async "enabled" + write /sys/devices/platform/13060000.pinctrl/power/async "enabled" + # Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%) write /dev/cpuctl/background/cpu.shares 1024 write /dev/cpuctl/system-background/cpu.shares 1024 From 371e5f7222b7e77d16addcf124761aab68e6cfa5 Mon Sep 17 00:00:00 2001 From: Kelly Rossmoyer Date: Wed, 7 Jun 2023 19:25:38 +0000 Subject: [PATCH 4/5] suspend: enable adaptive suspend This CL adds build properties enabling Adaptive Suspend's short suspend backoff with a short suspend threshold of 2 seconds and a max backoff time of 40s. This is the same configuration that was shipped (and remains active) on gs101-based devices. Experimentation with these settings is being tracked on the bug, and this CL is being prepared now so we can start to soak in dogfood and observe the real-world behavior. Bug: 284766768 Test: booted with a test kernel and used alarmtimer mods to exercise high-frequency wakeup behavior Change-Id: Ia0fd3b08058390ea9e70926455c7c6d460320d8a --- device.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index a2dd7b2a..eede3596 100644 --- a/device.mk +++ b/device.mk @@ -1091,7 +1091,9 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Suspend properties PRODUCT_PROPERTY_OVERRIDES += \ - suspend.short_suspend_threshold_millis=5000 + suspend.short_suspend_threshold_millis=2000 \ + suspend.max_sleep_time_millis=40000 \ + suspend.short_suspend_backoff_enabled=true # Enable Incremental on the device PRODUCT_PROPERTY_OVERRIDES += \ From 9de437f32ece67bb0242538b6489b2951b5c105e Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Wed, 7 Jun 2023 22:46:08 +0000 Subject: [PATCH 5/5] init: retune memlat parameter stall_floor Retune stall_floor Bug: 279558882 Change-Id: I243834e62be80cbf577677c77556156b768529ac Signed-off-by: Ziyi Cui --- conf/init.zuma.rc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 277026b1..b17278e6 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -332,15 +332,15 @@ on init write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/mem_latency/ratio_ceil 3700 write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/mem_latency/ratio_ceil 3700 write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu8_memlat@17000010/mem_latency/ratio_ceil 3400 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu0_memlat@17000010/mem_latency/stall_floor 3400 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu1_memlat@17000010/mem_latency/stall_floor 3400 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu2_memlat@17000010/mem_latency/stall_floor 3400 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu3_memlat@17000010/mem_latency/stall_floor 3400 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu4_memlat@17000010/mem_latency/stall_floor 2600 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu5_memlat@17000010/mem_latency/stall_floor 2600 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/mem_latency/stall_floor 2600 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/mem_latency/stall_floor 2600 - write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu8_memlat@17000010/mem_latency/stall_floor 900 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu0_memlat@17000010/mem_latency/stall_floor 3000 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu1_memlat@17000010/mem_latency/stall_floor 3000 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu2_memlat@17000010/mem_latency/stall_floor 3000 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu3_memlat@17000010/mem_latency/stall_floor 3000 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu4_memlat@17000010/mem_latency/stall_floor 2400 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu5_memlat@17000010/mem_latency/stall_floor 2400 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/mem_latency/stall_floor 2400 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/mem_latency/stall_floor 2400 + write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu8_memlat@17000010/mem_latency/stall_floor 500 # Set boost_adpf_prio, -1 by default write /proc/vendor_sched/boost_adpf_prio ${persist.device_config.vendor_system_native_boot.boost_adpf_prio:--1}