linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/12] misc: fastrpc: Add more DSP FastRPC features
@ 2022-02-14 16:09 Srinivas Kandagatla
  2022-02-14 16:09 ` [PATCH v4 01/12] misc: fastrpc: separate fastrpc device from channel context Srinivas Kandagatla
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Srinivas Kandagatla @ 2022-02-14 16:09 UTC (permalink / raw)
  To: robh+dt, gregkh
  Cc: devicetree, ekangupt, bkumar, linux-kernel, srini,
	bjorn.andersson, linux-arm-msm, Srinivas Kandagatla

This patchset adds below DSP FastRPC features that have been missing in
upstream fastrpc driver and also cleans up channel context structure with kref.

- Add ablity to reflect if the DSP domain is secure/unsecure by creating
 seperate device nodes for secured domain, this would used by SE policy
 to restrict applications loading process on the DSP.
- Add new IOCTL to get DSP capabilites
- Add IOCTL to support mapping memory on the DSP.
- Add support for allocating secure memory for DSP
- Handle fdlist in put args
- Handle dma fds in invoke request.

Tested this series on DragonBoard 845c with TensoFlowLite.

Changes since v3:
- remove redundant free in error path of fastrpc_device_register()
- fixed various type cast warnings reported by kernel test robot
- added QCOM_SCM select in Kconfig for secure memory allocations.
- dynamically allocate temp attribute buffer, rather than using it from stack
- added ack for dt-bindings
- removed redundant checks in fastrpc_req_mem_map()

Jeya R (5):
  misc: fastrpc: add support for FASTRPC_IOCTL_MEM_MAP/UNMAP
  misc: fastrpc: Add support to get DSP capabilities
  dt-bindings: misc: add property to support non-secure DSP
  misc: fastrpc: check before loading process to the DSP
  arm64: dts: qcom: add non-secure domain property to fastrpc nodes

Srinivas Kandagatla (2):
  misc: fastrpc: separate fastrpc device from channel context
  misc: fastrpc: add secure domain support

Vamsi Krishna Gattupalli (5):
  dt-bindings: misc: add fastrpc domain vmid property
  misc: fastrpc: Add support to secure memory map
  misc: fastrpc: Add helper function to get list and page
  misc: fastrpc: Add fdlist implementation
  misc: fastrpc: Add dma handle implementation

 .../devicetree/bindings/misc/qcom,fastrpc.txt |  10 +
 arch/arm64/boot/dts/qcom/msm8916.dtsi         |   1 +
 arch/arm64/boot/dts/qcom/sdm845.dtsi          |   2 +
 arch/arm64/boot/dts/qcom/sm8150.dtsi          |   3 +
 arch/arm64/boot/dts/qcom/sm8250.dtsi          |   3 +
 arch/arm64/boot/dts/qcom/sm8350.dtsi          |   3 +
 drivers/misc/Kconfig                          |   1 +
 drivers/misc/fastrpc.c                        | 556 ++++++++++++++++--
 include/uapi/misc/fastrpc.h                   |  81 ++-
 9 files changed, 612 insertions(+), 48 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2022-02-14 16:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 16:09 [PATCH v4 00/12] misc: fastrpc: Add more DSP FastRPC features Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 01/12] misc: fastrpc: separate fastrpc device from channel context Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 02/12] misc: fastrpc: add support for FASTRPC_IOCTL_MEM_MAP/UNMAP Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 03/12] misc: fastrpc: Add support to get DSP capabilities Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 04/12] dt-bindings: misc: add property to support non-secure DSP Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 05/12] misc: fastrpc: add secure domain support Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 06/12] misc: fastrpc: check before loading process to the DSP Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 07/12] dt-bindings: misc: add fastrpc domain vmid property Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 08/12] misc: fastrpc: Add support to secure memory map Srinivas Kandagatla
2022-02-14 16:09 ` [PATCH v4 09/12] misc: fastrpc: Add helper function to get list and page Srinivas Kandagatla
2022-02-14 16:10 ` [PATCH v4 10/12] misc: fastrpc: Add fdlist implementation Srinivas Kandagatla
2022-02-14 16:10 ` [PATCH v4 11/12] misc: fastrpc: Add dma handle implementation Srinivas Kandagatla
2022-02-14 16:10 ` [PATCH v4 12/12] arm64: dts: qcom: add non-secure domain property to fastrpc nodes Srinivas Kandagatla

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).