diff options
| author | Vamsi Krishna Gattupalli <[email protected]> | 2022-02-14 16:09:58 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-03-18 14:11:00 +0100 |
| commit | e90d911906196bf987492c94e38f10ca611dfd7b (patch) | |
| tree | 7d560447127af4af3959120e2424b8847a480bb8 /include/uapi/misc | |
| parent | 87ccc14ee640ee32c43796d3db4f46b12353debc (diff) | |
misc: fastrpc: Add support to secure memory map
This patch adds support to secure memory allocations for DSP.
It repurposes the reserved field in struct fastrpc_invoke_args
to add attributes to invoke request, for example to setup a secure memory
map for dsp. Secure memory is assigned to DSP Virtual Machine IDs using
Qualcomm SCM calls.
Signed-off-by: Vamsi Krishna Gattupalli <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/uapi/misc')
| -rw-r--r-- | include/uapi/misc/fastrpc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/misc/fastrpc.h b/include/uapi/misc/fastrpc.h index f39edac20305..5e29f2cfa42d 100644 --- a/include/uapi/misc/fastrpc.h +++ b/include/uapi/misc/fastrpc.h @@ -63,11 +63,14 @@ enum fastrpc_proc_attr { FASTRPC_MODE_PRIVILEGED = (1 << 6), }; +/* Fastrpc attribute for memory protection of buffers */ +#define FASTRPC_ATTR_SECUREMAP (1) + struct fastrpc_invoke_args { __u64 ptr; __u64 length; __s32 fd; - __u32 reserved; + __u32 attr; }; struct fastrpc_invoke { |