* [PATCH] powerpc/mm/4k: don't allocate larger pmd page table for 4k
@ 2017-01-04 2:49 Aneesh Kumar K.V
2017-01-16 6:46 ` Anshuman Khandual
2017-01-27 0:40 ` Michael Ellerman
0 siblings, 2 replies; 3+ messages in thread
From: Aneesh Kumar K.V @ 2017-01-04 2:49 UTC (permalink / raw)
To: benh, paulus, mpe, Nicholas Piggin; +Cc: linuxppc-dev, Aneesh Kumar K.V
We now support THP with both 64k and 4K page size configuration
for radix. (hash only support THP with 64K page size). Hence we
will have CONFIG_TRANSPARENT_HUGEPAGE enabled for both PPC_64K
and PPC_4K config. Since we only need large pmd page table
with hash configuration (to store the slot information
in the second half of the table) restrict the large pmd page table
to THP and 64K configs.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
arch/powerpc/include/asm/book3s/64/hash.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/include/asm/book3s/64/hash.h b/arch/powerpc/include/asm/book3s/64/hash.h
index f61cad3de4e6..5ae0596aa7e0 100644
--- a/arch/powerpc/include/asm/book3s/64/hash.h
+++ b/arch/powerpc/include/asm/book3s/64/hash.h
@@ -33,9 +33,9 @@
H_PUD_INDEX_SIZE + H_PGD_INDEX_SIZE + PAGE_SHIFT)
#define H_PGTABLE_RANGE (ASM_CONST(1) << H_PGTABLE_EADDR_SIZE)
-#ifdef CONFIG_TRANSPARENT_HUGEPAGE
+#if defined(CONFIG_TRANSPARENT_HUGEPAGE) && defined(CONFIG_PPC_64K_PAGES)
/*
- * only with hash we need to use the second half of pmd page table
+ * only with hash 64k we need to use the second half of pmd page table
* to store pointer to deposited pgtable_t
*/
#define H_PMD_CACHE_INDEX (H_PMD_INDEX_SIZE + 1)
--
2.10.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/mm/4k: don't allocate larger pmd page table for 4k
2017-01-04 2:49 [PATCH] powerpc/mm/4k: don't allocate larger pmd page table for 4k Aneesh Kumar K.V
@ 2017-01-16 6:46 ` Anshuman Khandual
2017-01-27 0:40 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Anshuman Khandual @ 2017-01-16 6:46 UTC (permalink / raw)
To: Aneesh Kumar K.V, benh, paulus, mpe, Nicholas Piggin; +Cc: linuxppc-dev
On 01/04/2017 08:19 AM, Aneesh Kumar K.V wrote:
> We now support THP with both 64k and 4K page size configuration
> for radix. (hash only support THP with 64K page size). Hence we
Can be a different sentence ^^^^^^^ as well. Small nit.
> will have CONFIG_TRANSPARENT_HUGEPAGE enabled for both PPC_64K
> and PPC_4K config. Since we only need large pmd page table
> with hash configuration (to store the slot information
> in the second half of the table) restrict the large pmd page table
> to THP and 64K configs.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: powerpc/mm/4k: don't allocate larger pmd page table for 4k
2017-01-04 2:49 [PATCH] powerpc/mm/4k: don't allocate larger pmd page table for 4k Aneesh Kumar K.V
2017-01-16 6:46 ` Anshuman Khandual
@ 2017-01-27 0:40 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2017-01-27 0:40 UTC (permalink / raw)
To: Aneesh Kumar K.V, benh, paulus, Nicholas Piggin
Cc: linuxppc-dev, Aneesh Kumar K.V
On Wed, 2017-01-04 at 02:49:12 UTC, "Aneesh Kumar K.V" wrote:
> We now support THP with both 64k and 4K page size configuration
> for radix. (hash only support THP with 64K page size). Hence we
> will have CONFIG_TRANSPARENT_HUGEPAGE enabled for both PPC_64K
> and PPC_4K config. Since we only need large pmd page table
> with hash configuration (to store the slot information
> in the second half of the table) restrict the large pmd page table
> to THP and 64K configs.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/8ad43336b5c1ad9ac945148cb5e26a
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-27 0:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 2:49 [PATCH] powerpc/mm/4k: don't allocate larger pmd page table for 4k Aneesh Kumar K.V
2017-01-16 6:46 ` Anshuman Khandual
2017-01-27 0:40 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).