summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeeti Desai <neetid@codeaurora.org>2015-07-28 11:02:02 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:13:42 -0700
commit3dfe618eb32f536d0960cb95c322e25912cb8203 (patch)
tree3d875ebe5de1c9e2522f8b916a1b086d9c4f957f
parent4a7ae76ea28a510f98b7c0650beb8cc792a84e9c (diff)
msm: Update the permissions while making assign call
When memory that is assigned a particular VMID is re-assigned back to HLOS, it needs to get RWX permissions so that HLOS can use it for data as well as instructions. Change-Id: Ib5413861de877d9081bdf5bd397f528293deb6e8 Signed-off-by: Neeti Desai <neetid@codeaurora.org>
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index db6de14c7d29..11468a804ad9 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1917,7 +1917,7 @@ static void arm_smmu_unprepare_pgtable(void *cookie, void *addr)
struct arm_smmu_domain *smmu_domain = cookie;
int ret;
int dest_vmids = VMID_HLOS;
- int dest_perms = PERM_READ | PERM_WRITE;
+ int dest_perms = PERM_READ | PERM_WRITE | PERM_EXEC;
int source_vmlist[2] = {VMID_HLOS, smmu_domain->secure_vmid};
if (smmu_domain->secure_vmid == VMID_INVAL)