Commit graph

857,049 commits

Author SHA1 Message Date
Tingwei Zhang
777bece578 soc: qcom: dcc: Support new DCC HW feature
Add support to new register memory map, fix loop offset and
dynamic number of link list.

Change-Id: Ibadfa723842dae80cdd50bf08018d86c2ef30b94
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-09-03 13:37:01 +08:00
Tingwei Zhang
de99f57c32 soc: qcom: Add snapshot of the dcc v2 driver
Add dcc v2 driver from msm-4.19 commit 034b7f3bfb2c
("msm: cvp: Fix page fault when open 16 cvp sessions").

Change-Id: I7245ddc7cde3a4156d184c8b834bf17416bd4584
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-09-03 11:51:57 +08:00
Tingwei Zhang
9e5b22573f dt-bindings: Add dt bindings head file for dcc
Add dt binding head file for dcc driver. It's used by device tree
to define dcc link list.

Change-Id: Iacbfeeb2cf2763608f075f2828a8d47d662fa88f
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-09-03 11:49:38 +08:00
Tingwei Zhang
8aad5e04ed soc: qcom: Add snapshot of the memory dump v2 driver
Add memory dump v2 driver from msm-4.19
commit 034b7f3bfb2c ("msm: cvp: Fix page fault when open 16 cvp sessions").
Remove dmac_flush_range since it's deprecated.

Change-Id: Ibcc42c0d737abbb304a222ac51cfdd94019af534
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-09-02 17:28:52 +08:00
qctecmdr
961790582c Merge "drivers: qcom: cmd-db: Report if command DB is initialized as standalone" 2019-08-27 16:12:16 -07:00
qctecmdr
630f98433d Merge "trace: rtb: add msm_rtb tracing" 2019-08-26 12:24:53 -07:00
Yuanyuan Liu
60450b0d00 net: cnss_prealloc: Add snapshot of cnss_prealloc driver
This is a snapshot of cnss_prealloc driver and associated files as of
msm-4.19 commit 94d53f998edd
("cnss_prealloc: Update prealloc memory table").

Change-Id: Ic6e853bf651e2a0e2b672bc68d42929c3b55ef93
CRs-Fixed: 2500800
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-08-22 09:23:14 -07:00
qctecmdr
b75bba1a68 Merge "defconfig: Enable fastmap on Lahaina" 2019-08-21 18:18:20 -07:00
qctecmdr
178b046932 Merge "net: cnss_genl: Add snapshot of cnss_genl driver" 2019-08-21 18:18:20 -07:00
Isaac J. Manjarres
b13ee6cd5c defconfig: Enable fastmap on Lahaina
Enable the fast IOMMU DMA mapping facilities on Lahaina.

Change-Id: Iaf94518581585d83bb731452183f45a320898b56
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-20 17:12:45 -07:00
qctecmdr
ee24c7758f Merge "iommu: io-pgtable-fast: Use the DMA APIs for cache cleaning" 2019-08-20 16:33:28 -07:00
qctecmdr
3cd94d01cd Merge "defconfig: Enable the MSM ION heaps on Lahaina" 2019-08-20 15:59:59 -07:00
qctecmdr
eba5c99bf6 Merge "staging: android: ion: Do not assign heap IDs as heaps register" 2019-08-20 15:14:38 -07:00
qctecmdr
d5d931862a Merge "Revert "staging: android: ion: Remove file ion_carveout_heap.c"" 2019-08-20 14:11:32 -07:00
qctecmdr
1916b8dca0 Merge "arm64: defconfig: Enable SMP2P Sleepstate on Lahaina" 2019-08-20 13:36:20 -07:00
qctecmdr
dbac3d3368 Merge "arm64: defconfig: Enable MSM QMP driver for Lahaina" 2019-08-20 12:56:00 -07:00
qctecmdr
d0613fdf8d Merge "arm64: defconfig: Enable IPC logging driver on Lahaina" 2019-08-20 12:18:50 -07:00
Yuanyuan Liu
ffd8d0df6c net: cnss_genl: Add snapshot of cnss_genl driver
This is a snapshot of cnss_genl driver and associated files as of
msm-4.19 commit 2a93006b9f9f
("net: cnss_genl: Add snapshot of cnss_genl driver").

Change-Id: I86a557ce898ecb746c8e0afc70a1908415fc2e87
CRs-Fixed: 2500800
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-08-20 11:35:49 -07:00
qctecmdr
2f4e024c0e Merge "soc: qcom: Add snapshot of SSR, PIL, Sysmon, and PDR drivers" 2019-08-20 11:28:11 -07:00
qctecmdr
9cf31bfd9b Merge "net: cnss_utils: Add snapshot of cnss_utils driver" 2019-08-19 22:28:04 -07:00
Arun Kumar Neelakantam
2de05ba6fb soc: qcom: qmi_interface: Abort pending transaction
In some cases like SSR, qmi clients are releasing handles without
considering the waiting transactions which results in use after free
of qmi handles after the transaction wait time completes.

Abort the pending transaction during qmi_handle_release to avoid the
use after free.

CRs-Fixed: 2328443
Change-Id: I59e19222b2b9a8ace3d37b4a70ea891ff88db07e
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2019-08-19 18:30:46 -07:00
Chris Lew
1a3a9c9cad soc: qcom: qmi_interface: Add default send timeout
Add a default send timeout for kernel qmi sockets. If a remote proc
crashes, there is a chance that the before shutdown cleanup will try
to send messages to the remote processor. When enough messages are
sent to a single port, the qrtr flow control will kick in and the QMI
socket will block indefinitly. Set the timeout to 10 seconds which
should be long enough to not affect normal functionality.

Change-Id: Ie12dd163a0c4ac1a3dc037e5a29e39395c3cc948
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:30:34 -07:00
Chris Lew
08740902ab soc: qcom: qmi_interface: Do not print error for 0 pkt
Add a check for the zero size flow control packet when handling data
from the socket. This packet is expected and should not be printed as
an error.

Change-Id: I74a9edf752cb5f186ef133ae9d8b12cc93ee1b18
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:30:17 -07:00
Chris Lew
68abb34ed2 arm64: defconfig: Enable SMP2P Sleepstate on Lahaina
Enable the SMP2P sleepstate driver to deliver power state changes
to remote processors like slpi.

Change-Id: I9fe755d2462b7a593e5cbffacd6b466cb21d9f15
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:21:56 -07:00
Chris Lew
b5ada96b10 arm64: defconfig: Enable MSM QMP driver for Lahaina
Enable the MSM QMP driver to communicate with the AOP processor.

Change-Id: I28b6feb5f774e73076893dd7f868d0f806a31f19
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:21:56 -07:00
Chris Lew
45eec0295c arm64: defconfig: Enable QMP DEBUGFS driver on Lahaina
Enable the QMP Client debugfs driver to enable a debugfs node to send
messages to AOP through shell.

Change-Id: I4290469c05e4dd93c1c8931b4b1d29c60134982c
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:21:56 -07:00
Chris Lew
90dc665a17 arm64: defconfig: Enable SMP2P and dependencies on Lahaina
Enable the HWSPINLOCK, SMEM, SMP2P and SMSM drivers to enable point to
point communication over SMEM with remote processors.

Change-Id: Ia1a648e837542fd09e726b393895e3129d857da9
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:21:56 -07:00
Chris Lew
d6df1ff9bc arm64: defconfig: Enable IPC logging driver on Lahaina
Enable the IPC Logging driver to enable clients to write debug logs
into a circular buffer that can be read from debugfs.

IPC Logging is debug feature and should only be enabled on debug level
configurations.

Change-Id: Idb5977c142d6b0a88e83e975a0ba85aa3d1c55d2
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 18:21:48 -07:00
Chris Lew
51669ff07f soc: qcom: Add snapshot of smp2p sleepstate driver
This snapshot is taken as of msm-4.19 'commit <dac6e981b55e>
("Merge "icnss: Skip removing WLAN host driver during recovery"")'.

In addition, replace wakeup_source_trash since API is deprecated.

Change-Id: I0bd88adc9a8e604300b610d7f24dae6cd4e57281
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 14:57:57 -07:00
Jordan Crouse
a221c54d72 soc: qcom: smp2p: Fix two warnings
drivers/soc/qcom/smp2p.c: In function 'qcom_smp2p_do_ssr_ack':
 drivers/soc/qcom/smp2p.c:214:2: error:
   suggest parentheses around assignment used as truth
   value [-Werror=parentheses]

 drivers/soc/qcom/smp2p.c: In function 'qcom_smp2p_notify_in':
 drivers/soc/qcom/smp2p.c:176:23: error:
   format '%x' expects argument of type 'unsigned int', but argument 6
   has type 'long unsigned int' [-Werror=format=]
 drivers/soc/qcom/smp2p.c:281:3: note: in expansion of macro 'SMP2P_INFO'.

Fixes: 322d40176558 ("soc: qcom: smp2p: Add snapshot of smp2p driver")
Change-Id: Ic0dedbadbe4e61dd53e7bb22c54c2eb2ca94eb48
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2019-08-19 14:56:38 -07:00
Chris Lew
11a1ec6583 soc: qcom: smp2p: Prevent suspend for threaded irq
Add primary IRQ handler that takes a wake source to prevent suspend
while the threaded irq is scheduled and run.

Change-Id: I7ea253320251dc721eea0da5028b69b7ebefdac1
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 14:56:22 -07:00
Chris Lew
e1f0b9a878 soc: qcom: smp2p: Add enable_irq_wake to SMP2P IRQ
SMP2P interrupts are expected to wake the processor from suspend.
Do not use the IRQF_NO_SUSPEND flag to handle during suspend path.
Instead rely on the suspend framework to resume and re-trigger the
threaded interrupt.

Change-Id: I22470f7076e71e73f3c7b345ad7e0a5de420225c
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 14:55:42 -07:00
Arun Kumar Neelakantam
3e57835f86 soc: qcom: smp2p: Add logs in smp2p_update_bits
Add debug logs when client modify the smp2p entry.

Change-Id: I777e6496dc9042d1bfd8fbe31210880b15aa1c30
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2019-08-19 14:48:38 -07:00
Chris Lew
0c54c1c555 soc: qcom: smp2p: Add IPC logging support
Add IPC logs to track bit state entries. These logs will help detect
issues in remote processor bootup.

Change-Id: I31a549532122e0ad7e4c9da454ee65c7b48fdd1d
Signed-off-by: Chris Lew <clew@codeaurora.org>
2019-08-19 13:51:30 -07:00
Isaac J. Manjarres
a3d33fec73 defconfig: Enable the MSM ION heaps on Lahaina
Enable the MSM ION heaps to allow allocations from
these heaps through ION.

Change-Id: Ib62d8124d27dcf6dd0a357eb0e36fef5af1138f6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-19 11:25:10 -07:00
Isaac J. Manjarres
b0cbb06dd1 staging: android: ion: Use the MSM dmabuf ops when possible
Use the MSM dmabuf operations for cache maintenance on ION
buffers if they are present. Otherwise, fallback to the
default ION dmabuf operations.

Change-Id: I56e7eabb2614a958aca11c9c1fa4ecd5415ce96a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-19 11:25:10 -07:00
Isaac J. Manjarres
a876bf5eca staging: android: ion: Do not assign heap IDs as heaps register
Some implementations of ION have predetermined heap IDs,
and as such, do not support dynamically assigned heap IDs.
Thus, do not assign heap IDs when the heaps register, so
as to respect their predetermined heap IDs.

Change-Id: I73fa688577da2a249cbe9b405356fc7cf5cb165a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-19 11:25:09 -07:00
Isaac J. Manjarres
52ad4bf5a2 Revert "staging: android: ion: Remove file ion_carveout_heap.c"
This reverts commit eadbf7a34e.
This commit needs to be reverted, as we still have clients that
utilize the carveout heap.

Change-Id: Ib99875dc089a4ed04216c8c756d17858b379e012
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-19 11:25:09 -07:00
Isaac J. Manjarres
fe5698e796 ion: Merge all ION related changes from msm-4.19 to msm-lahaina
Merge all changes that deal with the ION memory manager from
msm-4.19 to msm-lahaina as of commit:

9dd0018410fe: Merge "clk: qcom: npucc-kona: Enable safe config and
HW_CTL for all RCGs".

Change-Id: I0c362ff9e6938883535467f0809ee360a733638e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-19 11:25:09 -07:00
Yuanyuan Liu
10fa3755a3 net: cnss_utils: Add snapshot of cnss_utils driver
This is a snapshot of cnss_utils driver and associated files as of
msm-4.19 commit 6cc9b3862ef5
("net: cnss_utils: Add snapshot of cnss_utils driver").

Change Kconfig from bool to tristate to support building as a module.

Change-Id: Ib1caee8efcd19055e6a27bad3996349510d0022d
CRs-Fixed: 2500800
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-08-19 09:57:18 -07:00
qctecmdr
240c5b216d Merge "drivers: qcom: cmd-db: modularize commandDB driver" 2019-08-17 00:21:04 -07:00
qctecmdr
4b77f4ea75 Merge "soc: qcom: smp2p: Add restart ack feature" 2019-08-16 20:57:00 -07:00
qctecmdr
8071ebfc9b Merge "soc: qcom: smp2p: Introduce pending state for virtual irq" 2019-08-16 20:10:02 -07:00
qctecmdr
f112feeca1 Merge "drivers: irqchip: enable PDC irqchip for QCOM Lahaina SoC" 2019-08-16 19:30:18 -07:00
qctecmdr
2d6d5ac694 Merge "drivers: mailbox: fix race resulting in multiple message submission" 2019-08-16 18:44:14 -07:00
qctecmdr
ae9df9d25f Merge "spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only" 2019-08-16 17:57:08 -07:00
qctecmdr
3e240d6d99 Merge "qcom: soc: minidump: Add snapshot of minidump.h" 2019-08-16 17:11:45 -07:00
qctecmdr
f02ce0db35 Merge "net: cnss2: Add snapshot of CNSS2 driver" 2019-08-16 17:11:44 -07:00
qctecmdr
c1485c8e36 Merge "arm64: defconfig: Enable CONFIG_SPARSEMEM_VMEMMAP on Lahaina" 2019-08-16 16:09:54 -07:00
qctecmdr
be3adab10a Merge "coresight: add node to reset all coresight devices" 2019-08-16 16:09:53 -07:00