linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] arm64: Kconfig: enable ARCH_WANTS_THP_SWAP for all pagesizes
@ 2025-12-26  6:38 Weilin Tong
  2025-12-26  6:52 ` Barry Song
  0 siblings, 1 reply; 6+ messages in thread
From: Weilin Tong @ 2025-12-26  6:38 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon
  Cc: linux-arm-kernel, linux-kernel, Andrew Morton, David Hildenbrand,
	linux-mm, baolin.wang, Weilin Tong

Currently, ARCH_WANTS_THP_SWAP was limited to 4K page size ARM64 kernels, but
large folios requiring swapping also exist in other page size configurations
(e.g. 64K). Without this config, large folios in these kernels cannot be swapped
out.

Here we enable ARCH_WANTS_THP_SWAP for all ARM64 page sizes.

Signed-off-by: Weilin Tong <tongweilin@linux.alibaba.com>
---
 arch/arm64/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 93173f0a09c7..58f7b4405f81 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -120,7 +120,7 @@ config ARM64
 	select ARCH_WANT_LD_ORPHAN_WARN
 	select ARCH_WANTS_EXECMEM_LATE
 	select ARCH_WANTS_NO_INSTR
-	select ARCH_WANTS_THP_SWAP if ARM64_4K_PAGES
+	select ARCH_WANTS_THP_SWAP
 	select ARCH_HAS_UBSAN
 	select ARM_AMBA
 	select ARM_ARCH_TIMER
-- 
2.43.7



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-26  8:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-26  6:38 [RFC PATCH] arm64: Kconfig: enable ARCH_WANTS_THP_SWAP for all pagesizes Weilin Tong
2025-12-26  6:52 ` Barry Song
2025-12-26  8:18   ` Weilin Tong
2025-12-26  8:31     ` Barry Song
2025-12-26  8:40       ` Weilin Tong
2025-12-26  8:31   ` Weilin Tong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox