File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,6 @@ config PPC
137137 select ARCH_HAS_DMA_OPS if PPC64
138138 select ARCH_HAS_FORTIFY_SOURCE
139139 select ARCH_HAS_GCOV_PROFILE_ALL
140- select ARCH_HAS_GIGANTIC_PAGE if ARCH_SUPPORTS_HUGETLBFS
141140 select ARCH_HAS_KCOV
142141 select ARCH_HAS_KERNEL_FPU_SUPPORT if PPC64 && PPC_FPU
143142 select ARCH_HAS_MEMBARRIER_CALLBACKS
Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ config PPC_64S_HASH_MMU
423423config PPC_RADIX_MMU
424424 bool "Radix MMU Support"
425425 depends on PPC_BOOK3S_64
426+ select ARCH_HAS_GIGANTIC_PAGE
426427 default y
427428 help
428429 Enable support for the Power ISA 3.0 Radix style MMU. Currently this
Original file line number Diff line number Diff line change @@ -2074,7 +2074,7 @@ static inline unsigned long folio_nr_pages(const struct folio *folio)
20742074 return folio_large_nr_pages (folio );
20752075}
20762076
2077- #if !defined(CONFIG_HAVE_GIGANTIC_FOLIOS )
2077+ #if !defined(CONFIG_ARCH_HAS_GIGANTIC_PAGE )
20782078/*
20792079 * We don't expect any folios that exceed buddy sizes (and consequently
20802080 * memory sections).
@@ -2087,17 +2087,10 @@ static inline unsigned long folio_nr_pages(const struct folio *folio)
20872087 * pages are guaranteed to be contiguous.
20882088 */
20892089#define MAX_FOLIO_ORDER PFN_SECTION_SHIFT
2090- #elif defined(CONFIG_HUGETLB_PAGE )
2091- /*
2092- * There is no real limit on the folio size. We limit them to the maximum we
2093- * currently expect (see CONFIG_HAVE_GIGANTIC_FOLIOS): with hugetlb, we expect
2094- * no folios larger than 16 GiB on 64bit and 1 GiB on 32bit.
2095- */
2096- #define MAX_FOLIO_ORDER get_order(IS_ENABLED(CONFIG_64BIT) ? SZ_16G : SZ_1G)
20972090#else
20982091/*
2099- * Without hugetlb, gigantic folios that are bigger than a single PUD are
2100- * currently impossible .
2092+ * There is no real limit on the folio size. We limit them to the maximum we
2093+ * currently expect (e.g., hugetlb, dax) .
21012094 */
21022095#define MAX_FOLIO_ORDER PUD_ORDER
21032096#endif
Original file line number Diff line number Diff line change @@ -908,13 +908,6 @@ config PAGE_MAPCOUNT
908908config PGTABLE_HAS_HUGE_LEAVES
909909 def_bool TRANSPARENT_HUGEPAGE || HUGETLB_PAGE
910910
911- #
912- # We can end up creating gigantic folio.
913- #
914- config HAVE_GIGANTIC_FOLIOS
915- def_bool (HUGETLB_PAGE && ARCH_HAS_GIGANTIC_PAGE) || \
916- (ZONE_DEVICE && HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)
917-
918911# TODO: Allow to be enabled without THP
919912config ARCH_SUPPORTS_HUGE_PFNMAP
920913 def_bool n
You can’t perform that action at this time.
0 commit comments