Commit graph

874,544 commits

Author SHA1 Message Date
qctecmdr
0fa15b97cc Merge "iommu/arm-smmu: Fix atomic domain handling" 2019-11-20 21:55:22 -08:00
qctecmdr
067f101702 Merge "soc: qcom: qsee_ipc_irq_bridge: Use __poll_t for qiib_poll" 2019-11-20 15:58:35 -08:00
qctecmdr
158fc52b71 Merge "arm64: defconfig: Enable the ARM SMMU module on Lahaina" 2019-11-20 15:58:34 -08:00
qctecmdr
f6203b6327 Merge "techpack: Replace xtype with type while searching for sub-dirs" 2019-11-20 15:58:34 -08:00
qctecmdr
fa519ac504 Merge "msm: ipa: Update WDI3.0 specific GSI interface for Lahaina" 2019-11-20 15:58:34 -08:00
qctecmdr
8e5fd2b3f0 Merge "interconnect: Move Lahaina interconnect driver to core_initcall" 2019-11-20 15:58:33 -08:00
qctecmdr
bcea21bdd1 Merge "soc: qcom: Migrate SCM calls in jtagv8" 2019-11-20 15:58:33 -08:00
qctecmdr
ae3eacab9f Merge "usb: phy: Remove unused register offsets" 2019-11-20 12:53:48 -08:00
qctecmdr
4f35bba296 Merge "msm: ipa: Bus Scaling/Interconnect Migration" 2019-11-20 12:13:55 -08:00
Siddharth Gupta
44992a2dfa soc: qcom: Migrate SCM calls in jtagv8
Adding API to upstream driver to get JTAG ETM feat id.
Migrating SCM calls used in the JTAG driver.

Change-Id: I60cd57d5c6aae62ec089e960b55ac221f0474f64
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
5d6607bbfc crypto: ice: Migrate SCM calls
Migrating all SCM calls made to the old driver to now be made
through the backported upstream driver.

Change-Id: Ic77d315c5a55859f0cc58d7bbf05c0c24d1ef155
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
050d2dca67 iommu/arm-smmu: Migrate SCM IO calls in arm-smmu
Migrate SCM IO read calls in the smmu driver to use new SCM driver.
Add support for io-pgtable-msm-secure map and unmap in SCM driver.

Change-Id: If1ce054b9cfcfdcdab3aecc6752fcd4765197a05
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
e061e5f060 soc: qcom: Migrate SCM calls in core hang
Migrate SCM io_read/write to upstream API in core hang detection.

Change-Id: If720dcd0f9a5341276fcd2a052c8ab6cf238aaa5
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
f3261f7069 msm: kgsl: Migrate SCM calls in adreno
- Migrate iommu_sync scm call to firmware/qcom_scm driver.
- Migrate a5xx_microcode_load to use qcom_scm_set_remote_state.

Change-Id: I05911ac6cf9366b4bff5ee02e6832b8728d1d35e
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
f1624c54ae soc: qcom: Migrate SCM call to disable watchdog
Add support for SCM call to deactivate secure watchdog on Qualcomm
devices.

Change-Id: I4008792e45d2c264b98ca954ea37a94093ea771e
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
bbf72fdcb6 firmware: qcom_scm: Use qtee_shmbridge if available
Secure world imposed that buffer exchanges between secure and non-secure
worlds be allocated from qtee_shmbridge, so add a function to allocate
buffer space using shmbridge for extra arguments. Change helps in
dealing with early scm calls when the driver is not initialized.

Change-Id: I270b4aef9d33ec6d7ea0897ddcc0944ac9e1833f
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
4d0fbd6baf firmware: qcom_scm: Merge qtee_shmbridge and qcom_scm
Merge qtee_shmbridge and qcom_scm drivers into a single compilation unit.

Change-Id: Icfbf7c335fc8d9468236cdc08dfda52fa563be40
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
29f1d94ad1 firmware: qcom_scm: Rename -64 -> -smc, remove -32
- Rename qcom_scm-64.c to qcom_scm-smc as it supports SMC-based calling
  conventions for 32 and 64-bit targets
- Remove qcom_scm-32.c as it has been superceded by qcom_scm-smc.c
- Update Kconfig to select QCOM_SCM_TRANSPORT_SMC on ARM and ARM64
  targets

Change-Id: Iae94a73e0c7cefb9a253230212d01f6126cd0c15
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Bojun Pan
826473f5e9 msm: ipa: Update WDI3.0 specific GSI interface for Lahaina
Update the GSI register fields to handle the latest
WDI3.0 changes.

Change-Id: I10c2f1280a1f5b9e79a339f4989a2fb41fe07b6e
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-11-19 20:51:00 -08:00
qctecmdr
2e0893d913 Merge "soc: qcom: Add Kconfig dependency for SENSORS_SSC" 2019-11-19 16:50:03 -08:00
Isaac J. Manjarres
3f411d46fb arm64: defconfig: Enable the ARM SMMU module on Lahaina
Enable the ARM SMMU driver as a module for Lahaina GKI.

Change-Id: I217b0fc81c78331fc2a710546eaa1d3e79a59917
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:33:36 -08:00
Isaac J. Manjarres
207d91c187 iommu/arm-smmu: Allow the ARM-SMMU driver to be a module
Allow the ARM SMMU driver to be compiled as a loadable
kernel module.

Change-Id: Ib982ddb7f8ed82c5f7983db8b85bb2c6c83502c6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:33:35 -08:00
Isaac J. Manjarres
871061b2ea Revert "iommu/arm-smmu: Make arm-smmu explicitly non-modular"
This reverts commit addb672f20.

Change-Id: I2e9dc3c90c7821fc378afee3cb83bfce66c9d14c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:32:52 -08:00
Isaac J. Manjarres
f785b675ce iommu/arm-smmu: Fix atomic domain handling
Query if a domain is atomic or not after initializing the
domain, as opposed to before, when the domain properties
have not been finalized.

Change-Id: Ib2f05156268a16cccb410e263de957d9eb2070ae
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:30:32 -08:00
Isaac J. Manjarres
2b275308a1 iommu/arm-smmu: Use a bitmap for the SMMU domain attributes
Use a bitmap to maintain the domain attributes for SMMU domains.
This simplifies the handling for the domain attributes, as it
removes the need to explicitly manipulate the bits, which can
be error-prone.

Change-Id: I719900df9d80801239b8e815d29953f3c6d067f0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:30:26 -08:00
qctecmdr
40bc59439e Merge "msm: adsprpc: fix compilation errors in fastrpc driver on lahaina" 2019-11-19 16:10:53 -08:00
Mayank Rana
6699b963bc usb: phy: Remove unused register offsets
Remove unused register offset related enums as those are not used
for configuration within USB PHY driver. This helps to reduce
number of register offset value need to pass from devicetree with
USB QMP PHY device node.

Change-Id: Ia0581c3dc8210bfaac9a7318eb75e1ffa35440b6
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2019-11-19 13:50:28 -08:00
Bruce Levy
836f7ba9cc techpack: Replace xtype with type while searching for sub-dirs
Some build environments do not support -xtype. Therefore
use -type instead.

Change-Id: I459bdd9e16dc31ea0b91d5f0cb86d4dabb1e3352
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2019-11-19 11:52:49 -08:00
Isaac J. Manjarres
2981d63a6b iommu/arm-smmu: Remove legacy bindings bus initialization initcall
No currently supported targets utilize the deprecated mmu-masters
bindings, which results in the legacy bindings initcall being a
no-op. Thus, remove the initcall to the legacy bindings routine
for now, until this can be handled properly.

Change-Id: Ie8b1004914315e757c059f8b8fc2b8713351be16
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 11:45:06 -08:00
Bojun Pan
f7b08d17f7 msm: ipa: replace dma_zalloc_coherent()
dma_zalloc_coherent() is no longer needed and get deprecated as it has
no users because dma_alloc_coherent() already zeroes out memory for us.

Change-Id: Ibd49d7afce8caaa7b2b6aed61884b307674f9a59
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-11-19 10:38:48 -08:00
Jun-Hyung Kwon
22c4526d07 soc: qcom: Add Kconfig dependency for SENSORS_SSC
SENSORS_SSC module is dependent on the SSR subsystem
so, update Kconfig dependency details.

Change-Id: Iaba55723485d038c11931ac8914665af35a26a3e
Signed-off-by: Jun-Hyung Kwon <junhyung@codeaurora.org>
2019-11-19 10:14:09 -08:00
qctecmdr
853c797061 Merge "iommu/arm-smmu: Fix atomic domain attribute check" 2019-11-19 09:21:04 -08:00
qctecmdr
210912b3d0 Merge "clk: qcom: gcc: Fix num_parent count for gcc_usb3 clk init data" 2019-11-19 08:47:09 -08:00
qctecmdr
5c4ea15131 Merge "ASoC: core: add debug log for cpu dais" 2019-11-19 08:12:42 -08:00
Isaac J. Manjarres
f204c082cf iommu/arm-smmu: Remove DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR
DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR is no longer supported,
so remove it.

Change-Id: I91473cb1a03d78cf2cbb82a7f13a4a531f3c7d5b
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-18 23:18:10 -08:00
qctecmdr
127294a128 Merge "ASoC: msm: Add compressed TX and passthrough support" 2019-11-18 21:08:04 -08:00
qctecmdr
9b94944cd7 Merge "firmware: qcom_scm: Support SCM calls before qcom_scm probe" 2019-11-18 20:10:14 -08:00
qctecmdr
87e461a5b0 Merge "firmware: qcom_scm: Enable legacy convention in qcom_scm-64.c" 2019-11-18 19:35:17 -08:00
qctecmdr
6b47d58c25 Merge "firmware: qcom_scm: Merge legacy and SMCCC conventions" 2019-11-18 19:01:22 -08:00
qctecmdr
20b5b6d1ce Merge "firmware: qcom_scm-32: Add device argument to atomic calls" 2019-11-18 18:26:09 -08:00
Edgar Flores
7861f442de msm: adsprpc: fix compilation errors in fastrpc driver on lahaina
Update APIs used in fastrpc driver according to the new function
signatures on the Lahaina branch.

Change-Id: I979e116ab7e7019e4f17e84f1672f6c8bb30e2e8
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2019-11-18 17:58:58 -08:00
qctecmdr
ec7edb6fa6 Merge "firmware: qcom_scm-32: Create common legacy atomic call" 2019-11-18 17:54:15 -08:00
Isaac J. Manjarres
008a22d3e9 iommu/arm-smmu: Fix atomic domain attribute check
When checking if a domain is a atomic or not, the driver code
will take the bitwise AND of the 64-bit domain attributes field
and a bitmask with bit 32 set. This value is then implicitly cast
to an int, which truncates the upper 32 bits--losing the bit
that indicates if the domain is atomic or not--and based on
that int, we determine if the domain is atomic, which will
vacuously be false.

Instead, check if the bitwise AND operation yields a non-zero
value when determining if a domain is atomic or not to prevent
any truncation errors.

Change-Id: I96753035b47b848bc4d1e8029c8f3f46e03f8c67
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: George Shen <sqiao@codeaurora.org>
2019-11-18 17:26:51 -08:00
qctecmdr
76465eebbb Merge "msm: ipa: Added an option to enable NAPI in 11ad" 2019-11-18 15:26:20 -08:00
qctecmdr
fcea949d55 Merge "msm: ipa3: Fix to memory allocation failure" 2019-11-18 14:51:15 -08:00
qctecmdr
31d355bad1 Merge "msm: ipa: add a thin parsing option for status packets" 2019-11-18 14:16:16 -08:00
qctecmdr
0550e27090 Merge "firmware: qcom_scm-32: Fill SMCCC register in qcom_scm_call" 2019-11-18 13:40:15 -08:00
Amir Levy
207c5a6707 msm: ipa: add a thin parsing option for status packets
In the LAN rx data path the status packet was parsed twice
but in the second time it parsed not all the info was needed.
So we added a function that is tailored for that scenario
to improve performance.

Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Change-Id: I8a1755ba62cee4147941b5949c2b223fe76415b2
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-11-18 14:50:26 +02:00
Amir Levy
b4a0d6f786 msm: ipa: Added an option to enable NAPI in 11ad
Added a flag in the 11ad driver to indicate if NAPI is
enabled in the LAN RX Datapath. In case the flag is true
the 11ad driver will now use napi_gro_receive instead of
netif_rx_ni, meaning the GRO feature is also enabled
with this change.

Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Change-Id: I5c6cb3e08c29c4b79cdcbc9e4d3acb485156a607
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-11-18 11:12:30 +02:00
Meng Wang
4eb38d792f ASoC: core: add debug log for cpu dais
Add debug log to show which CPU dai is not registered
during bootup.

Change-Id: Ia6324edec64ff6e7ee08a0b292259c8ffb70d20e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-11-18 15:55:10 +08:00