Commit graph

874,588 commits

Author SHA1 Message Date
Elliot Berman
1699be26f3 defconfig: Enable qcom_scm as a module
Enable qcom_scm as a module in lahaina GKI.

Change-Id: I92cc0a27d48fc5e0de06361f798a68cd570a87e5
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
871f20c5e1 firmware: qcom_scm: Add calls for watchdog tests
Add call to trigger secure watchdog and spin CPU.

Change-Id: I792c366528f46c87c68e73a49e276b1cd9462eaf
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
23a99bc7bc firmware: qcom_scm: Add calls for seccam
Add calls to the SCM driver for seccam driver.

Change-Id: I0468057945ab8c84ea6c608fdb194093422a2c3e
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
3364df41fa firmware: qcom_scm: Add calls for csptest
Add SCM calls to check for whether mode switch and secure
watchdog trigger calls are available.
Add SCM call for cpu errata.

Change-Id: Ibe2ccf4d44ce89c342ed3c65bbe6f075f9be8c40
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
0213ebc079 firmware: qcom_smc: Add compatibility layer for qseecom
Adding a compatibility layer so that only header changes are required
for qseecom. This change will exist only for Lahaina bring up.

Change-Id: I5b69dd02491416e4b593c42c85a2ffcf97280020
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
d0a14e5c2c soc: qcom: Migrate SCM calls in secure_buffer
Migrate SCM calls to use the upstream SCM driver.

Change-Id: I09d5a64f18de4c691c20d3bb94371cdf6385b1d5
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Isaac J. Manjarres
ff2fa44e3b soc: qcom: secure_buffer: Migrate to qcom_scm usage
Use qcom_scm_assign_mem_regions() when switching
ownership of several memory regions.

Change-Id: If6337af580e9e0cf4b484f81bd2870a02292cdba
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Isaac J. Manjarres
f8bf2650d2 firmware: qcom_scm: Add support to assign multiple memory regions
The secure world allows for changing the ownership of multiple
(not necessarily physically contiguous) memory regions in one
secure call. Thus, expose an interface for clients to assign more
than one memory region per secure call.

Change-Id: Ic444627daee9d735b8b039ae3965e861cdcd110a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
ec51a0f5ea firmware: qcom_scm: Permit early SCM calls before driver probe
In some cases we need to make early SCM calls, i.e., when
the driver has not been probed. Adding NULL dereference
checks to handle such cases.

Change-Id: I4e6e6821795ed5833e59350865a17530494c52f9
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
6c33f33594 soc: qcom: Prune unused SCM calls
Prune unused SCM calls for upstream SCM driver migration.

Change-Id: Ic29d3085d2df6c5d9a276aaa22e0710951313615
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
f278fbe3a9 soc: qcom: Migrating to upstream SCM driver in smcinvoke
Migrate the downstream SCM driver calls to the upstream driver
calls.

Change-Id: Idb94438e439a3bd17a95dd846e6d3bd683bab69e
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
d416ab1028 firmware: qcom_scm: Add memory protection API for MDF
Add memory protection API for MultiDSP framework as scm_call2
is depreciated on latest kernel.

Change-Id: I935f29bf958e57498fd115022d9f6352adbab861
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
e7e95d8706 firmware: qcom_scm: Add a scm calls for displace memory protect
Add a scm calls for displace memory protect.

Change-Id: I8a23b13f1917adcad5f627f0f55fc7702bd01cd7
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
89d665314e thermal: qcom: Migrate SCM calls in msm_lmh_dcvs
Migrate SCM calls present in lmh_dbg to use the upstream driver.

Change-Id: I6daa774f5dc3af630676c9f3f70f0a5d09a8e7b6
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
fb0a041246 thermal: qcom: Migrate SCM calls in lmh_dbg
Migrate SCM calls present in lmh_dbg to use upstream driver
conventions.

Change-Id: I424e5a70fbc5886d7685740e64f8ec7d78edadf1
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
d917dea1c2 msm: cvp: Migrate SCM calls
Migrate setting CVP state to use upstream qcom_scm driver.

Change-Id: Iac27ae205beae63cc8fb682c81065d706fcf9563
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
d98f9f01bf firmware: qcom_scm: Add support for protecting videos
Add secure world call to protect memory for video.

Change-Id: I27a82d31054b8a2459738d3c7a2785abd357504f
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
6009e24b13 input: touchscreen: synaptics_dsx: Migrate SCM calls
Migrate secure world calls to qcom_scm driver in synaptics_dsx_core.c.

Change-Id: Ie339dcad416658a0f1227b9a9ee995799695dc94
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
0d8b273093 firmware: qcom_scm: Add calls for camera
- Add SCM API to notify secure world that a LUT should be secure.
- Add SCM API to notify secure world that camera should be secure.

Change-Id: I31b0ce2c58182f809d0875c64116436a30ce8f62
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
3e20670941 soc: qcom: Migrate SCM calls in remoteqdss
Migrate scm_call2 usage to new SCM driver in remoteqdss.

Change-Id: Idd25aab0c5fb7cc55ee81c8f685981b8362a7b45
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
9f0809bb26 firmware: qcom: Migrate SCM calls in tz_log
Migrate SCM call to register qsee log buffer to new SCM driver.

Change-Id: Ic9c700f5324f1a5d5a9ce28ab95cc55fed9c692e
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
7729d81d86 soc: qcom: Migrate SCM calls in PIL
Migrate away from downstream scm_call2 API to upstream QCOM SCM API.

Change-Id: I8eb5d138ad039e279dc21345e3175f69cafaec24
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
348d7803bb firmware: qcom_scm: Add calls for pfk_ice
Add variant of qcom_scm_call which disables EBUSY retry mechanism.
Add SCM calls for pfk_ice to initialize keys.

Change-Id: Ib785cd0bf4df5b81d73bad96c2a6f56ae961b55d
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
5317ce310c msm: kgsl: Migrate SCM calls in GPU bus governor
Migrate MSM Adreno Governor TZ interface to upstream SCM driver.

Change-Id: I1c4347d33b6be835f04422918c29e9c627e02874
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2019-11-21 13:00:27 -08:00
Elliot Berman
d321e284cb coresight: tpdm: Migrate SCM calls
Use upstream qcom_scm driver for SCM call to hw-enable check.

Change-Id: I1278bf2af22540d6b9e7c6c42e60c969124ad133
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
b6e110d2d0 soc: qcom: Migrate SCM calls in qtee_shmbridge
Adding APIs to create, delete, and enable shmbridge.
Migrating SCM calls in qtee_shmbridge to use the new APIs.

Change-Id: I038e7950d11cbf6bb38a8824a576f2d92f879454
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
49ec350a86 soc: qcom: Migrate SCM calls in msm_tz_smmu
Adding APIs to change smmu pagetable format, and to prepare atos id.
Migrating SCM calls in msm_tz_smmu to use the new APIs.

Change-Id: I3aed64cd524e94cfa6d6ea168031eda62fd14fb0
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
Siddharth Gupta
df1491d155 msm: kgsl: Migrate SCM calls in kgsl iommu
Adding APIs to check if KGSL SMMU is available, and programming the
SMMU Aperture size. Migrating SCM calls in the KGSL IOMMU driver.

Change-Id: I77178f3e300112fa47a8ca6861acb08d547c9875
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-21 13:00:27 -08:00
qctecmdr
11b286fb73 Merge "platform: msm: Migrate SCM calls in IPAv3" 2019-11-21 10:51:40 -08:00
qctecmdr
7af7e28c0e Merge "PM / devfreq: Add cache HW monitor governor" 2019-11-21 10:21:40 -08:00
qctecmdr
57aa166221 Merge "usb: dwc3-msm: Fix usage of find_matching_dbm_ep()" 2019-11-21 09:45:13 -08:00
qctecmdr
bdd39a28b4 Merge "clk: qcom: gpucc: Fix gpll0 parent names" 2019-11-21 09:08:37 -08:00
qctecmdr
f21762b8f4 Merge "msm: ipa: Adapt IPA driver to several DLKMs" 2019-11-21 07:44:37 -08:00
qctecmdr
ce93124b98 Merge "msm: ipa4: add MAC filtering for 802_1Q packets" 2019-11-21 01:56:54 -08:00
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
Amir Levy
ece40dea5e msm: ipa4: add MAC filtering for 802_1Q packets
Add ability to filter MAC addresses from 802_1Q packets.
MAC address is located in a different offset than in ETH_II
header.

Change-Id: I4b808102dbb708779762bedb998c2477b5058886
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-11-20 15:26:52 +02:00
Siddharth Gupta
bea316fb9c platform: msm: Migrate SCM calls in IPAv3
Adding API to upstream driver to get secure dump state and protect
memory regions. Migrating SCM calls used in the IPA driver.

Change-Id: Ia61436d8c18ddda49c411e06f147cdae345a23af
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
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