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

Commit b9d51a0b authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Jeevan Shriram
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 0a5bb657
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -218,6 +218,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;