Commit graph

568047 commits

Author SHA1 Message Date
Bryan Huntsman
bcbb9ead97 qcom: core_ctl: Add support functions for core control
Add support functions for core control driver. Also introduce
Kconfig for enabling core control.

Change-Id: Ic127b6ed7d9450338883b13d9c42abfe49ff8b35
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:10:43 -07:00
Satya Durga Srinivasu Prabhala
3165bb66bf uapi: export IPA & Media headers
IPA & Media headers need to go to userspace.

Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:10:42 -07:00
Stephen Boyd
8570db60c0 Export android_pmem.h to keep userspace compiling
Some applications still include android_pmem.h although all the
functionality for it is gone from the kernel. Keep this header
file around until all such users have removed the include.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 21:10:42 -07:00
Trilok Soni
3ae99287b5 defconfig: Enable Android base options for 8996 and msmcortex
Enable Android base options for the 8996 and msmcortex

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-03-23 21:10:41 -07:00
Trilok Soni
b5d45e0bf2 arm64: cpuinfo: make machine_name as extern
of_flat_dt_get_machine_name() API is marked as __init so
machine_name should be made as an extern in-order to get
it accessed by the cpuinfo.c. In the earlier kernel revisions
the usage was restricted to the one file setup.c only and
due to which we didn't faced any issue.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-03-23 21:10:40 -07:00
Zhen Kong
525bc7b1b1 defconfig: arm64: msm: Enable msm_rng
This is necessary to support msm_rng functionality

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 21:10:39 -07:00
Zhen Kong
3684d72b85 hw_random: make msm_rng driver compatible for kernel version 4.4
Updated APIs used in msm_rng to be built on kernel version 4.4.

Acked-by: Shabnam Aboughadareh <shabnama@qti.qualcomm.com>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 20:59:37 -07:00
Zhen Kong
df53b6783a hw_random: add snapshot of msm_rng driver
This snapshot is taken as of msm-3.18 commit e70ad0cd
(Promotion of kernel.lnx.3.18-151201.)

Acked-by: Shabnam Aboughadareh <shabnama@qti.qualcomm.com>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 20:58:34 -07:00
Rohit Gupta
960dbb1751 perf: Skip permission checks on kernel owned perf events
The perf event permission checks are necessary because they introduce
a security concern where one userspace task can monitor another task
and gain security related information. That concern doesn't exist for
kernel owned perf events since the kernel already has access to
everything. So, skip permission checks for kernel owned perf events.

Change-Id: I7121f5e03cf6ce8f0bfc9b5a69488efb80a97051
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:14 -07:00
Neil Leeder
e9e1c5a00f perf: pass correct parameter when removing event
An incorrect pointer to the event was being passed, instead of
pointer to the remove event struct. Pass the correct pointer.

Change-Id: I7c35c5bb3a14d74a9b36c3d1dbd7af0bf80e7efe
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
2016-03-23 20:58:13 -07:00
Neil Leeder
182eeb0c0d Perf: arm64: stop counters when going into hotplug
Hotplug disables the pmu irq, but if counters are
running in the window before the CPU is hotplugged off
they can overflow and generate an interrupt. Because the
interrupt is disabled, this prevents the cpu from going
down.

Events are stopped during hotplug processing. However,
perf is hooked into the timer tick, and restarts enabled
events on every tick, even if they were stopped. Change
the event state to OFF to prevent this.

CPUs can still be power-collapsed while being hotplugged
off, but hotplug processing will save and restore the correct
state, so don't process power-collapse save/restore while
hotplug is in process.

Processing for stop reads the counters, so a separate call
is no longer needed. Start processing re-enables events so
the from_idle flag is not needed during pmu_enable.

Change-Id: I6a7f5b04955ebba8c4d76547f24e2be4071d7539
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
[satyap: merge conflict resolution and move changes in
         arch/arm64/kernel/perf_event.c to drivers/perf/arm_pmu.c
         to align with kernel 4.4]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:13 -07:00
Neil Leeder
6470f7956a Perf: arm64: restore registers after reset
Reset will overwrite registers written by
restore_pm_registers, so order the calls correctly.

Change-Id: I8210d61c2f4c2397efb2de801d94ed1d5aad480c
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
[satyap: merge conflict resolution and move changes in
         arch/arm64/kernel/perf_event.c to drivers/perf/arm_pmu.c
         to align with kernel 4.4]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:12 -07:00
Neil Leeder
09e03e5113 Perf: arm64: fix disable of pmu irq during hotplug
PMU irq is disabled when a cpu is hotplugged off
and perf is running. Using cpu_pmu->active_events
to determine if the pmu is running left a window
where it is decremented to 0 in hw_perf_event_destroy,
and then armpmu_release_hardware is called. If a cpu
is hotplugged off in this window it may not disable
its irq. Use a separate flag which is not cleared
until after the irq is released by all online cpus.

The variable needs to be tristate because of the possibility
of a cpu being hotplugged in during this window. In that
case it should not enable its irq when the pmu is being
shut down. Having the GOING_DOWN state allows correct
behavior for cpus both going down and coming up.

Change-Id: I934ba5dec34e681ce8defd7fa7e311b4a2a92c1a
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
[satyap: merge conflict resolution and move changes in
         arch/arm64/kernel/perf_event.c to drivers/perf/arm_pmu.c
         to align with kernel 4.4]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:11 -07:00
Neil Leeder
0e4ee435ac Perf: arm64: support hotplug and power collapse
Add notifiers for hotplug and power collapse in perf events.
Preserve counters and user enables across these events.
Disable and enable interrupts across events.
This allows perf-events to be used in an environment where
cores are power collapsing and being hotplugged.

Change-Id: Id27ac3b1c0733677e0bc9740ce7534c3e5fdac7c
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
[satyap: merge conflict resolution and move changes in
         arch/arm64/kernel/perf_event.c to drivers/perf/arm_pmu.c
         to align with kernel 4.4]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:10 -07:00
Neil Leeder
86cd54bb19 perf: support hotplug
Add support for hotplugged cpu cores.

Change-Id: I0538ed67f1ad90bbd0510a7ba137cb6d1ad42172
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:09 -07:00
Satya Durga Srinivasu Prabhala
0c718959c8 qcom: fix kryo CPU PMU functional issues on kernel 4.4
While porting kryo CPU PMU driver to kernel 4.4, some functionality
got dropped unintentionally. This commit adds the dropped functionality
back. Also, update driver to be compliant to kernel 4.4.

Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-03-23 20:58:08 -07:00
Trilok Soni
f587e38fb3 defconfig: msmcobalt: Enable OPTIMIZE_FOR_SIZE
Enable OPTIMIZE_FOR_SIZE for msmcobalt debug and perf.
defconfigs and also fix one of the warning in the
EDAC driver.

8996 defconfig is also auto-updated during the build.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-03-23 20:58:07 -07:00
Jack Pham
aa00a46cb9 usb: diag: Fix build error if CONFIG_USB_F_DIAG=m
Instead of #ifdef, use the IS_ENABLED() macro which correctly
handles if the Kconfig symbol is built-in (=y) or a module (=m).
Also add missing MODULE_LICENSE and MODULE_DESCRIPTION to
f_diag.c to allow building as a module.

Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-03-23 20:58:07 -07:00
Pratik Patel
adf10d10e8 iommu: Add iommu_unmap_range declaration for msm_iommu kernel test
To allow msm_iommu kernel test compilation, add a
iommu_unmap_range declaration and the corresponding stub
function.

Change-Id: If80918cc01afa7d0df2673f4e1962989af26f4bf
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2016-03-23 20:58:06 -07:00
Pratik Patel
2e37e1f926 iommu: Add msm_iommu_domains.h snapshot for msm_iommu kernel test
msm_iommu kernel test has a dependency on
include/linux/msm_iommu_domains.h header file.

Add a snapshot of this file to allow msm_iommu kernel test
compilation.

Change-Id: I2c9b634bdc8a06e51d139fc610c9005d9c93f4ee
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
2016-03-23 20:58:05 -07:00
Alex Sarraf
de7fce66af input: misc: hbtp_input: Change regulator_set_optimum_mode
The function regulator_set_optimum_mode has been changed
to regulator_set_load from regulator code. Also rename
regulator_set_mode_check to follow naming convention.

Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2016-03-23 20:58:04 -07:00
Jigarkumar Kishorkumar Zala
ac08c76484 arm64: deconfig: enable CONFIG_INPUT_HBTP_INPUT
Enable hbtp_input driver to support host based touch processing.

Change-Id: Id56beccb53a0c64210e318a3a0a7f1a8d5d2bc27
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
Signed-off-by: Jigarkumar Kishorkumar Zala <j_zala@codeaurora.org>
2016-03-23 20:58:03 -07:00
Alex Sarraf
d42067104f input: misc: hbtp_input: Add digital regulator support
Add support for the digital regulator in hbtp_input driver.

Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
Change-Id: I315d4b4c985917e55823a3c3951f2bffb20b39e6
2016-03-23 20:58:02 -07:00
Mohan Pallaka
d42befffb2 input: misc: add support for virtual mouse
Add input driver for virtual mouse feature. The events
are received through ioctls and transfer them through
input framework.

Change-Id: I0842b49ec1c8c6bef3005d9f4419ab15e3abe024
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
2016-03-23 20:58:02 -07:00
Himanshu Aggarwal
8366ca7181 input: hbtp_input: Port and add snapshot of changes from msm-3.10
Port the HBTP Input driver and apply the following driver
changes taken from msm-3.10 kernel branch as of msm-3.10 commit.

31773451	input: misc: add input driver for HBTP

20bf9c5f	input: hbtp_input: bypass alphabetical and numeric
		key config

e424ee72	input: misc: hbtp-input: add event type in uevents

Change-Id: I122d22cf738c747bcd43ec7f90c33a239288fd9d
Signed-off-by: Jing Lin <jinglin@codeaurora.org>
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-03-23 20:58:01 -07:00
Alex Sarraf
937a5478fe defconfig: add support for synaptics and atmel driver
Add support for synaptics and atmel driver

Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2016-03-23 20:58:00 -07:00
Himanshu Aggarwal
bffcee84f0 drivers: atmel_maxtouch_ts: fix compilation errors
Fix compilation errors when secure touch feature is enabled.

Change-Id: I9efd1aee5b9615b065d556c4a19d6bf790221db1
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-03-23 20:57:59 -07:00
Amy Maloche
47058cc1af input: atmel_maxtouch_ts: squash commit from 3.14 kernel
Squash and apply the following touchscreen changes taken from the msm-3.14
kernel branch as of msm-3.14 commit 8139d0b
(ARM: dts: msm: Set flag to manage clks during suspend for msm8996)

 421c2f3 input: touchscreen: atmel_maxtouch_ts: delay init call
 48e0a07 input: atmel_maxtouch_ts: recover from bootloader
 b3ebb61 input: atmel_maxtouch_ts: add support for force cfg update
 8467fe3 input: atmel_maxtouch_ts: fix firmware update routines
 c83ee59 input: atmel: Secure Touch support
 1c7d5e2 input: atmel_maxtouch_ts: fix power up sequence
 d4c1ffc input: atmel_maxtouch_ts: add support to ignore CRC
 f402790 input: atmel_maxtouch_ts: add support for standard features
 9374cef input: atmel_maxtouch_ts: use proper data types
 0fbe83e input: atmel_maxtouch_ts: add regulator error conditions
 e22d100 input: atmel_maxtouch_ts: add gpio support
 63d4b74 input: atmel_maxtouch_ts: add device tree support
 575c2fc input: atmel_maxtouch_ts: enable compilation on 3.10 kenrel

Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2016-03-23 20:57:58 -07:00
Amy Maloche
708ce8696b input: touchscreen: add Kconfig & Makefile entries for atmel_maxtouch_ts
Add entries so compilation can be chosen for latest
Atmel touchscreen driver.

Change-Id: Ib63a56215e52cc80cb8532c50b16112d39c1e6f7
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2016-03-23 20:57:57 -07:00
Nick Dyer
ea2cf49df9 input: atmel_maxtouch_ts: Add latest Atmel driver support
Git-commit: 482584a6c0d863e04a03837a79c1e79b2769aaee
Git-repo: git://github.com/atmel-maxtouch/maxtouch-v3.0.git
Change-Id: Ifdd872d1aacd5752aab1a218e18e2cbc1582c17f
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
[joshc: fixed up INIT_COMPLETION() usage]
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
2016-03-23 20:57:56 -07:00
Himanshu Aggarwal
bbcb3e5aab input: synaptics_dsx_core: clear all outstanding completions
The secure touch ISR and the poll logic in the user space layer is
going out of sync because the completion lock in the driver
is getting released in some corner cases unexpectedly. Clear all
outstanding completions before waiting for one helps fix the issue.

Change-Id: Ia3a6d318330263e7bfd8dfc3cea71c5300ab82b4
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-03-23 20:57:56 -07:00
Mao Li
cabb738b70 input: synaptics_dsx: add reset in resume function
Add reset in resume function to enable touch panel S332U
for MSM8996 DTP.

Change-Id: Id13ee3a8426cbd90692bc8a658f166c79accd7fd
Signed-off-by: Mao Li <maol@codeaurora.org>
2016-03-23 20:57:55 -07:00
Himanshu Aggarwal
bc905d8339 input: synaptics_dsx_fw_update: modify firmware upgrade procedure
Modify the firmware upgrade procedure based on the following requirements:

If config id of the firmware file is greater than the config id in the
device and if packrat id of the firmware img file is greater than the
firmware build id in the device, then during the firmware upgrade
procedure, both firmware and config areas are upgraded. Otherwise,
if the packrat id of the firmware img file is equal to the firmware
build id in the device, then only the config area is upgraded. However,
if the packrat id of the firmware img file is lesser than the firmware
build id in the device, then it is considered as an error.

Similarly, if config id of the firmware file is equal to the config id
in the device and if packrat id of the firmware img file is greater than
the firmware build id in the device, then during the firmware upgrade
procedure, both firmware and config areas are upgraded. Otherwise, if
the packrat id of the firmware img file is equal to the firmware build
id in the device, then no upgrade is needed. However, if the packrat id
of the firmware img file is lesser than the firmware build id in the
device, then it is considered as an error.

This is a propagated patch from 3.10 kernel
commit - d9921ff0ce4024b43837d794cc261b52ae58f776 ,
input: synaptics_dsx_fw_update: modify firmware upgrade procedure

Change-Id: I646d2c04243a30b77d48698cce76e9e183bd6db1
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-03-23 20:57:54 -07:00
Himanshu Aggarwal
5d64b48dce input: synaptics_dsx_fw_update: update fw based on config id
Update the firmware based on strict config ID versioning, rather than
the entire config ID as a 4 byte number. This will also protect
against config ID major number mismatches and packrat id mismatches.

This is a propagated patch from 3.10 kernel.
commit - 458cbab5c53d5141a66590441f9567d67d580c6f,
input: synaptics_dsx_fw_update: update fw based on config id

Change-Id: I1097585d3bd8b6ab753676dc56f268c7ce52680d
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-03-23 20:57:53 -07:00
Sudhakar Manapati
3c6435a9f5 input: synaptics_dsx: Read touchscreen config-id during probe
Add support for reading configuration ID from the touch controller
during probe and print it. This is required to identify if touch
controller is programmed with correct touch firmware or not.

Change-Id: I155f0392ae67e5f9b184b9cef2a7bbb7666be30d
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-03-23 20:57:52 -07:00
Abinaya P
d23166718c input: synaptics_dsx: correct the debug message error
Parse the panel coordinates before using it for the debug
message.

Change-Id: I6e893b91e9f11cf7d80602058358d8256a96726d
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-03-23 20:57:51 -07:00
Mohan Pallaka
358da51dda input: synaptics_dsx: squash commit from 3.14 kernel
Squash and apply the following touchscreen changes taken from the msm-3.14
kernel branch as of msm-3.14 commit 3bc54cf86b
(Merge "msm: camera: Add dummy sub module in sensor pipeline")

 b20792c2 input: synaptics_dsx: Fix security issues
 4f3ec831 input: synaptics_dsx: Remove use of deprecated INIT_COMPLETION
 8c5bd97f input: synaptics_dsx: change permission for sysfs secure_touch_enable
 b22c0b56 input: synaptics_dsx: reconfigure resolution in suspend
 0ea26697 touchscreen: synaptics_dsx: set absolute axes for touchscreen
 6a021e0a input: synaptics_dsx: handle all controller interrupts
 d3de3ed6 input: synaptics_dsx: remove query operation from reinit
 2285a8dd input: synaptics_dsx: remove vkey kobject in remove
 6817aed5 input: synaptics: Fix to secure touch clock unbalance
 44a84a1e input: synaptics_dsx: support for pm ops
 41439903 input: synaptics: add support for unprogrammed panels
 b029351d input: synaptics: remove outdated header
 d065c5e0 input: synaptics: add ability to distinguish touch part
 72ca30da input: synaptics_dsx: release pinctrl resources on probe failure
 0ab5f1e5 input: synaptics: add NULL pointer check
 ad4102c8 input: synaptics: Secure touch clocks
 6a77bbed input: synaptics_dsx: fix compilation warning when !CONFIG_PM_*
 f3488933 input: synaptics_dsx: reorder device resume sequence
 71b65447 input: synaptics_dsx: add support for 2D sensor for soft-keys
 610ecdc2 input: synaptics_dsx: fix data sysfs read-write permission
 06195779 input: synaptics_dsx: fix up world writable sysfs file
 995ed76d input: synaptics_dsx: add ability to identify controller
 69a416fe input: synaptic_dsx: configure touch panel boundary coordinates
 609eb34b input: synaptics_dsx: correct sysfs permissions
 59af5ffb input: synaptics_dsx: remove firmware update at boot
 13b71e2f input: synaptic_dsx: stay awake the device during firmware update
 dccee682 input: synaptic_dsx: add sysfs entry for force firmware update
 a4d13992 input: synaptics: secure touch support
 11c70731 input: synaptic_dsx: add debugfs support for suspend/resume
 2642f2cb input: synaptics_dsx: add standard features for touch support
 72f05e70 input: synaptics_dsx: add dual regulator support
 ab390caa input: synaptics_dsx: add device tree support
 51898424 input: synaptics_dsx: fix conflicts with other drivers

Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
2016-03-23 20:57:51 -07:00
Alexandra Chin
7ef5f9cf4e input: synaptics_dsx: Add support for synaptics_dsx touch
Change-Id: I1df8a7465fdb5c18cf69e0908347fc78ce7dd07c
Git-commit: 67b7a9d78725d5de2a1899095eb0026e15343a62
Git-repo: git://github.com/synaptics-touch/synaptics-dsx-v2.1
Signed-off-by: Alexandra Chin <alexandra.chin@tw.synaptics.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
2016-03-23 20:57:50 -07:00
Matt Wagantall
12cf0ae819 AndroidKernel.mk: snapshot support for building in the Android build system
This snapshot is taken as of msm-3.14 commit 3bc54cf86b (Merge "msm:
camera: Add dummy sub module in sensor pipeline")

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2016-03-23 20:57:49 -07:00
David Ng
f0973f476c arm64: Add 32-bit sigcontext definition to uapi signcontext.h
The arm64 uapi sigcontext.h can be included by 32-bit userspace
modules.  Since arm and arm64 sigcontext definition are not
compatible, add arm sigcontext definition to arm64 sigcontext.h.

Change-Id: I94109b094f6c8376fdaeb2822d7b26d18ddfb2bc
Signed-off-by: David Ng <dave@codeaurora.org>
2016-03-23 20:57:48 -07:00
Trilok Soni
ad00f1292b defconfig: 8996: Enable OPTIMIZE_FOR_SIZE for perf defconfig
Enable OPTMIZE_FOR_SIZE for msm-perf_defconfig and
also fix the forbidden warning found during the compilation.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-03-23 20:57:47 -07:00
Rohit Vaswani
8867904a55 defconfig: arm64: Enable some tracer options
Enable tracer options and do the automatic defconfig update

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2016-03-23 20:57:46 -07:00
Rohit Vaswani
fdeaa450d8 fixup! block/fs: keep track of the task that dirtied the page 2016-03-23 20:57:46 -07:00
Matt Wagantall
e1b2469529 trace: cpu_freq_switch: Add profiler for CPU frequency switch times
It is sometimes useful to profile how long CPU frequency switches
take, and traces have already been added for this purpose. Make
use of these and the trace_stat framework to generate statistical
histograms of frequency switch times in the following format:

 # cat /sys/kernel/debug/tracing/trace_stat/cpu_freq_switch
  CPU START_KHZ  END_KHZ COUNT AVG_US MIN_US MAX_US
    |         |        |     |      |      |      |
    0    384000  1512000     3   2787   1648   3418
    0    486000   384000     1   1129   1129   1129
    0   1458000   384000     1   3174   3174   3174
    0   1512000   384000     1   3265   3265   3265
    0   1512000   486000     1   3235   3235   3235
    0   1512000  1458000     1    213    213    213
    0   1512000  1512000     1      0      0      0

Profiling is disabled by default (since it does incur some
overhead). It can be enabled or re-disabled echoing 1 or 0
to /sys/kernel/debug/tracing/cpu_freq_switch_profile_enabled

Change-Id: I3ef7f9d681b7bd13bcaa031003b10312afe1aefe
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2016-03-23 20:57:45 -07:00
Mitchel Humpherys
af7618f309 soc: qcom: Add kernel_protect library and initcall
It's good security practice to make your executable code read-only.  On
hypervisor-enabled targets, this can be trivially accomplished by
removing the writable attribute from all stage-2 mappings of the kernel
text.  Add a small library and initcall to do this.

Due to constraints on the hypervisor, this needs to happen before all of
the cores are brought out of reset, so make it an early_initcall.

Change-Id: I2d3ee4ad69402d98f0f6a9078c58e66cd227d222
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-03-23 20:57:44 -07:00
Trilok Soni
6bc3fcc1f0 defconfig: msm8996: Enable ANDROID_BINDER_IPC
Enable ANDROID_BINDER_IPC for the Android compilation and
runtime dependency.

Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-03-23 20:57:43 -07:00
David Keitel
2dc81b385a defconfig: msm: enable OPTIMIZE_FOR_SIZE
Turn on OPTIMIZE_FOR_SIZE option to prevent warnings from IPA/MDSS.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 20:57:42 -07:00
David Keitel
6ccaf2a594 scripts: gcc-wrapper: allow a few forbidden warnings
Bypass a few forbidden warnings to allow msm_defconfig to build.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 20:57:41 -07:00
Rohit Vaswani
91a1dd684f drivers: iommu, leds, input, clk, devfreq: fix warnings
Fix some variable initializations which would otherwise cause
forbidden warnings.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 20:57:40 -07:00
Rohit Vaswani
f52a07bd52 scripts: build-all: Fix the check_kernel for MSM
Update the check in the check_kernel function for
newer kernel.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2016-03-23 20:57:40 -07:00