Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66a75949 authored by Chintan Pandya's avatar Chintan Pandya Committed by Stephen Boyd
Browse files

ion: iommu: Add support for 2MB chunk allocation in IOMMU



For LPAE, 2 MB allocation will serve as 2nd level page tables.
Instead of falling back to 3rd level page tables with mapping
4KB chunks, map 2MB chunks.

Change-Id: Ib637ecd6d904870ed4116a99ff222bd573f0a6fb
Signed-off-by: default avatarChintan Pandya <cpandya@codeaurora.org>
parent 3946e8f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ struct ion_iommu_priv_data {
#define MAX_VMAP_RETRIES 10
#define BAD_ORDER	-1

static const unsigned int orders[] = {8, 4, 0};
static const unsigned int orders[] = {9, 8, 4, 0};
static const int num_orders = ARRAY_SIZE(orders);
static unsigned int low_gfp_flags = __GFP_HIGHMEM | GFP_KERNEL | __GFP_ZERO;
static unsigned int high_gfp_flags = (__GFP_HIGHMEM | __GFP_NORETRY