Commit graph

569049 commits

Author SHA1 Message Date
Tony Truong
a5de38c2c5 defconfig: msm8996: Enable MHI driver
Enable MHI driver for MSM8996.

Change-Id: I2161f6cedc4152bb7c48fec9868cfc7070a5d494
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:58 -07:00
Tony Truong
2afbdd4a0d net: ethernet: add MSM MHI RMNET
Add the necessary source to ethernet Kconfig so
MSM MHI RMNET can be seen and enabled in defconfig.

Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:57 -07:00
Tony Truong
7875b4c6d8 mhi: core: Enable Runtime PM by default
Enable MHI runtime PM by default to enable additional
power savings.

Change-Id: I115af9e823ed685d7bf6e2ebaf18ad526256dc98
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:56 -07:00
Tony Truong
7695e3d2ea mhi: core: Fix race condition on poll_inbound
Fix race condition in mhi_poll_inbound which could leave the
bounce buffer list and TRE list out of sync.

Change-Id: I76c7de75256b59f8a0dff2a85af733c441761385
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:55 -07:00
Tony Truong
4b71631d65 mhi: core: Read the EXEC_ENV from device
Read the EXEC_ENV register from device to determine the MHI
base state.

Change-Id: Id70a360cfa3775a7186e5059306385a37960df2d
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:54 -07:00
Tony Truong
747f687329 mhi: core: Enable dynamic event ring allocation
Enable dynamic allocation of event rings from the coherent pool
to ensure appropriate page alignment with device.

Change-Id: Id57ccd889cf96aad73f4ada01405e2d734351c8c
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:53 -07:00
Tony Truong
f2c54bd2fd mhi: core: Set correct DMA mask on device
Set the correct DMA mask on the platform device to
avoid bounce buffering from the default 32 bit mask.

Change-Id: I7e201e83fd21b0f0a6f57754a3b6f3eded9be58f
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:53 -07:00
Tony Truong
a603bd09f9 mhi: Use standard kernel return codes
Replace the MHI defined enum for return codes with
kernel standard return codes. This greatly improves readability
and parsing of errors by userspace clients.

Change-Id: Ica47f8c3a149f23243b5fb6a4aabcdc0a36b1535
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:52 -07:00
Tony Truong
c9ccb15704 mhi: core: Track number of failed M2 wakeups
Failed M2 wakeups may represent a serious hardware problem.
The device is refusing to wake up from low power states and all
modem functionality is now stalled.

Track these wakeup attempts.

Change-Id: I3115a4416f85290c5faead0e2d9f280d8cc3b662
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:51 -07:00
Tony Truong
2d40f51ad5 mhi: core: Enable runtime PM on pcie device
Enable runtime PM on PCIe device to ensure sync with
PCIe framework.

Change-Id: Ied432440df0dc788642fe1a1a8d9195b6cc1cf7c
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:50 -07:00
Tony Truong
ba0558f8bb mhi: core: Remove incorrect macro for tre sizes
Remove unused macros for TRE sizes. This information is
now present in device tree.

Change-Id: Id3ca59c62d66ce8913e83fcba60e1a912cf146ea
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:49 -07:00
Tony Truong
9c3a05ae56 mhi: core: Add mdmcalifornium as a supported MDM by MHI
Add mdmcalifornium to the list of supported PCIe devices
by MHI.

Change-Id: I34e846caceb8fd2808594470cccbb7e318011cda
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:48 -07:00
Tony Truong
bf52eb669d mhi: core: Support BHI error register read
In case of BHI failure, read the device BHI error registers
in the hopes of root causing the failure.

Change-Id: I0c695f7afc873d6fd5c0c9d88e9885799b228d46
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:47 -07:00
Tony Truong
b755b7ceb4 mhi: core: Enable SBL logging channels
Enable SBL logging channels.

Change-Id: I156bc89ca1be0ed966eeb1b2e38b8bfd7bf44de4
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:47 -07:00
Tony Truong
dd91a9a03a mhi: core: Reorder channel initialization sequence
Enable the local bounce buffer list before the device
channel initialization sequence.

Change-Id: Ia87698dc83807727f6897356bf9b23f123c53851
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:46 -07:00
Tony Truong
d3d1144ee5 mhi: core: Enable correct channel alignment
Enable correct allignment of MHI channels to the
ring size rounded up to the next power of two as
per device requirement.

Change-Id: Ic77c43fdbcde2ec3b6f08e3062eaf778eb13ec5b
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:45 -07:00
Tony Truong
6ad91fea76 mhi: core: Resolve issue for UL/DL
Resolve issue whereby UL DL properties were
being incorrectly set for non HW event rings.

CRs-Fixed: 827294
Change-Id: Ie279061e84c0f2498393c5d7bfaef404307c84da
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:44 -07:00
Tony Truong
44bbb50c59 mhi: Enable logging based on defconfig option
Enable logging based on MHI defconfig option. This
avoids excessive logging in secondary boot image.

Change-Id: Ie22d56d781feadb2d484e6117c9c25ee29aa5299
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:43 -07:00
Tony Truong
39e32e5185 mhi: core: Enable parsing of dev window from dt
Enable parsing of device window size from device tree
and calculating the appropriate addressing limitations.

Change-Id: I252a593a74f0cc00e6295a45d4d13db6c79cdfca
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-03-23 21:24:42 -07:00
Andrei Danaila
f688e16bf5 mhi: core: Enable queueing of virtual buffers
Enable clients to queue virtual buffers, thus leaving
all the DMA operations to MHI.

Change-Id: I824d2f387b1a21d322ca0628963995824227bd76
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
2016-03-23 21:24:41 -07:00
Andrei Danaila
74c1e7710f mhi: uci: Enable virtual MHI queueing
Enable the queueing of virtual buffers to MHI instead
of buffers obtained from streaming DMA.

Change-Id: I8ba25c1f28cbd1cb302aec184864ed2e25672d4a
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
2016-03-23 21:24:41 -07:00
Andrei Danaila
c2bcc4280d mhi: rmnet: Enable virtual MHI queueing
Enable the queueing of virtual buffers to MHI instead
of buffers obtained from streaming DMA.

Change-Id: I3f77c7d5d9924659ce13e454646d5a65402353cc
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
2016-03-23 21:24:40 -07:00
Andrei Danaila
b47ed73f99 mhi: core: Enable BB scheme for MHI
Enable bounce buffering scheme in MHI for the cases
where allocated APQ memory falls outside of the memory range
which the device can access.

Change-Id: I9f40b0dda2f49111b7deb22973e6399fada90094
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
2016-03-23 21:24:39 -07:00
Mahesh Sivasubramanian
78c5836a96 drivers: cpuidle: lpm-levels: Notify sched of idle state entry/exit
When entering a sleep mode, idle drivers notifies scheduler to help
scheduler make better scheduling decisions by not waking up sleeping
CPUs/clusters.i

The change was left out of original 4.4 merge due to dependency on
scheduler changes.

Change-Id: Id366432ac4acca390692ef810adbd6edec4a5bfb
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-03-23 21:24:38 -07:00
Mahesh Sivasubramanian
8257cc8ac8 defconfig: msm: Enable energy-awareness driver
Enable energy awareness driver for msm chipsets.

Change-Id: I81efe34339238eba6fa724e1c9bcd6f7eddeee6f
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-03-23 21:24:37 -07:00
Mahesh Sivasubramanian
de19c1b1b4 drivers: power: qcom: Snapshot of debug_core
Snapshot of debug_core module from 3.18(as of
e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1)

Change-Id: Ie7a4c1ba59c3fb2d3745b4582dd14f0147593935
2016-03-23 21:24:36 -07:00
Mahesh Sivasubramanian
05cb6f5290 power: soc: qcom: Fix sensor APIs signatures
The sensor APIs have changed from using long to int for temperatures. Update
the variables types from long to int.

Change-Id: Id183b83339ceaacb6d340cca138845dd5ac6fbdf
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-03-23 21:24:36 -07:00
Zhen Kong
56627ae589 crypto: msm: support aead aes 192 fallback on 4.4 kernel
make change to support aead aes 192 fallback on 4.4 kernel

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 21:24:35 -07:00
Clarence Ip
246eca28e0 msm: mdss: create u32 debugfs for enable_gate/wait4autorefresh
Match debugfs creation to variable type instead of a 'bool' one.
This fixes a compile issue under 4.4 since debugfs_create_bool now
expects a bool* instead of a u32*.

Signed-off-by: Clarence Ip <cip@codeaurora.org>
2016-03-23 21:24:34 -07:00
Nikhilesh Reddy
011cf1fe1e uio: msm_sharedmem: Fix format specifier to print resource_size_t
Use proper printk format specifier %pa to print resource_size_t
type variable.

Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
2016-03-23 21:24:33 -07:00
Nicholas Troast
2109054e5e ARM: dts: msm: add PMCOBALT and PMICOBALT devices for MSMCOBALT
Configure the PMCOABLT and PMICOABLT devices for MSMCOBALT.

Change-Id: Ic896d7faea6405f260117fdd7ec84a88b3c74aac
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-03-23 21:24:32 -07:00
Nicholas Troast
7273d3ab9d ARM: dts: msm: add SPMI PMIC arbiter device for MSMCOBALT
Configure the SPMI PMIC arbiter device for MSMCOBALT.

Change-Id: I6ce0e9724acff8309e0f518a243b3e2b25c80bcf
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-03-23 21:24:31 -07:00
Junjie Wu
0ea6cc5218 tracing: power: Add trace events for core control
Add trace events for core control module.

Change-Id: I36da5381709f81ef1ba82025cd9cf8610edef3fc
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
2016-03-23 21:24:30 -07:00
David Keitel
4425c47db6 soc: qcom: pil-msa: add arch_setup_dma_ops call
Make sure that DMA ops are initialized before attempting to allocate
the MBA buffer.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:30 -07:00
David Keitel
1ad793626b defconfig: remove manually added CRYPTO defconfig options
These are selected by other options already.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:29 -07:00
David Keitel
7da84b3c55 defconfig: enable FW_LOADER_USER_HELPER_FALLBACK for msm and msmcortex
To allow fallback to user helper firmware loading when direct firmware
loading fails.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:28 -07:00
Venkat Gopalakrishnan
4ef8ad6e6c ARM: dts: qcom: update ufs driver compatible for msmcobalt
Use the upstream naming convention and update the ufs driver
compatible string.

Change-Id: Iee4d316c99d0d47537514a93ad91e14630970712
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-03-23 21:24:27 -07:00
David Keitel
286601f9a2 firmware_class: fix direct firmware loading API support
The direct firmware class API support original relied
on the destination address to determine which file operations
to link to the data binary file. Since the 4.4 kernel version,
this was changed to an attribute group.

Fix this by adding a direct firmware API attribute group and
appropriately assign it when necessary.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:26 -07:00
Jordan Crouse
881d8ec58a sync: oneshot_sync: Add oneshot_sync driver
Add the oneshot_sync driver as of msm-3.18 commit
7892968f (sync: oneshot_sync: Update oneshot_sync for new sync APIs).

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-03-23 21:24:25 -07:00
David Keitel
39d07c3f5e defconfig: enable PIL, SYSMON and SSR for msmcortex
This enables the sysmon, subsystem restart and PIL drivers for
msmcortex.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:25 -07:00
David Keitel
5a31ac2a3e defconfig: enable SYSMON_GLINK
This enables the SYSMON GLINK driver for msm targets.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:24 -07:00
David Keitel
4d12cd6ee1 soc: qcom: add snapshot of sysmon-glink driver
This is a snapshot of the sysmon glink library as of
msm-3.18 commit
	d5809484
	(Merge "msm: ipa: fix race condition when teardown pipe")

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-23 21:24:23 -07:00
Jeevan Shriram
48d195bfd6 sched: remove init_new_task_load from CONFIG_SMP
Move init_new_task_load function from CONFIG_SMP to avoid
linking error for ARCH=um

Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 21:24:22 -07:00
Jeevan Shriram
643a137249 net: initialize variables to avoid UML compilation failure
While compiling for usermode linux for x86 architecture, observed
compilation issues with probable usage of uninitialized variables.
This change initializes the variables.

Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-03-23 21:24:21 -07:00
Gilad Broner
28e3a4040e selinux: removed redundant headers from objsec.h
flask.h was included in the above file. This is autogenerated header
which gets produced during compilation of selinux. This causes issues
for other module (PFK) which includes objsec.h and compiles after
selinux. Since removal of the above headers does not break compilation,
they seem to be redundant and can be removed.

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
2016-03-23 21:24:20 -07:00
Andrey Markovytch
eca2a5ea72 defconfig: msm: set SELinux as default security module
SELinux has to be the default security module for 'flask.h'
to be generated and compilation error to be resolved.

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-03-23 21:24:19 -07:00
Gilad Broner
1a40590860 defconfig: msm: enable Inline Crypto Module (ICE) for UFS
Enable ICE driver for UFS storage encryption support

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
2016-03-23 21:24:19 -07:00
Gilad Broner
137bd5a4c4 defconfig: msm: enable dm-req-crypt
Enable dm-req-crypt to support full disk encryption (FDE).

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
2016-03-23 21:24:18 -07:00
Andrey Markovytch
641612595c defconfig: msm: enable Per-File-Key (PFK)
Enable PFK for file based encryption support.

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
2016-03-23 21:24:17 -07:00
Gilad Broner
1751e821a5 defconfig: msm: enable eCryptFS
Enable eCryptFS to support file based encryption.

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
2016-03-23 21:24:16 -07:00