Commit Graph

1726 Commits

Author SHA1 Message Date
Jake Weinstein 3a1852372e common: disable tcmiface
* Depends on proprietary things, isn't needed

Change-Id: Id08e4cd1c1b6f6577edd0fba99f6363d13ef0b88
2016-05-08 21:12:54 -04:00
thecrazyskull 36be6c8da6 power: only build first lib
Change-Id: If2ec64eff0e32cad1c6ba68febe8c3b1aad1ce3d
2016-05-07 14:23:48 -04:00
Jake Weinstein ff4f452bcb common: disable org.codeaurora.Performance
* Not an improvement.

Change-Id: I58aaecdcd5562a98a134a15a9dd1b2fe9e6a3530
2016-05-07 11:22:39 -04:00
Willi Ye 8b5c7f6cac Add more gestures [2/4]
Change-Id: I5042b4f8e6a17ef5a5befce4ab6c83505c1fb38a
2016-04-23 17:24:27 -04:00
Willi Ye ace0663dc5 Add gestures control
Change-Id: Ib8cae0fd9b79f9a6c6c70e10bb445aaa54604409
2016-04-23 17:24:27 -04:00
Jake Weinstein 4657055c57 common: move build tasks to build
Change-Id: Idd9b1375e13ccad4545c7b75af9ac0fa9c4e1ace
2016-03-11 02:52:42 -05:00
Dinesh K Garg a0c9136aaf cryptfs_hw: Tie HW FDE keys with keymaster
HW FDE keys would be tied to keymaster so that if someone changes
Root of Trust (ROT), encrypted data can't be used. Cryptfs_hw module
is exposing a new API so that caller can determine whether to create
dependency between HW FDE keys and keymaster.

Change-Id: I85c85ffd9086f6c060032e4ae701b10363d88529
2016-03-05 14:25:09 -05:00
Dinesh K Garg 8b7f937886 cryptfs_hw: Update module as per vold project
Update cryptfs_hw API signatures as per the vold project
requests to avoid compilation errors.

Change-Id: I1c2133f3cee395892e7fa160afc6314059ba0bcb
2016-03-05 14:24:56 -05:00
Chiou-Hao Hsu facc4de471 cryptfs_hw: add string.h
Change-Id: I7f64400bfa33dcb87d2c6260b8a055d0262f7511
2016-03-05 14:24:46 -05:00
AnilKumar Chimata 115e27f891 cryptfs_hw: Update APIs to take old password
Update cryptfs_hw APIs to take old password along with the new
passowrd.

Change-Id: Ieca5c4bac36ba4bb2371d2f3bbe0cadf79e256d7
2016-03-05 14:24:36 -05:00
Dinesh K Garg 549537b17b Adding support for eMMC based ICE
ICE (Inline Crypto Engine) encrypts/decrypts storage IO requests to
minimize degradation in storage IO throughput. ICE has been added to
eMMC based storage hardware as well. Adding required support for eMMC
based ICE.

Change-Id: I7986d95ccabca9d6d029653c804608e7d78ad9ef
2016-03-05 14:24:26 -05:00
AnilKumar Chimata 76a469d75e cryptfs_hw: Add support for wipe_key routine
Add support for wipe_key routine to clean key.

Change-Id: I9e258e1506d0634c4fc5b5142475005f6eb51c4e
2016-03-05 14:24:14 -05:00
Dinesh K Garg befedbb9ff Adding support of Inline Crypto Engine (ICE)
ICE requires keys to be set in key LUT. Changing APIs so that it
return the key index in key LUT. It also needs to take care if
ICE is available on the chip.

Change-Id:  I22be18738ba33e5b5c61639c24b320484d0ad7f2
2016-03-05 14:23:47 -05:00
Sri Krishna Chaitanya Madireddy 9e9930f883 qcom/common: Added O_NOFOLLOW to avoid follow the symlink
open system call is added with NOFOLLOW flag

Change-Id: I402643635e3ee11b3ac5df63c3b71a9fd6f0d2db
2016-03-05 14:23:37 -05:00
Dinesh K Garg cd55e1f10a Port cryptfs_hw library to 64bit platform
64 bit platform generates library at a different path compared to
32 bit platform.Added macros to take care of both kind of platforms.

Change-Id: Ie32b8edaeb9f8f34095c7f18c4add83fe957d82a
2016-03-05 14:23:25 -05:00
Dinesh K Garg 119da7e181 Wrong function pointer usage
qseecom_create_key which is a function pointer is used after
dereferencing it. Also fixed the issue where userdata may not be
wiped after certain number of attemps.

Change-Id: I4d14366e33c09da64f89000a16b7eef7d981cfda
2016-03-05 14:23:12 -05:00
Dinesh K Garg 23b7304eed Place library in vendor folder on device
All vendors developed libraries must be in vendor folder on
device. Using appropriate directive to accomplish the objective.

Change-Id: I4ed413b799c0b66a86321f799713068776fa538a
2016-03-05 14:23:01 -05:00
Dinesh K Garg 94a8f4d8ef vold: HW based device encryption
SW based device encryption uses SW crypto engine. This module
provides the support for VOLD to utilize HW crypto engine. HW
based crypto engine is more efficient both in terms of power
and throughput.

Change-Id: I34107a0ce50d9fc5c80c15ace0678a0bba7adee5
2016-03-05 14:22:37 -05:00
cyanogen 8d57b48759 [HAX] Allow per-target dtbTool
* Revert this when fixed

Change-Id: I97ecb0448ae7bd5859454be290c5dde6248b2859

build: Default to dtbTool

* The default dtbTool isn't the correct module name for the module that
  actually lives in device/qcom/common/dtbtool
2016-03-05 13:17:00 -05:00
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