[PATCH v4 3/5] powerpc/mm/slice: Fix hugepage allocation at hint address on 8xx

2018-02-10 Thread Christophe Leroy
On the 8xx, the page size is set in the PMD entry and applies to all pages of the page table pointed by the said PMD entry. When an app has some regular pages allocated (e.g. see below) and tries to mmap() a huge page at a hint address covered by the same PMD entry, the kernel accepts the hint

[PATCH v4 3/5] powerpc/mm/slice: Fix hugepage allocation at hint address on 8xx

2018-02-10 Thread Christophe Leroy
On the 8xx, the page size is set in the PMD entry and applies to all pages of the page table pointed by the said PMD entry. When an app has some regular pages allocated (e.g. see below) and tries to mmap() a huge page at a hint address covered by the same PMD entry, the kernel accepts the hint