mbox series

[v3,00/12] misc: fastrpc: Add missing DSP FastRPC features

Message ID 20220126135304.16340-1-srinivas.kandagatla@linaro.org
Headers show
Series misc: fastrpc: Add missing DSP FastRPC features | expand

Message

Srinivas Kandagatla Jan. 26, 2022, 1:52 p.m. UTC
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 v2:
- Add support for Secure Memory allocations.
- added handling fdlist and dmalist in and after invoke.
- removed unnecessary debug log
- removed dependency on yaml bindings and added new bindings to .txt


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/fastrpc.c                        | 552 ++++++++++++++++--
 include/uapi/misc/fastrpc.h                   |  81 ++-
 8 files changed, 607 insertions(+), 48 deletions(-)

Comments

Rob Herring (Arm) Feb. 7, 2022, 8:45 p.m. UTC | #1
On Wed, 26 Jan 2022 13:52:59 +0000, Srinivas Kandagatla wrote:
> From: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
> 
> Add fastrpc domain virtual machine IDs property. This property is used to
> setup memory protection for remote processor.
> 
> Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
>  Documentation/devicetree/bindings/misc/qcom,fastrpc.txt | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
patchwork-bot+linux-arm-msm@kernel.org April 8, 2022, 1:37 p.m. UTC | #2
Hello:

This series was applied to qcom/linux.git (for-next)
by Greg Kroah-Hartman <gregkh@linuxfoundation.org>:

On Wed, 26 Jan 2022 13:52:52 +0000 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [v3,01/12] misc: fastrpc: separate fastrpc device from channel context
    (no matching commit)
  - [v3,02/12] misc: fastrpc: add support for FASTRPC_IOCTL_MEM_MAP/UNMAP
    (no matching commit)
  - [v3,03/12] misc: fastrpc: Add support to get DSP capabilities
    (no matching commit)
  - [v3,04/12] dt-bindings: misc: add property to support non-secure DSP
    (no matching commit)
  - [v3,05/12] misc: fastrpc: add secure domain support
    (no matching commit)
  - [v3,06/12] misc: fastrpc: check before loading process to the DSP
    (no matching commit)
  - [v3,07/12] dt-bindings: misc: add fastrpc domain vmid property
    (no matching commit)
  - [v3,08/12] misc: fastrpc: Add support to secure memory map
    (no matching commit)
  - [v3,09/12] misc: fastrpc: Add helper function to get list and page
    (no matching commit)
  - [v3,10/12] misc: fastrpc: Add fdlist implementation
    (no matching commit)
  - [v3,11/12] misc: fastrpc: Add dma handle implementation
    (no matching commit)
  - [v3,12/12] arm64: dts: qcom: add non-secure domain property to fastrpc nodes
    https://git.kernel.org/qcom/c/8c8ce95b6f1b

You are awesome, thank you!