Re: [PATCH] mm/debug_vm_pgtable: Fix kernel crash with page table validate

2020-06-08 Thread Anshuman Khandual
On 06/08/2020 04:46 PM, Aneesh Kumar K.V wrote: > On 6/8/20 4:31 PM, Anshuman Khandual wrote: >> Hi Aneesh, >> >> On 06/08/2020 11:57 AM, Aneesh Kumar K.V wrote: >>> Architectures can have CONFIG_TRANSPARENT_HUGEPAGE enabled but >>> no THP support enabled based on platforms. For ex: with 4K >>>

Re: [PATCH] mm/debug_vm_pgtable: Fix kernel crash with page table validate

2020-06-08 Thread Aneesh Kumar K.V
On 6/8/20 4:31 PM, Anshuman Khandual wrote: Hi Aneesh, On 06/08/2020 11:57 AM, Aneesh Kumar K.V wrote: Architectures can have CONFIG_TRANSPARENT_HUGEPAGE enabled but no THP support enabled based on platforms. For ex: with 4K PAGE_SIZE ppc64 supports THP only with radix translation. Good catch

Re: [PATCH] mm/debug_vm_pgtable: Fix kernel crash with page table validate

2020-06-08 Thread Anshuman Khandual
Hi Aneesh, On 06/08/2020 11:57 AM, Aneesh Kumar K.V wrote: > Architectures can have CONFIG_TRANSPARENT_HUGEPAGE enabled but > no THP support enabled based on platforms. For ex: with 4K > PAGE_SIZE ppc64 supports THP only with radix translation. Good catch, never hit this before. > > This result

[PATCH] mm/debug_vm_pgtable: Fix kernel crash with page table validate

2020-06-07 Thread Aneesh Kumar K.V
Architectures can have CONFIG_TRANSPARENT_HUGEPAGE enabled but no THP support enabled based on platforms. For ex: with 4K PAGE_SIZE ppc64 supports THP only with radix translation. This results in below crash when running with hash translation and 4K PAGE_SIZE. kernel BUG at arch/powerpc/include/a