devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Qualcomm SDM845 SLPI DSP driver support
@ 2023-03-25 13:21 Dylan Van Assche
  2023-03-25 13:21 ` [PATCH 1/2] dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible Dylan Van Assche
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Dylan Van Assche @ 2023-03-25 13:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski
  Cc: Konrad Dybcio, Manivannan Sadhasivam, linux-arm-msm,
	linux-remoteproc, devicetree, linux-kernel,
	~postmarketos/upstreaming, phone-devel, Dylan Van Assche

The Qualcomm SDM845 SoC has a separate SLPI (Sensor Low Power Island)
DSP for sensors connected to the SoC which is responsible for exposing
sensors to userspace, power saving, and other features. 
While sensors are connected to GPIOs of the SoC, they cannot be used
because the hypervisor blocks direct access to the sensors, thus the 
DSP must be used to access any sensor on this SoC. The SLPI DSP uses a
GLink edge (dsps) to communicate with the host and has a FastRPC interface
to load files from the host filesystem such as sensor configuration files.
The FastRPC interface does not use regular FastRPC Compute Banks
but instead uses an allocated CMA region through which communication happens.

This set of patches adds support to drivers for the SLPI DSP:
1. Configure the permissions of assigned DSP memory through the hypervisor.
2. Allocate a remote heap when the FastRPC session ID is 0 instead of using 
a Compute Bank directly.
3. Add the SLPI remoteproc resource to the q6v5_pas driver to enable support
for it in the driver.
over QRTR.

DTS changes to enable the SLPI DSP in the SDM845 DTS and hardware
e.g. Oneplus 6 and SHIFTPHONES SHIFT6mq will be send once the driver changes
are applied.

Kind regards,
Dylan Van Assche

Dylan Van Assche (2):
  dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas
    compatible
  remoteproc: qcom: pas: add SDM845 SLPI resource

 .../bindings/remoteproc/qcom,adsp.yaml          |  3 +++
 drivers/remoteproc/qcom_q6v5_pas.c              | 17 +++++++++++++++++
 2 files changed, 20 insertions(+)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-27 12:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25 13:21 [PATCH 0/2] Qualcomm SDM845 SLPI DSP driver support Dylan Van Assche
2023-03-25 13:21 ` [PATCH 1/2] dt-bindings: remoteproc: qcom: adsp: add qcom,sdm845-slpi-pas compatible Dylan Van Assche
2023-03-26  8:53   ` Krzysztof Kozlowski
2023-03-27 11:39     ` Dylan Van Assche
2023-03-27 12:25       ` Krzysztof Kozlowski
2023-03-25 13:21 ` [PATCH 2/2] remoteproc: qcom: pas: add SDM845 SLPI resource Dylan Van Assche
2023-03-27  8:44   ` Konrad Dybcio
2023-03-27  9:34     ` Dylan Van Assche
2023-03-27 10:53       ` Konrad Dybcio
2023-03-26  8:51 ` [PATCH 0/2] Qualcomm SDM845 SLPI DSP driver support Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).