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

Commit 33365bf7 authored by Shiraz Hashim's avatar Shiraz Hashim
Browse files

arm64: mm: skip 1GB mappings on force pages



While force mapping regions as page, do not go for 1GB
block mapping.

Change-Id: I85ca7046626048acb7a138dc174dc40efbba4ac9
Signed-off-by: default avatarShiraz Hashim <shashim@codeaurora.org>
parent 5c82ac0a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -378,6 +378,7 @@ static void alloc_init_pud(struct mm_struct *mm, pgd_t *pgd,
		 * For 4K granule only, attempt to put down a 1GB block
		 */
		if (use_1G_block(addr, next, phys) &&
				!force_pages &&
				!dma_overlap(phys, phys + next - addr) &&
				!IS_ENABLED(CONFIG_FORCE_PAGES)) {
			pud_t old_pud = *pud;