]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Enable compound page check for both THP and HugeTLB
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 3 Feb 2021 04:58:10 +0000 (10:28 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Feb 2021 12:35:06 +0000 (23:35 +1100)
commitc7ba2d636342093cfb842f47640e5b62192adfed
tree8d384dd8b0050a4f5a4bc1c1df9361397836fe87
parentc9df3f809cc98b196548864f52d3c4e280dd1970
powerpc/mm: Enable compound page check for both THP and HugeTLB

THP config results in compound pages. Make sure the kernel enables
the PageCompound() check with CONFIG_HUGETLB_PAGE disabled and
CONFIG_TRANSPARENT_HUGEPAGE enabled.

This makes sure we correctly flush the icache with THP pages.
flush_dcache_icache_page only matter for platforms that don't support
COHERENT_ICACHE.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210203045812.234439-1-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/hugetlb.h
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/mem.c