From nobody Sun Feb 8 06:56:15 2026 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CBAC1DFDB8 for ; Fri, 26 Dec 2025 06:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766731141; cv=none; b=br+i7cxGMh784Dar4/QoH02noLWGVAHx7qKskynexNvEo94X359IxK5RY4EaN/ilhU5JAofjtJf9v6aWZrgusaxCLVT54C3ouDNStD0Bu8KhxpiE7KP4laYggn9Gg2HRIvSZeFrH2/KfI+AKV8c94A8r6MddbioisHjTFoEoxB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766731141; c=relaxed/simple; bh=I7y80IDfbAaR0V8ixCGEs+SoGZ8Ikb5R06pjfSeAC6Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OJRdys8zQYLGDnJYLyNWdmjFqPOjd8MHwYdN8vJGQOYn2gieOrR2FzeFbRCzlvAY/mEE9c7jt9nqwKhQyUt0CBqKn84/jn4YSUgCtR3eApTQ1aaJ9SI2uuaH1eGhQDEcT/HZM/Pdn3bo6Lrx164je37zfUApCLFFfGt8SCDARXY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=hFPu5/t9; arc=none smtp.client-ip=115.124.30.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="hFPu5/t9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1766731135; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=7W6lTO5HqhdsUdqMUK0JVCIeu7zAS4i6K6mEqBoWdOw=; b=hFPu5/t95zFUdsegaOLgb8Ld2lesE8P4CdZU2kKpz+FXD4dg4WGgviSKiouhklHx/AEcRzbBS1uei00AO8Lbul0/uYtuWeko+N4454/SYOucsyoDW1KCeoopy1g+JzgtP+QXXYfYxh3Mp3C1lbbf9jSmZwov26EKFNGTBvU3Xes= Received: from localhost.localdomain(mailfrom:tongweilin@linux.alibaba.com fp:SMTPD_---0WvgaM6Q_1766731125 cluster:ay36) by smtp.aliyun-inc.com; Fri, 26 Dec 2025 14:38:55 +0800 From: Weilin Tong To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Morton , David Hildenbrand , linux-mm@kvack.org, baolin.wang@linux.alibaba.com, Weilin Tong Subject: [RFC PATCH] arm64: Kconfig: enable ARCH_WANTS_THP_SWAP for all pagesizes Date: Fri, 26 Dec 2025 14:38:00 +0800 Message-ID: <20251226063759.4020782-2-tongweilin@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Currently, ARCH_WANTS_THP_SWAP was limited to 4K page size ARM64 kernels, b= ut large folios requiring swapping also exist in other page size configurations (e.g. 64K). Without this config, large folios in these kernels cannot be sw= apped out. Here we enable ARCH_WANTS_THP_SWAP for all ARM64 page sizes. Signed-off-by: Weilin Tong --- 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 --=20 2.43.7