From 7bd8972e25e747d2cd1ba27cb1a41f45f5b5e1c8 Mon Sep 17 00:00:00 2001 From: Ben Fennema Date: Wed, 10 Feb 2016 14:57:50 -0800 Subject: sensorhub: revert back to chinook while tracking down power regression Bug: 27122067 Change-Id: I0dea7657d97864338c4bd2b595560cc9ec8bf29e Signed-off-by: Ben Fennema --- device.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.mk b/device.mk index da3f927..669917c 100644 --- a/device.mk +++ b/device.mk @@ -20,7 +20,7 @@ # Everything in this directory will become public # Enable support for chinook sensorhub -TARGET_USES_CHINOOK_SENSORHUB := false +TARGET_USES_CHINOOK_SENSORHUB := true ifeq ($(TARGET_PREBUILT_KERNEL),) LOCAL_KERNEL := device/lge/bullhead-kernel/Image.gz-dtb -- cgit v1.2.3 From 5eaed1faa1497f921428bf80d2e8146d86c68b3b Mon Sep 17 00:00:00 2001 From: Ben Fennema Date: Tue, 1 Mar 2016 10:28:15 -0800 Subject: sepolicy: fix nanoapp_cmd path after move from vendor to system Bug: 27400314 Change-Id: I3e19b605b00f7a309aba7ddd946d07535d7e0aba Signed-off-by: Ben Fennema --- sepolicy/file_contexts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index f0fb22d..d7359ac 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -103,9 +103,9 @@ /system/bin/msm_irqbalance u:object_r:msm_irqbalanced_exec:s0 /system/bin/ATFWD-daemon u:object_r:atfwd_exec:s0 /system/bin/subsystem_ramdump u:object_r:ssr_exec:s0 +/system/bin/nanoapp_cmd u:object_r:nanoapp_cmd_exec:s0 /vendor/bin/mm-qcamera-daemon u:object_r:camera_exec:s0 /vendor/bin/sensortool\.bullhead u:object_r:sensortool_exec:s0 -/vendor/bin/nanoapp_cmd u:object_r:nanoapp_cmd_exec:s0 /vendor/bin/qti u:object_r:qti_exec:s0 /system/bin/imsdatadaemon u:object_r:ims_exec:s0 -- cgit v1.2.3 From eebecd6ac964ebb05ae2875e5a93d2d5a8844c81 Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Fri, 1 Apr 2016 13:20:28 -0700 Subject: reduce readahead for ext4 filesystems bug 27381069 Change-Id: I8f2be28687c8de953d2942dc9ee5d4ef78ce0355 --- fstab.bullhead | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fstab.bullhead b/fstab.bullhead index 624fe94..8fb67f8 100644 --- a/fstab.bullhead +++ b/fstab.bullhead @@ -3,9 +3,9 @@ # The filesystem that contains the filesystem checker binary (typically /system) cannot # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK -/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata -/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata -/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,forcefdeorfbe=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata +/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata +/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata +/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic,inode_readahead_blks=8 wait,check,forcefdeorfbe=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata /dev/block/platform/soc.0/f9824900.sdhci/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check /dev/block/platform/soc.0/f9824900.sdhci/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait,notrim /dev/block/platform/soc.0/f9824900.sdhci/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait -- cgit v1.2.3 From 1c92d1cf08743bc293d859a4a01fe3c8fd3958f9 Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Fri, 1 Apr 2016 13:20:40 -0700 Subject: move to noop io scheduler and rq_affinity = 0 bug 27381069 Change-Id: Iace0d1cf7dad2676b710aa4dfbe558abeb7b4096 --- init.bullhead.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.bullhead.rc b/init.bullhead.rc index 8d129af..45a8861 100644 --- a/init.bullhead.rc +++ b/init.bullhead.rc @@ -174,6 +174,9 @@ on boot chown system system /sys/class/leds/blue/on_off_ms chown system system /sys/class/leds/red/rgb_start + write /sys/block/mmcblk0/queue/rq_affinity 0 + write /sys/block/mmcblk0/queue/scheduler noop + on post-fs symlink /dev/block/platform/soc.0/f9824900.sdhci /dev/block/bootdevice -- cgit v1.2.3 From 4aa673c5063a8414ce55e652b0e1e9e928262caf Mon Sep 17 00:00:00 2001 From: Umar Syed Date: Wed, 25 May 2016 17:19:19 -0400 Subject: Test of new power profile values. Change-Id: I9466b51339e0b32a8f0b2c5de92862971c2438f3 --- .../base/core/res/res/xml/power_profile.xml | 67 +++++++++++----------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml index 00afbe6..1c44e72 100644 --- a/overlay/frameworks/base/core/res/res/xml/power_profile.xml +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -19,23 +19,26 @@ 0 - 91.82 - 225.33 + 159.667124493062 + 203.327990537703 84.4 0.43 0.56 172.99 - 2.13 + 25.7523644684504 100.88 187.86 - 59.74 - 185.19 + 21.3112768663199 + 91.859655777944 - 99.2 + 4.56959643376497 - 4.8 - 1.11 + 14.718992198734 + 7.11953513364874 + 9.67242765594385 + 10.9664724655329 + 5.9382806608961 @@ -66,34 +69,34 @@ 1824000 - 3.88 - 5.47 + 3.46965169575592 + 1.34521161231221 - 51.90 - 54.90 - 59.14 - 63.67 - 68.16 - 76.93 - 88.38 - 117.27 - 139.27 + 102.762 + 108.702 + 117.097 + 126.066 + 134.956 + 152.321 + 174.992 + 232.194 + 275.754 - 155.75 - 156.39 - 156.74 - 185.25 - 205.90 - 226.88 - 302.01 - 332.72 - 365.55 - 404.83 - 449.36 - 475.74 - 542.63 + 308.385 + 309.652 + 310.345 + 366.795 + 407.682 + 449.222 + 597.979 + 658.785 + 723.789 + 801.563 + 889.732 + 941.965 + 1074.40 4 -- cgit v1.2.3 From 0b90e761e8f51253562dec3b916ede64f66b6925 Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 26 May 2016 15:02:00 -0700 Subject: Tune target_load on bullhead Bug: 28985567 Change-Id: Ia5a1f6bf555b89c0549aaad983f28a882ac0ed7d --- init.bullhead.power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.bullhead.power.sh b/init.bullhead.power.sh index eee8b79..a065dcb 100755 --- a/init.bullhead.power.sh +++ b/init.bullhead.power.sh @@ -64,7 +64,7 @@ write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 99 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 19000 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 960000 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 1 -write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "65 460800:75 960000:80" +write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "60 600000:75 960000:80" write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 40000 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis 80000 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000 -- cgit v1.2.3 From 8510e4d6bfbd2f1ed426243bf50666e7bc121946 Mon Sep 17 00:00:00 2001 From: Thomas Joseph Avila Date: Fri, 10 Jun 2016 20:23:59 +0000 Subject: Revert "Tune target_load on bullhead" This reverts commit 0b90e761e8f51253562dec3b916ede64f66b6925. Change-Id: I4aff2374eb0bf8489ecbcd429ca9af1a5532cd88 --- init.bullhead.power.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.bullhead.power.sh b/init.bullhead.power.sh index a065dcb..eee8b79 100755 --- a/init.bullhead.power.sh +++ b/init.bullhead.power.sh @@ -64,7 +64,7 @@ write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 99 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 19000 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 960000 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 1 -write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "60 600000:75 960000:80" +write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "65 460800:75 960000:80" write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 40000 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis 80000 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000 -- cgit v1.2.3