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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -63,11 +63,14 @@ enum fastrpc_proc_attr { · 62 unmodified lines | |||
| 63 | FASTRPC_MODE_PRIVILEGED = (1 << 6), | 63 | FASTRPC_MODE_PRIVILEGED = (1 << 6), |
| 64 | }; | 64 | }; |
| 65 | 65 | ||
| 66 | /* Fastrpc attribute for memory protection of buffers */ | ||
| 67 | #define FASTRPC_ATTR_SECUREMAP (1) | ||
| 68 | |||
| 66 | struct fastrpc_invoke_args { | 69 | struct fastrpc_invoke_args { |
| 67 | __u64 ptr; | 70 | __u64 ptr; |
| 68 | __u64 length; | 71 | __u64 length; |
| 69 | __s32 fd; | 72 | __s32 fd; |
| 70 | __u32 reserved; | 73 | __u32 attr; |
| 71 | }; | 74 | }; |
| 72 | 75 | ||
| 73 | struct fastrpc_invoke { | 76 | struct fastrpc_invoke { |