Commit Graph

1661 Commits

Author SHA1 Message Date
Alex Naidis 49995c8eb1 common: sdclang: Enable by default!
The Dragon unleashes the fire.

Change-Id: Ie00fffc245f83731324ab8a8de3469e54d8da3a4
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-10-05 00:40:34 +02:00
Alex Naidis 783f2d2b8f
common: sdclang: LTO: filter new no-erratum-fix flag
* We are using this one in build now too
* But it isn't supported by QCLD either
-> filter it out

Change-Id: I148d82f94dad67fdca286d03b8b71fd3846c87a3
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-10-04 21:20:46 +02:00
Alex Naidis b2c1940140 common: add support for SDCLANG
This commit adds the needed bits for SDCLANG support.

SDCLANG is initialised as false currently,
however the implementation allows to override it from device.

The Path is currenly hardcoded to "prebuilts/clang/host/linux-x86/sdclang-3.8/bin"
since we cannot provide support for darwin currently.

The LTO definitions are added and the variable which
gets picked up by build system automatically is set.

Also a new configuration is introduced: SDCLANG_COMMON_FLAGS
These flags will be picked up for arm and arm64 targets.
We are using -O3 currently since SDCLANG defines the levels
of optimisation differently and O3 is a very safe level to use here.

The new configuration SDCLANG_FORCED is initialised
at false and can be overriden. It can be set
to true in order to force SDCLANG to be used
under the condition that it is requested.
Currently we don't want to do this globally,
however it might be useful for OEM builds.

Change-Id: I4f42be82a8a113fdf6406d9879d5586968030517
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-10-02 01:35:14 +02:00
Tim Murray a48006a949 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: Ie0428901c17f6ddf6f7c8d05545a81a70f4fe6d7
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-28 07:14:38 +02:00
Tim Murray a6c9f77e0d Delay video encode power hint for 2s.
Improves camera startup significantly.

bug 24180717

Change-Id: Ica75eda2db8c30ac5241cadb62ae6161fcb8d59b
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-28 07:14:31 +02:00
Veena Sambasivan 2f6e66dfb2 power-hal: Fix make file to use correct power hal library
Fix make file to use correct power hal library

Change-Id: Iffc6d61d48cba02860f92073ca31c945d970f3be
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-28 07:14:21 +02:00
Alex Naidis a747322a68 common: power: port persistent handle for interaction hint
* This is coming from AOSP Power HAL and was adapted
  for our Power HAL

Original commit (the relevant part is marked with "[]":

From 8be2968248ec43ad57c3c0f3ab9611924321167d Mon Sep 17 00:00:00 2001
From: Tim Murray <timmurray@google.com>
Date: Fri, 18 Sep 2015 11:42:54 -0700
Subject: 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.

bug 24113279
bug 24064601

Change-Id: Ib81e478f17191a1a27e64774e4132fe97e18f124
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-28 07:14:12 +02:00
Alex Naidis 1fd2bb52d9 common: power: revert quick ports from AOSP power HAL
* We want to get inline with CAF power HAL
  and import just the changes we want from AOSP.

Revert "power:8992/8994: modify screen off config"

This reverts commit 91100af93a.

Signed-off-by: Alex Naidis <alex.naidis@linux.com>

Revert "power: fix 8992 build"

This reverts commit fa8bfc83ff.

Signed-off-by: Alex Naidis <alex.naidis@linux.com>

Revert "power: apply angler/bullhead changes for 8994 and 8992"

This reverts commit c89b5f2310.

Change-Id: I6887bd85c485c43366a5355f6c4645a04ab6af27
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-27 21:46:30 +02:00
Alex Naidis 6176b89737 common: move Snapdrgon Camera here
This is getting moved here from vendor/pa
since it is specific to Qualcomm devices.

Change-Id: I3195ad5572da92e6d7984f89f4b619b25e514da1
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-25 17:36:48 +02:00
Alex Naidis 93f7049171
common: move tcmiface config to our vendor
This is actually needed for non-qcom devices as well, otherwise
the bootclasspath breaks because numerous components
depend on the tcm extensions right now.

Change-Id: I7ca017c3b573c7b2c9760a71513b149df085f6b8
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-09-22 13:07:04 +02:00
Jake Weinstein 53767be2e6 common: enable BOARD_USES_ADRENO
* Needed for N media HAL

Change-Id: I4299f0ac598ae524f7a644e1cfedf0876532c51f
2016-09-08 16:17:11 -04:00
Jake Weinstein 41fad21faa common: remove JACK disabling flag
* This was commented out, but doesn't work on Nougat anyway

Change-Id: I747c3498b544106741adc4187e59f29747dff102
2016-09-01 16:32:47 -04:00
Jake Weinstein 8d89fcea0c common: combine makefiles
Change-Id: Ia253326c1580eb8e697d2775dec5317a83d56657
2016-09-01 16:32:32 -04:00
Jake Weinstein a2e964f85d common: move audio configs to HAL
* Follows CAF

Change-Id: I7951509a8fce8cd7f1e61542f1341e5d0aab1eca
2016-09-01 16:06:39 -04:00
Jake Weinstein 6335aaa9a5 common: define cryptfs_hw path
Change-Id: I9aa04edea23399ee367aaebdc4101e6bac070945
2016-08-31 13:57:21 -04:00
Jake Weinstein 1129c81fbd power: remove cam preview hint on 8996
* Not supported by current platform and isn't in HAL anyway.

Change-Id: Ib379c88db7d8159c3d2cfdc3588cc70aa9683182
2016-08-31 13:56:16 -04:00
Alex Naidis 27b777ed17
common: premilinary preparations for N
* reenable jack, since it is much deeper integrated into the new build system and caf won't disable it this time, most likely

Change-Id: I39876445a8a4774f9b335d4bfc1e578a9b4a0bca
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-26 16:57:15 +02:00
Dinesh K Garg 9e4c081d3b
Wait for QSEECom listeners before calling KMS APIs
Sometime it is possible that KMS APIs are invoked and QSEECom
listeners are not up. This would cause failure from secure side
and KMS API will fail eventually. This change waits for QSEECom
listeners to be up before calling KMS APIs. If QSEECom listeners
are not up even after wait period, API would fail without going
to secure side.

Change-Id: I211248645f92fc0fcfe6f250cb1f26661f5fb06c
2016-08-22 14:26:54 +02:00
Dinesh K Garg 8654ee58ec
Cleanup temporarily stored passwords
While verifying or updating passwords, those are copied into temp
variables which are freed after use. These variables should be
cleaned up before freeing so that passwords are not left in memory
if someone dumps the memory.

Change-Id: I94f76f679bac18a682c796fe98236549e8f5e1aa
2016-08-22 14:26:24 +02:00
Alex Naidis bf6450e250
common: add missing definitions
* used by HALs

Change-Id: I0e4964ecb315e2a5e970113733178e71817577de
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-17 16:04:34 +02:00
Alex Naidis 325f9c2441
common: resolve the madness around DPM
* tcmiface should be present on all devices
* that allows us to remove the global hacks from the http repos and tcmiface itself

Change-Id: I58b8ae79bea12e01fe3dee0769bf3a48847a1c13
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-14 16:54:21 +02:00
Alex Naidis 51a68c598e common: add the dash extension
* adds qcmediaplayer to boot jars if dash is unblocked
* This assumes that qcmediaplayer is being used if Dash is unblocked

* Also move Dash blocker from vendor/pa here

Change-Id: Id23ee450b68e1a1c5526cc7c0db9e9f0b23378d6
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-05 21:18:44 +02:00
Alex Naidis e9a9f3adf9 common: Implement a method to directly hook into product makefile
* add common.mk which gets included from product makefiles
* move things which don't belong to Boardconfig there

Change-Id: Ie6d3ceccf55578f89f7f18673fa1a78af64abbd0
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-05 21:17:07 +02:00
Alex Naidis 91100af93a power:8992/8994: modify screen off config
* Keep all Big Cores offlined
* The previous behaviour didn't match any of our devices power configs

Change-Id: Ib46575028d191bac7fbf186592d3aab54425d468
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-07-18 17:52:45 +02:00
Alex Naidis fbe65f80cb add support for advanced DPM platform
* add needed modules to bootclasspath
* Target must provide these as packages!

Change-Id: I09c69158269feecc2873848d05158fdce49be6e5
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-07-13 14:25:44 +02:00
Jake Weinstein fa8bfc83ff power: fix 8992 build
* Fix fail I did several months ago

Change-Id: I55a58449a8d3489ce678e7718779570833f55ade
2016-06-20 18:25:44 -04:00
Jake Weinstein d758b93d64 power: disable interaction boost by default
Change-Id: Ieaa43587247d4916581ffd8e042829b37669cf09
2016-06-12 09:16:51 -04:00
Dilip Gudlur a0cad8a472 power: keep two cores online when display is on
This change is specific to 8084 and has been
modeled based on 8974 pro changes. Use PerfLock
to keep two cores online when the display is on.

Change-Id: Iffea0f9afbb3743cec2804da5884ec6d977b662a
2016-06-05 13:42:51 -04:00
thecrazyskull 665f1b4f01 Revert "common: enable interaction boost by default"
This reverts commit 66f00d232b.

Change-Id: If3e13a51852820b0f5c9ccdaff952a1edd760f5a
Signed-off-by: thecrazyskull <anaskarbila@aospa.co>
2016-06-05 09:25:07 -04:00
Alex Naidis 121c723cd9 Merge branch 'revert-36be6c8d' into 'marshmallow-caf'
Revert "power: only build first lib"

* we want to use both, according to the multilib idea

This reverts commit 36be6c8da6
Signed-off-by: Alex Naidis <alex.naidis@linux.com>

See merge request !1
2016-06-03 12:52:43 -04:00
Alex Naidis fdbbd13764 Revert "power: only build first lib"
This reverts commit 36be6c8da6
2016-06-03 12:50:50 -04:00
Carlo Savignano 066893623a Unify two finger swipe gestures into one [2/4]
Change-Id: I768b1cfe924e5be41e6bca2917b32260ad1685be
Signed-off-by: Carlo Savignano <carlosavignano@aospa.co>
2016-05-30 00:19:23 +08:00
Carlo Savignano b3df3fbe2f common: export global gestures node as well
Change-Id: Ib6f81e17202da81f1455ab7d2685132c7aa34ab2
Signed-off-by: Carlo Savignano <carlosavignano@aospa.co>
2016-05-30 00:19:03 +08:00
Carlo Savignano 2f18635486 Add more one finger swipe gestures [2/4]
Change-Id: I00aa60407b6eab60a7cae143db1b0ab1ead1a686
Signed-off-by: Carlo Savignano <carlosavignano@aospa.co>
2016-05-30 00:18:57 +08:00
anders3408 446ff54a57 Declare function before use
Change-Id: I4e4b1881a63118ccab9e2c69ea4a2b35ec5e28e7
2016-05-22 15:25:44 +02:00
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