mirror-linux/include/linux/firmware
Mukesh Ojha 4a7d6a78fb firmware: qcom_scm: Add a prep version of auth_and_reset function
For memory passed to TrustZone (TZ), it must either be part of a pool
registered with TZ or explicitly registered via SHMbridge SMC calls.
When Gunyah hypervisor is present, PAS SMC calls from Linux running at
EL1 are trapped by Gunyah running @ EL2, which handles SHMbridge
creation for both metadata and remoteproc carveout memory before
invoking the calls to TZ.

On SoCs running with a non-Gunyah-based hypervisor, Linux must take
responsibility for creating the SHM bridge before invoking PAS SMC
calls. For the auth_and_reset() call, the remoteproc carveout memory
must first be registered with TZ via a SHMbridge SMC call and once
authentication and reset are complete, the SHMbridge memory can be
deregistered.

Introduce qcom_scm_pas_prepare_and_auth_reset(), which sets up the SHM
bridge over the remoteproc carveout memory when Linux operates at EL2.
This behavior is indicated by a new field added to the PAS context data
structure. The function then invokes the auth_and_reset SMC call.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260105-kvmrprocv10-v10-8-022e96815380@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
2026-01-13 12:14:34 -06:00
..
broadcom
cirrus firmware: cs_dsp: Store control length as 32-bit 2025-11-24 19:15:19 +00:00
imx firmware: imx: Add stub functions for SCMI CPU API 2025-09-11 09:59:08 +08:00
intel firmware: stratix10-svc: fix make htmldocs warning 2025-11-24 17:49:12 +01:00
mediatek
meson
qcom firmware: qcom_scm: Add a prep version of auth_and_reset function 2026-01-13 12:14:34 -06:00
samsung firmware: exynos-acpm: add empty method to allow compile test 2025-10-22 07:49:38 +02:00
thead
trusted_foundations.h
xlnx-event-manager.h
xlnx-zynqmp-ufs.h scsi: firmware: xilinx: Add APIs for UFS PHY initialization 2025-10-29 23:00:48 -04:00
xlnx-zynqmp.h SCSI misc on 20251204 2025-12-05 19:56:50 -08:00