2023-06-07 12:10:43

by Ekansh Gupta

[permalink] [raw]
Subject: [PATCH v1 0/2] Privileged process support on remote subsystem

Add support to run remote user process as privileged on remote
subsystem. The privileged user process can be given prioritized
access to remote processor resources. This is achieved in kernel
based on the group ID of the process. The kernel will have a
pre-defined fastrpc group ID and if the process's group ID matches
with it, then the process is treated as a privileged process. This
information is sent to the remote processor during PD initialization
and the PD is treated as a privileged PD.

Ekansh Gupta (2):
dt-bindings: misc: fastrpc: add fastrpc group IDs property
misc: fastrpc: detect privileged processes based on group ID

.../devicetree/bindings/misc/qcom,fastrpc.yaml | 6 +
drivers/misc/fastrpc.c | 124 +++++++++++++++++++++
2 files changed, 130 insertions(+)

--
2.7.4



2023-06-07 12:13:52

by Ekansh Gupta

[permalink] [raw]
Subject: [PATCH v1 1/2] dt-bindings: misc: fastrpc: add fastrpc group IDs property

Add "qcom,fastrpc-gids" property to the list of optional properties.
This property contains the list of privileged group IDs which is
used to offload process to remote subsystem with increased privileges.

Signed-off-by: Ekansh Gupta <[email protected]>
---
Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
index 1ab9588..2a2124f 100644
--- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
+++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
@@ -57,6 +57,11 @@ properties:
Virtual machine IDs for remote processor.
$ref: "/schemas/types.yaml#/definitions/uint32-array"

+ qcom,fastrpc-gids:
+ description:
+ Group IDs for fastrpc.
+ $ref: "/schemas/types.yaml#/definitions/uint32-array"
+
"#address-cells":
const: 1

@@ -120,6 +125,7 @@ examples:
qcom,glink-channels = "fastrpcglink-apps-dsp";
label = "sdsp";
qcom,non-secure-domain;
+ qcom,fastrpc-gids = <2908>
#address-cells = <1>;
#size-cells = <0>;

--
2.7.4


2023-06-07 15:24:08

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] dt-bindings: misc: fastrpc: add fastrpc group IDs property

On 07/06/2023 13:54, Ekansh Gupta wrote:
> Add "qcom,fastrpc-gids" property to the list of optional properties.
> This property contains the list of privileged group IDs which is
> used to offload process to remote subsystem with increased privileges.
>
> Signed-off-by: Ekansh Gupta <[email protected]>

Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.

You missed at least DT list (maybe more), so this won't be tested.
Please resend and include all necessary entries.

Best regards,
Krzysztof