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: Shiraz Hashim <shashim@codeaurora.org>
This commit is contained in:
Shiraz Hashim 2015-09-12 11:57:31 +05:30 committed by Jeevan Shriram
parent 0a5bb65773
commit b9d51a0b43

View file

@ -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;