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
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
66struct fastrpc_invoke_args {69struct 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
73struct fastrpc_invoke {76struct fastrpc_invoke {