Skip to content
Snippets Groups Projects
Commit 407efd4e authored by Jordan Crouse's avatar Jordan Crouse Committed by Carter Cooper
Browse files

msm: kgsl: Mark the IOMMU setstate memory as read only


Mark the IOMMU setstate memory as read only in the pagetable.

Change-Id: Ic0dedbadb19e499c749cd744c3e89be3bcb4c2a2
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 16356049
Branches
No related tags found
No related merge requests found
......@@ -385,6 +385,10 @@ int kgsl_mmu_init(struct kgsl_device *device)
status = kgsl_allocate_contiguous(&mmu->setstate_memory, PAGE_SIZE);
if (status)
return status;
/* Mark the setstate memory as read only */
mmu->setstate_memory.flags |= KGSL_MEMFLAGS_GPUREADONLY;
kgsl_sharedmem_set(device, &mmu->setstate_memory, 0, 0,
mmu->setstate_memory.size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment