Re: powerpc/e500: WARNING: at mm/hugetlb.c:4755 hugetlb_add_hstate

From
David Hildenbrand (Red Hat) <david@kernel.org>
Date
2025-11-10 11:27:23
Reply to
Christophe Leroy, 2025-11-06
Thanks for the review!
quoted hunk ↗ jump to hunk
So I think what you want instead is:
diff --git a/arch/powerpc/platforms/Kconfig.cputype
b/arch/powerpc/platforms/Kconfig.cputype
index 7b527d18aa5ee..1f5a1e587740c 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -276,6 +276,7 @@ config PPC_E500
          select FSL_EMB_PERFMON
          bool
          select ARCH_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
+       select ARCH_HAS_GIGANTIC_PAGE if ARCH_SUPPORTS_HUGETLBFS
          select PPC_SMP_MUXED_IPI
          select PPC_DOORBELL
          select PPC_KUEP


quoted
       select ARCH_HAS_KCOV
       select ARCH_HAS_KERNEL_FPU_SUPPORT    if PPC64 && PPC_FPU
       select ARCH_HAS_MEMBARRIER_CALLBACKS
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/
platforms/Kconfig.cputype
index 7b527d18aa5ee..4c321a8ea8965 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -423,7 +423,6 @@ config PPC_64S_HASH_MMU
   config PPC_RADIX_MMU
       bool "Radix MMU Support"
       depends on PPC_BOOK3S_64
-    select ARCH_HAS_GIGANTIC_PAGE
Should remain I think.
quoted
       default y
       help
         Enable support for the Power ISA 3.0 Radix style MMU. Currently

We also have PPC_8xx do a

	select ARCH_SUPPORTS_HUGETLBFS

And of course !PPC_RADIX_MMU (e.g., PPC_64S_HASH_MMU) through PPC_BOOK3S_64.

Are we sure they cannot end up with gigantic folios through hugetlb?

-- 
Cheers

David
Thread (21 messages) 21 messages, 5 authors, last reply 2025-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help