History

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.

Vamsi Krishna Gattupalli committed 4 years ago

Commit e90d9111 parent 87ccc143 files · +61 −10Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/misc/fastrpc.h+4−1
@@ -63,11 +63,14 @@ enum fastrpc_proc_attr { · 62 unmodified lines
6363 FASTRPC_MODE_PRIVILEGED = (1 << 6),
6464 };
6565
66+/* Fastrpc attribute for memory protection of buffers */
67+#define FASTRPC_ATTR_SECUREMAP (1)
68+
6669 struct fastrpc_invoke_args {
6770 __u64 ptr;
6871 __u64 length;
6972 __s32 fd;
70− __u32 reserved;
73+ __u32 attr;
7174 };
7275
7376 struct fastrpc_invoke {