mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
soc: qcom: mem-buf: Do not assume VMID values
The mem-buf code currently assumes that the VMID values for the VMs are known up-front, which may not be the case when VMIDs are allocated dynamically. Thus, remove all such assumptions, and query the resource manager driver for VMID values. Also, rename the MEM_BUF_VMID_HLOS identifier to MEM_BUF_VMID_PRIMARY_VM so as to not tie HLOS to the role of primary VM. Change-Id: I4cd79e31d7bda6d1437e690ac0e63b15a69565ef Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
426fcd37a4
commit
941ebdfe30
2 changed files with 16 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ enum mem_buf_mem_type {
|
|||
};
|
||||
|
||||
/* The mem-buf values that represent VMIDs for an ACL. */
|
||||
#define MEM_BUF_VMID_HLOS 0
|
||||
#define MEM_BUF_VMID_PRIMARY_VM 0
|
||||
#define MEM_BUF_VMID_TRUSTED_UI 1
|
||||
|
||||
#define MEM_BUF_PERM_FLAG_READ (1U << 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue