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:
parent
0a5bb65773
commit
b9d51a0b43
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue