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>
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>
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>
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>
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>
Migrate setting CVP state to use upstream qcom_scm driver.
Change-Id: Iac27ae205beae63cc8fb682c81065d706fcf9563
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Add secure world call to protect memory for video.
Change-Id: I27a82d31054b8a2459738d3c7a2785abd357504f
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Migrate secure world calls to qcom_scm driver in synaptics_dsx_core.c.
Change-Id: Ie339dcad416658a0f1227b9a9ee995799695dc94
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
- 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>
Migrate scm_call2 usage to new SCM driver in remoteqdss.
Change-Id: Idd25aab0c5fb7cc55ee81c8f685981b8362a7b45
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>