Commit Graph

1607 Commits

Author SHA1 Message Date
Jake Weinstein 6a55752b89 common: do not compile with JACK and JILL
* has security errors often and just errors more often than javac

Change-Id: I75b3fd41a7562b23c8091f3f3cf178acc1310895
2016-02-21 23:41:25 -05:00
Jake Weinstein c8bfc7211c common: import CyanogenMod dtbtool
* This allows for maximum compatibility with all SoCs and devices.

Change-Id: I4a2d25c214d337e99217f7ec3767de8027570f97
2016-01-30 22:10:54 -05:00
Dilip Gudlur 0adb50d776 power: Encode optimization
Change adds bus dcvs hysteresis tuning, sample_ms
tuning and disable ignore_hispeed_notif.

Change-Id: Ifd424f11dbba9d7f3dce70bed8f5867a0d4b2e94
2016-01-30 22:10:40 -05:00
Jake Weinstein c89b5f2310 power: apply angler/bullhead changes for 8994 and 8992
power-hal: Fix make file to use correct power hal library

Fix make file to use correct power hal library

Change-Id: Iffc6d61d48cba02860f92073ca31c945d970f3be

power: Update hint action for camera hint

Update the hint action of the camera hint to
switch the little/big configuration to 4+0
with the little cores running at 1.2GHz Fmax.

Change-Id: I7398412821b1420321d13e830a46e87241dccce4

Delay video encode power hint for 2s.

Improves camera startup significantly.

bug 24180717

Change-Id: I700684816e28805904e787cc3e0278ee5d5b60a6

Fix power hint.

There was a race where the power hint could be left enabled accidentally
if the camera was quit too quickly.

bug 24314633

Change-Id: I6e78534ab29c58f8d87ae55eedc9ff8fb0a8f7c8

Modify screen-off behavior.

Set sched_upmigrate to 99 and sched_downmigrate to 95 when the screen is
off. This will make it harder to use the big cores when the screen is
off (saving power), but will still allow them to be used in case there
is actually a heavyweight task running.

bug 24130678

Change-Id: I8a8638f62e18cc8fac819d95c17e97ed4ff7e193

power: modify touch boost to impact sched migration

Change-Id: I0ae372bf66b89393157f26adbcd81e394c8479ff

power: support duration hint to improve fling behavior

Change-Id: I3352ab9d55d0f978bdb09f5fe930fcde466e1e8a

power: extend little core freq boost during fling

Change-Id: I5c824ca6bc6a5a1fe51523ae9d1ece17546932bb

power: Change touch boost behavior: extent and handles.

This patch does three things:

1. Changes the upmigrate/downmigrate values based on the last boost.
Any touch within 750ms will result in higher upmigrate/downmigrate
values. This is used to approximate detection of constant
input (typing).

2. Moves to multiple handles for handling touch boost rather than
reusing the same handle for each successive component of the boost.

3. Rate limits the boost such that we don't boost more than every 250ms.

Change-Id: Iebc65c46d934ec518975a7452663ec872d0dee18

power: fix rate limiting for flings.

We were incorrectly limiting sched_upmigrate on a fling. Instead, allow
a fling to use the lowest sched_upmigrate.

Change-Id: I047a3f69748fb56f98caac902ed25d45e6289f01

power: Enable touch boost during camera on 8994

Previously, the video encode hint would hotplug the big cores off while
the camera was running in order to improve thermals and power
consumption. Instead, have the camera run the big cores at 384MHz so we
can still apply POWER_HINT_INTERACTION.

Change-Id: I5ee2559132a52ddba0ecba07bfb7238cc0d5770e
2016-01-30 22:10:40 -05:00
Jake Weinstein 7a05eb714d power: apply correct rw-r-r perms for 8909 override
Change-Id: Id76f2c7c128483dc24fa85d0f756d8567d6243e0
2016-01-30 22:10:40 -05:00
Stephen Bird bcddf93c8f Fix power compile
Change-Id: Icf34cb2441711c917b9bc5e3848cb4b15be57737
2016-01-30 22:10:40 -05:00
Keith Mok 2939d74d5d Refactor TARGET_TAP_TO_WAKE_NODE
Add TARGET_POWER_SET_FEATURE_LIB, since other devices
are not simply writing a 0/1 to a device node.
TARGET_TAP_TO_WAKE_NODE still valid and both
TARGET_TAP_TO_WAKE_NODE and TARGET_POWER_SET_FEATURE_LIB are
allowed to be coexist. (Currently set_feature only got double tap wake,
but may be extended in future)

Change-Id: I5c6204fd38a6fbe48e8aac49843bfa047c4b6436
2016-01-30 22:10:40 -05:00
Jake Weinstein 51781af551 common: add list of QC platforms to helper script
Change-Id: Ic76c65ad8bf5b6808c1d0d926afedde6183f39a9
2016-01-30 22:10:40 -05:00
Jake Weinstein 6fb153aabc init: remove display density code
* Let devices define this

Change-Id: Ieeaf4ec6ab0f4da08ca6f9428c72de57997a17d0
2016-01-30 22:10:40 -05:00
Dilip Gudlur 6670684586 power: Modify camera encode/preview hint
Change modifies Bus DCVS v2 params and CPU Hispeed
Frequency param for encode and preview.

Change-Id: I20dc1b974feb93c59c63c9256eae1c61bfe41fff
2016-01-30 22:10:40 -05:00
Dilip Gudlur 73413090c4 power: Enable camera preview hint in powerhal
These changes add the powerhal support to detect
camera preview hint and perform power optimization
in cpu, scheduler.

Change-Id: Ibd7bd1c341a86004dc736aba6a634d6206da8564
2016-01-30 22:10:39 -05:00
Charles Bin 7df9867974 power: Add and update resources for encode powerHAL
Change adds an enum for bus DCVS V1 configuration for
camera encode power optimization.

Change updates existing resource opcodes to use refactored
perflock API.

Change-Id: Ib773d3789d9d3ab87de366bc8776c7501429bf6c
2016-01-30 22:10:39 -05:00
Dilip Gudlur 55b20eb173 power: Introduce 8996 specific handling
Enable powerhal hints for specific use case
handling like encode to help power.

Change-Id: I466f3276777407ad28d7f0cffc306bbaec86a99f
2016-01-30 22:10:39 -05:00
Steve Kondik c952475a9d power: Add support for tap-to-wake feature control
Change-Id: I545902b29f4828c127bc32def6e30b67ce4a3aa7
2016-01-30 22:10:39 -05:00
Jake Weinstein 66f00d232b common: enable interaction boost by default
Change-Id: I1f5570ee9be9551628a01da94256b6ddb8be6a99
2016-01-30 22:10:39 -05:00
Anshuman Dani a31e0e46c8 init_msm8960: Overwrite ro.opengles.version for 8960
Overwrite the ro.opengles.version property with 0x2000.
This change is specific to 8960 Classic, which can only
support upto Open GLES vesion 2.0

This change fixes the CTS test failure
android.opengl.cts.OpenGlEsVersionTest

CRs-Fixed: 575502

Change-Id: I7e90ddde44fef596d1446e6f1acfe7070ef9337b
2016-01-30 22:10:39 -05:00
dhacker29 1a5d47b426 common: init: Add hook for target specific libinit defines
* Set TARGET_LIBINIT_DEFINES_FILE := path to your file in BoardConfig

Change-Id: I2cc84a0c82875b2cf57c2b94a544a30c9ada546b
2016-01-30 22:10:39 -05:00
Jake Weinstein bdf1abf3af common: build vendor init static library as C++
* This is necessary in order to match f3cf438714

* Based on the following commit to CyanogenMod eda5f3cca0

Change-Id: Ib3f2e4c533129aba8fba9eda8509762c7fc5d7c7
2016-01-30 22:10:39 -05:00
Jake Weinstein 9209b72a30 common: include common Qualcomm boot jars
Change-Id: I53840f5984bbbb48d02ebb82c8fb79229f2d021c
2016-01-30 22:10:39 -05:00
Jake Weinstein 13a230671c common: imply certain variables for Qualcomm targets using a common BoardConfig
Change-Id: I6bbaf55c0c89d90dc55e77128d5f43e2ef88d62b
2016-01-30 22:10:39 -05:00
Jake Weinstein 8e5b8684ae build: import kernel building script and clean generate extra images
* Based on AndroidKernel.mk from CAF kernel source.

Change-Id: I104dd9931daf23bb063a0b769dcadc7b7d654fd3
2016-01-30 22:10:39 -05:00
Jake Weinstein 7401873d75 dtbtool: allow devices to use a custom dtbtool
* Many devices require custom dtbtools to generate working
  kernels.

Change-Id: Ib0879d9cfb6040ed21fa6a5f5e1501d5ad92f870
2016-01-30 22:10:13 -05:00
Jake Weinstein d9efe0322b power: use power.$(TARGET_BOARD_PLATFORM)
* power.qcom works on devices only when ro.hardware=qcom, which isn't true on all.

Change-Id: I24a5fef153d4075f38bf1ff9508b7b10764fed74
2015-12-07 21:54:51 +00:00
Tanya Finkel 889088c372 display: Fix resolution for SBC8016 platform
The default display for the SBC platform is HDMI display.

Change-Id: I41003b140a7201f681fcc5005106ccdd0e5736e3
2015-11-06 04:58:41 +00:00
Pushkaraj Patil 0dc9940a9c common: Set separate system property for 8929
8929 is using 8939 system property to select hw hevc
decoder solution but this may lead to other CTS issues
as 8929 have different specification. Use separate
system property for 8929.

Change-Id: I8687279c7fa2957ddf16dfeeba4f0c859c3bf01b
2015-11-06 04:58:41 +00:00
Pushkaraj Patil 78b7be083c common: use hw hevc decoder for msm8929
8929 target is using software hevc decoder. Set a system
property so as to use hw hevc decoder, for all variants of
8929.

Change-Id: I156a26e905859a23f96a32ca4b98cdee688833df
2015-11-06 04:58:41 +00:00
Manikanta Kanamarlapudi e2385f88ee common: Set system property to differentiate 8916 and 8939 hw
Set system property to differentiate 8916 and 8939 hw based
on soc-id to select appropriate media_codecs.xml

Change-Id: I043e00c9c580994b511f8fcec4a0890da90645a6
CRs-Fixed: 770327
2015-11-06 04:58:41 +00:00
Pushkaraj Patil 9ca09baa10 init: disable narrow search range
For 8916 narrow search range should be disable.
Disable set property vidc.enc.narrow.searchrange,
if target is 8916.

Change-Id: I501eaf1de72334a0a86baa222d29387b4da66860
2015-11-06 04:58:41 +00:00
Praveena Pachipulusu 114f2242da init_msm8916: Properly handle reading sysfs node
Properly handle failure to read sysfs file used to
determine the lcd density.

Change-Id: I864f67e9c9489b20f3634179e277fb5ad6096af0
2015-11-06 04:58:41 +00:00
Praveena Pachipulusu 755ea2e467 init: Add MSM-specific init extension library
Implement MSM-specific initialization during boot
up at "init" stage. Set DPI property based on panel
resolutions by reading virtual_size sysfs entry.

Change-Id: Ie0e1b5e68c72abe4aa11edbd4700bef3208dd461
2015-11-06 04:58:41 +00:00
Manikanta Kanamarlapudi 2eb5cdf7ca common: Add setprop to differentiate sw/hw HEVC
Add setprop to differentiate sw/hw HEVC based on
msm_id

Change-Id: I15421fa9217597a541e0ee042ba48662fcda59b4
2015-11-06 04:58:41 +00:00
Manikanta Kanamarlapudi 4850063265 common: Add init_msm for 8916 file
Add init_msm for 8916 file and do setprop's
for hw/sw HEVC based on msm_id

Change-Id: I4cde44765e017add364a3632632a4c78cdab33f5
2015-11-06 04:58:41 +00:00
Shruthi Krishna e51bd6991f Renaming thulium to msm8996
Change-Id: I912a7bc3a107341e7d413937c0d1e9580e0a20d6
2015-11-06 04:58:41 +00:00
Bruce Levy fb14db9279 init: Add MSM-specific init extension library for thulium
- Implements MSM-specific initialization during bootup
- Sets the lcd density to 480

Change-Id: I30259948edf866b0e288d33ae1965aa1bd980f93
2015-11-06 04:58:41 +00:00
Ilia Lin 06902886c8 init: qcom: Set ro.sf.lcd_density for SBC APQ8084
Set the property ro.sf.lcd_density value to comply the
SBC APQ8084 display size.
qemu.hw.mainkeys is set to 0, because SBC is headless device
and doesn't have HW buttons.

Change-Id: I3e4e56245f95a061ea218f16c0af3f10a797ad4b
2015-11-06 04:58:41 +00:00
Vijay Ganti 3a04bbdd8b apq8084: Update LCD density setting for APQ8084 MTP and Liquid
Update LCD density on Liquid to 320 and MTP to 480
based on UX profiling and Jank analysis

CRs-fixed: 612032
Change-Id: I1d2ee7671b7fd388967087df4f4bf8711f010478
(cherry picked from commit e47e385274)
2015-11-06 04:58:41 +00:00
Jake Weinstein 1bb753951d init: add support for MSM8952/MSM8976
Change-Id: I045bab35a8b97e84b41612e0ac0e33d43995ef60
2015-11-06 04:58:41 +00:00
Jake Weinstein 8fa270fcc4 init: add support for MSM8909
Change-Id: I852690234de1b2ffd0b6cf457106fff353a89a53
2015-11-06 04:58:41 +00:00
Prabhanjan Kandula 77b2be061e init : display: Add permission to camera bw node.
Allow surfaceflinger process to access fb0/mdp/bw_mode_bitmap,
so that framework can hint the camera usage to limit the bw.

Change-Id: I566010e1b988ab06f6618967f5b9c6d0cfb68890
2015-11-06 04:58:40 +00:00
Ilia Lin 4406b7b8d7 init: qcom: Set LCD density for Dragonboard APQ8094
Set proper LCD dencity for the FWVGA display on the
Dragonboard APQ8094.

Change-Id: I6bd657ee90a21ed8a13e6456b05feaf79b5c5c95
2015-11-06 04:58:40 +00:00
Arun Kumar K.R 515ddd0a47 init: Add MSM-specific init extension library for 8994
- Implements MSM-specific initialization during bootup
- Sets the lcd density at the bootup

Change-Id: I2bbc3e724682b8b11329b87c26aca1e4faf8d357
2015-11-06 04:58:40 +00:00
Jeykumar Sankaran b5c9c4c670 init: Add MSM-specific init extension library for 8992
- Implements MSM-specific initialization during bootup
- Sets the lcd density to 480

Change-Id: I2997e902c3bdafefda0bb98b8d8b3c1279c7b5dc
2015-11-06 04:58:40 +00:00
Saurabh Shah 5a8cc2ab60 device/qcom/common: Add permissions for mode and modes
Add permissions, owners for /sys/class/graphics/fb0/{mode, modes}
These are meant to be read/written to by hwc.

Change-Id: I43f38b8106ac066b37912a3ebd2af2375f3e7b09
2015-11-06 04:58:40 +00:00
Jeykumar Sankaran 98f88d6286 init: Set permissions for dynamic partial update node
Set file permissions for dynamic partial update system node to
control the feature at runtime.

Change-Id: Icd4799907d168c2606c8811c73f4fedd847d55f0
2015-11-06 04:58:40 +00:00
Arun Kumar K.R 6bfa2abe8e init_msm: Add usergroup permission to dynamic_fps node.
HWC will be writing to this sysfs node to set the variable
refresh rate, hence set proper usergroup

Change-Id: If668003463f580050d5843af97bf8f8761eb7f88
2015-11-06 04:58:40 +00:00
Naseer Ahmed 3edc4294a4 init: Set permissions for physical address
Change-Id: Ic7f0b296e9ab5f1738aae4f46dcb47e935da8045
CRs-Fixed: 795622
2015-11-06 04:58:40 +00:00
Naseer Ahmed f2b345ceea init: Add permissions for CEC nodes
Change-Id: I220fd52e33690ee6d4de39f121464571c7ce91e0
2015-11-06 04:58:40 +00:00
Naseer Ahmed 423dac5ea8 init_msm: S3D mode permissions
Allow HWC write permissions on this node.

Change-Id: I732c2003f1130f9ebefb17e0fcd0f14044dc24f9
2015-11-06 04:58:40 +00:00
Tatenda Chipeperekwa de541be681 init: Add persmissions to access res_info node for HDMI timing info
The HDMI driver now provides timing information through the res_info
sysfs node. The display HAL will need permissions to read/write this
node as part of HDMI initialization.

Change-Id: I2d767534a877368f55d614118676edb5f4f90b9e
2015-11-06 04:58:40 +00:00
Dilip Gudlur 9caa82e608 power: Enable 4+0 core config for display off cases
This change enables 4+0 core config for display off
sceanrios and in display off scenario system should
go back to default core config.

Change-Id: I57795988e7e0f1b2c1e160e2e454549a14bbde50
2015-10-11 21:06:47 +00:00