From e00a9b20998b1989022712c22ec301055d02791e Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Mon, 14 Mar 2022 22:45:20 +0800 Subject: [PATCH 1/3] Disable memcg Pixel kernel don't use MEMCG, let's disable it to minimize the overhead. Bug: 224521042 Test: check cmdline Signed-off-by: Martin Liu Change-Id: I60681fb04e4f9a41814eda5988b6c1a0d4fb127c --- BoardConfig-common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index fdf9ef83..afbe85c5 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -35,6 +35,7 @@ TARGET_CPU_VARIANT_RUNTIME := cortex-a53 BOARD_KERNEL_CMDLINE += dyndbg=\"func alloc_contig_dump_pages +p\" BOARD_KERNEL_CMDLINE += earlycon=exynos4210,0x10A00000 console=ttySAC0,115200 androidboot.console=ttySAC0 printk.devkmsg=on BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y +BOARD_KERNEL_CMDLINE += cgroup_disable=memory BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs TARGET_NO_BOOTLOADER := true From f9c2f0328774da237b2ba63d645110cdaa591102 Mon Sep 17 00:00:00 2001 From: Denny cy Lee Date: Tue, 8 Mar 2022 17:16:04 +0800 Subject: [PATCH 2/3] Pixelstats: porting from p21 Bug: 222019890 Bug: 222657999 Test: check debug logcat in pixelstat, HardwareInfo Change-Id: I110a2b2713b6c27e23418569bb8d1b726af07b95 --- conf/init.gs201.rc | 2 ++ pixelstats/service.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 88ddb73c..5896a968 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -214,6 +214,8 @@ on init chown system system /sys/devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom chown system system /sys/devices/platform/10970000.hsi2c/i2c-4/4-0050/eeprom chown system system /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom + chown system system /dev/battery_history + chmod 0644 /dev/battery_history # Modem temperature driver chown radio system /sys/devices/platform/cp-tm1/cp_temp diff --git a/pixelstats/service.cpp b/pixelstats/service.cpp index 6a4a3a8e..23ae5f76 100644 --- a/pixelstats/service.cpp +++ b/pixelstats/service.cpp @@ -35,12 +35,14 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = { .SlowioWriteCntPath = UFSHC_PATH(slowio_write_cnt), .SlowioUnmapCntPath = UFSHC_PATH(slowio_unmap_cnt), .SlowioSyncCntPath = UFSHC_PATH(slowio_sync_cnt), + .CycleCountBinsPath = "/sys/class/power_supply/battery/cycle_counts", .UFSLifetimeA = UFSHC_PATH(health_descriptor/life_time_estimation_a), .UFSLifetimeB = UFSHC_PATH(health_descriptor/life_time_estimation_b), .UFSLifetimeC = UFSHC_PATH(health_descriptor/life_time_estimation_c), .F2fsStatsPath = "/sys/fs/f2fs/", .ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance", .CodecPath = "/sys/devices/platform/audiometrics/codec_state", + .EEPROMPath = "/dev/battery_history", .SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp", .SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion", .SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat", @@ -57,7 +59,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = { const struct UeventListener::UeventPaths ueventPaths = { .AudioUevent = "/devices/virtual/amcs/amcs", -}; + .WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id", + .TypeCPartnerUevent = "PRODUCT_TYPE="}; int main() { LOG(INFO) << "starting PixelStats"; From 46d2ff83a6544bd2f65cb651e47c1a87fc95229c Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 2 Mar 2022 11:58:54 -0800 Subject: [PATCH 3/3] Remove android.hardware.renderscript to fix vts Bug: 221171447 Bug: 213121817 Signed-off-by: Jaegeuk Kim Change-Id: Ia9426fc34fea6494a810515dc102bd610cc6447d --- manifest-gralloc3.xml | 9 --------- manifest.xml | 9 --------- 2 files changed, 18 deletions(-) diff --git a/manifest-gralloc3.xml b/manifest-gralloc3.xml index 5ea7c7ea..dc1f72b6 100644 --- a/manifest-gralloc3.xml +++ b/manifest-gralloc3.xml @@ -62,15 +62,6 @@ default - - android.hardware.renderscript - passthrough - 1.0 - - IDevice - default - - android.hardware.drm hwbinder diff --git a/manifest.xml b/manifest.xml index 716d5bf1..72da40d4 100644 --- a/manifest.xml +++ b/manifest.xml @@ -53,15 +53,6 @@ default - - android.hardware.renderscript - passthrough - 1.0 - - IDevice - default - - android.hardware.dumpstate hwbinder