Commit graph

858,523 commits

Author SHA1 Message Date
qctecmdr
16ee17d4b6 Merge "regulator: add rpmh-regulator driver" 2019-10-01 23:35:15 -07:00
qctecmdr
5426c7c971 Merge "arm64: defconfig: Enable SSR, PIL, Sysmon, and PDR drivers" 2019-10-01 20:50:25 -07:00
qctecmdr
557352c895 Merge "drivers: qcom: rpmh-rsc: add IPC logging support for RSC driver" 2019-10-01 20:02:43 -07:00
qctecmdr
5c4d2e8fa3 Merge "drivers: clksource: add API to return cval" 2019-10-01 19:17:25 -07:00
qctecmdr
a49a3b4be7 Merge "soc: qcom: rpmh: Fix sending incorrect data during rpmh flush" 2019-10-01 19:17:25 -07:00
qctecmdr
97b5ab5509 Merge "iommu/arm-smmu: Fix SMMU derivation in arm_smmu_power_off_atomic" 2019-10-01 18:44:28 -07:00
qctecmdr
91dda46f8b Merge "iommu: iommu-debug: Add support for page table dump" 2019-10-01 18:08:24 -07:00
qctecmdr
bb93ad4d2b Merge "soc: qcom: Fix printk format warnings from subsystem restart" 2019-10-01 17:32:42 -07:00
qctecmdr
ecc7656ce7 Merge "msm: ipa4: Fix to add wake up handle for coalescing pipe" 2019-10-01 17:32:41 -07:00
qctecmdr
6484f51a25 Merge "of: reserved_mem: add missing of_node_put() for proper ref-counting" 2019-10-01 16:53:22 -07:00
qctecmdr
811cdc9fa1 Merge "iommu: iommu-debug: select IOMMU_DEBUGFS for iommu tests" 2019-10-01 16:53:21 -07:00
qctecmdr
bdb2791054 Merge "dt-bindings: regulator: rpmh-regulator: add new intermediate voltage levels" 2019-10-01 16:14:30 -07:00
qctecmdr
c58400efd6 Merge "dt-binding: regulator: rpmh-regulator: define RPMh sets and regulator modes" 2019-10-01 15:38:30 -07:00
qctecmdr
1dbe00d010 Merge "msm: kgsl: Add the kgsl uapi header file" 2019-10-01 14:23:21 -07:00
Lina Iyer
72ec76f95c drivers: qcom: rpmh-rsc: add IPC logging support for RSC driver
In addition to logging using FTRACE. let's also log in the IPC logging
for all RPMH transactions.

Change-Id: I2b19006bbc776053f63eee55b447428fdb023ba4
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-10-01 18:00:44 +05:30
Lina Iyer
7aa301db5b soc: qcom: rpmh-rsc: log interrupt status when TCS is busy
To debug issues when TCS is busy, report interrupt status as well. If
the interrupt line is pending at GIC, then Linux was too busy to process
the interrupt and if not pending then AOSS was too busy to handle the
request.

Change-Id: I8fd8289c74a8e1d6c771b77c2800a52f18c3a0b2
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-10-01 18:00:44 +05:30
Lina Iyer
d1c7802611 soc: qcom: rpmh: Fix sending incorrect data during rpmh flush
During flush of current cached data, Sleep and Wake TCSes have
previously programmed data present. Due to this incorrect data
is sent.

Fix this by cleaning TCSes and freshly program current cached
sleep and wake data.

Change-Id: I8f1cb9925a7800aad65d665192d3b129c76dd9de
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-10-01 18:00:35 +05:30
Channagoud Kadabi
8790fa13c4 drivers: clksource: add API to return cval
Sleep driver needs to program the absolute clock value for next expiry
into pdc register for system wake up. Add an API to read the cval low
and high counters.

Change-Id: I3f08b3320ea281894d46f3c4bb0862784cc337a1
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-10-01 17:56:44 +05:30
Ashok Vuyyuru
6f2b5a7729 msm: ipa4: Fix to add wake up handle for coalescing pipe
Changes to add wake up handle for coalescing pipe.

Change-Id: I0cfc38c91a6a5b93211933f0af87640cbec8a4bf
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2019-10-01 00:08:58 -07:00
Prakash Gupta
c1c73311c3 iommu: iommu-debug: Add support for page table dump
Add support for page table dump for test domain.

eg:
cd /d/iommu/tests/soc:apps_iommu_test_device
echo 1 > attach
echo 0x20000,0x80000000,0x10000,0x1 > map
echo 0x21000,0x1000 > unmap
echo 0x24000,0x1000 > unmap
cat iommu_page_tables

---[ start ]---
0x0000000000020000-0x0000000000021000 4K PTE USR ro x AF NG DEVICE/nGnRnE
0x0000000000022000-0x0000000000024000 8K PTE USR ro x AF NG DEVICE/nGnRnE
0x0000000000025000-0x0000000000030000 44K PTE USR ro x AF NG DEVICE/nGnRnE

Change-Id: I56ac2615c4aa30dd75a2cdc1cf46de042e681cdc
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
[isaacm@codeaurora.org: Explicitly set final entry in the markers array]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-09-30 16:38:43 -07:00
Sudarshan Rajagopalan
4439f330f7 dma-mapping-fast: add support for atomic fastmap allocations
Support for coherent and non-coherent atomic allocations
in fastmap.

Change-Id: I3628508a4b2af5aa82d56a4a6a6ee4cef98cd47f
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
[isaacm@codeaurora.org: Leverage atomic DMA pool framework code]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-09-30 14:02:39 -07:00
Chris Goldsworthy
bda68082e0 defconfig: enable reserved memory check on Lahaina
Enable a check to see if devices with reserved memory regions allocate from
those regions, when using the DMA API for allocations.  WARN_ON if check
doesn't pass.

Change-Id: Ic788dc4638d83cdf8a1e34f60efe678b9639d4b3
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2019-09-27 11:06:48 -07:00
Chris Goldsworthy
d9c9998b16 of: reserved_mem: Check that memory reserved in device tree is in use
Inside of dma_alloc_attrs(), verify that devices with a reserved memory
region are actually using the region, in order to prevent wastage of
memory.

Change-Id: I56852a761d3253ec2a3a7db0f6501c73983e55c6
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2019-09-27 10:25:31 -07:00
qctecmdr
b94e0753f5 Merge "ion: remove cpu binding of pool refill kthreads" 2019-09-26 18:19:14 -07:00
qctecmdr
50d99abda8 Merge "soc: qcom: qmi_interface: Remove ineffective mutex lock from txn struct" 2019-09-26 17:45:36 -07:00
qctecmdr
af0b277dbf Merge "soc: qcom: qmi_interface: Add send timeout helper" 2019-09-26 17:08:56 -07:00
qctecmdr
270e085d20 Merge "soc: qcom: qmi: Remove txn idr entry in qmi handle release" 2019-09-26 16:36:26 -07:00
qctecmdr
7eb503f63d Merge "msm: ipa: add the version check for FnR stats ioctl" 2019-09-26 15:47:34 -07:00
qctecmdr
049152c66e Merge "soc: qcom: qmi_interface: sync release and data_ready callback" 2019-09-26 15:11:14 -07:00
Bojun Pan
a7cdc47c78 msm: ipa: add the version check for FnR stats ioctl
Add version check for FnR stats ioctl and error return,
since only IPA4.5+ HW will support this feature.

Change-Id: If5c5021d16bc1ee6af516d9e2200c3e6b5081d27
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-09-26 14:21:53 -07:00
qctecmdr
872e13b08b Merge "ipa3: add hasting AP+STA quota/stats support" 2019-09-26 13:41:31 -07:00
Harshdeep Dhatt
c3f8417829 msm: kgsl: Add the kgsl uapi header file
Add the UAPI header file for the KGSL Adreno GPU driver.

Change-Id: I7de3f8d2bcb39cefb26cd0720388108578d158e4
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2019-09-26 14:34:45 -06:00
qctecmdr
14b5a2da73 Merge "ion: msm: Correct memory-region of_node reference counting" 2019-09-26 11:14:33 -07:00
Skylar Chang
566b07e021 ipa3: add hasting AP+STA quota/stats support
Add uc event ring to have ipa-uc monitor the
quota and bw-voting threshold to generate the
irq to ipa-driver to inform if quota or and bw
threshold is hit.

Change-Id: I7ce9c1a0048016fc6b6248a1632365f51717422c
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2019-09-26 10:55:19 -07:00
qctecmdr
1aea860783 Merge "Revert "staging: android: ion: Use the MSM dmabuf ops when possible"" 2019-09-26 10:38:24 -07:00
qctecmdr
4f857060ef Merge "ion: msm: Update the heap IDs as per the ION core standards" 2019-09-26 10:03:02 -07:00
qctecmdr
306f178df8 Merge "msm: ipa3: remove ipa3_ctx access from wan driver and qmi service" 2019-09-26 09:16:12 -07:00
qctecmdr
f2b18e2809 Merge "include: dt-bindings: ion: Add header for the MSM ION heap IDs" 2019-09-26 08:47:42 -07:00
qctecmdr
af4a510da5 Merge "ion: msm: Define heap IDs as constants in their own file" 2019-09-26 08:08:29 -07:00
Isaac J. Manjarres
5a61571110 iommu/arm-smmu: Fix SMMU derivation in arm_smmu_power_off_atomic
The arm_smmu_power_off_atomic() function derives the pointer to
the SMMU device by incorrectly assuming that all devices in the
power resources structures store that pointer as part of their
driver data.

While this is true for devices that represent an SMMU, this is
not the case for the devices that represent the TBUs, as they
store the TBU structures instead of a pointer to the SMMU device.
Thus, require the SMMU device as a parameter to the
arm_smmu_power_off[_atomic] functions so that it can be used
correctly.

Change-Id: I0101500468afe17456bd6178082850e5fa6590d7
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-09-25 22:48:31 -07:00
Chris Goldsworthy
79c240605e of: reserved_mem: add missing of_node_put() for proper ref-counting
Commit d698a38814 ("of: reserved-memory: ignore disabled memory-region
nodes") added an early return in of_reserved_mem_device_init_by_idx(), but
didn't call of_node_put() on a device_node whose ref-count was incremented
in the call to of_parse_phandle() preceding the early exit.

Fixes: d698a38814 ("of: reserved-memory: ignore disabled memory-region nodes")
Change-Id: I293be0fb7f86a1e6e4d4d7277039a881e590d5e0
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
2019-09-25 14:10:42 -07:00
qctecmdr
95a9b89382 Merge "clk: qcom: clk-alpha-pll: Add support for controlling Lucid5lpe PLLs" 2019-09-25 08:02:45 -07:00
qctecmdr
a178938446 Merge "drivers: irqchip: add PDC irqdomain for wakeup capable GPIOs" 2019-09-25 08:02:45 -07:00
Michael Adisumarta
75cf0024f4 msm: ipa3: remove ipa3_ctx access from wan driver and qmi service
Access ipa3_ctx through ipa_utils.c instead of direct access
which is prohibited.

Change-Id: I1682037cf845d3d8553966551410ff5e8a833f84
Acked-by: Suhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-09-25 01:25:46 -07:00
Michael Adisumarta
8386504ae8 msm: ipa: add additional checks to prevent use-after free errors
Adding a function to check for dangling pointer using IPA IDR structure
to avoid use after free error.

Change-Id: I0bd3d733bf10403366abc643f89c3e5c5e6228e9
Acked-by: Suhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-09-24 16:36:17 -07:00
Arun Kumar Neelakantam
3bf90d6d26 soc: qcom: qmi_interface: Remove ineffective mutex lock from txn struct
The same QMI transaction data is synchronized using two mutex locks.

Remove ineffective transaction mutex lock because it is always
covered by QMI txn_lock with same purpose.

CRs-Fixed: 2470638
Change-Id: If53e006436c77d572b2d69507e1593e3d57e1cd4
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2019-09-24 16:36:04 -07:00
Arun Kumar Neelakantam
4cdda05e9d soc: qcom: qmi_interface: Release mutex lock before return
Mutex lock not released before function return in failure case.

Add mutex unlock in failure case.

CRs-Fixed: 2463072
Change-Id: I68b23364e8cb1001c0a65b1b831fd3b68894e1a9
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2019-09-24 16:36:01 -07:00
Chris Lew
e62317caca soc: qcom: qmi_interface: Add send timeout helper
Add an api for clients to set the send timeout of the underlying qrtr
socket. QMI sets this timeout to 10 seconds by default but this is too
long for some clients in critical paths.

Change-Id: I4c892a2f034c87b6bf2f71664369140910e72383
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-09-24 16:35:37 -07:00
Arun Kumar Neelakantam
0aa2d8ef9b soc: qcom: qmi_interface: Fix race between net_reset and release
qmi client calling qmi_handle_release while handling net_reset cause
NULL pointer access.

Synchronize the net_reset handling with qmi_handle_release to avoid
memory leak and invalid pointer access.

CRs-Fixed: 2383987
Change-Id: I8179f96e5dfabe945b1a37f83530bc3b05ed746a
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2019-09-24 16:08:01 -07:00
Deepak Kumar Singh
780b9bb5d5 soc: qcom: qmi: Remove txn idr entry in qmi handle release
txn idr entry contains local pointer, which can go out of context
if the calling function exits. Qmi handle can be released from other
thread context(SSR), where iterating over pending transactions list
if txn idr entry is not removed it results in crash in next iteration
as the previous txn idr entry is not valid.

CR-Fixed: 2373541
Change-Id: I0c96a575fb198115532de9977095f2c056742b33
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2019-09-24 16:07:53 -07:00