From patchwork Thu Oct 17 09:47:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13839734 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 979BBD21269 for ; Thu, 17 Oct 2024 09:48:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3362A6B0082; Thu, 17 Oct 2024 05:48:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E5F66B00A0; Thu, 17 Oct 2024 05:48:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 193AC6B00A1; Thu, 17 Oct 2024 05:48:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E79096B0082 for ; Thu, 17 Oct 2024 05:48:34 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3918F1A0B89 for ; Thu, 17 Oct 2024 09:48:15 +0000 (UTC) X-FDA: 82682619264.28.A8918BE Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by imf14.hostedemail.com (Postfix) with ESMTP id C6A9510000C for ; Thu, 17 Oct 2024 09:48:21 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b="J/ZzEFMx"; spf=pass (imf14.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.181 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729158367; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=rfwXxKs8PIaYIos0iWI11FlNBR0N0b0qINIDJ43u9VQ=; b=Ejh3myevX2NFRYOUVN4OE3fz6DCI04POvMsrEUwQGtjr5r16gldMYjYJ+s6yByugbZe8ba 5BcSdBMC7VlAK34enu9Pe8sMe7n+0bADdgp+TaF4m40qJubGY0VOgR3WQbX0EGYkzMxMGx /xjfNugWv6ov17iYE6rmv55NFGAIPLk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729158367; a=rsa-sha256; cv=none; b=r6+E/9zEtrT80qfZsESQxIU7FSr6Jn337iPAuPLZrsKT12Mod/twGCxyCBaLFw6hOHpcCG 2P68XOBMkqVumIXGHMSOh5XEmg7tvDE8n60hP4hoWkQEOTyztEGKfbop+9JSf1LRnmsXtC e+lwfSQTFS4ORxvBqmsW8yAMNv2spLQ= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b="J/ZzEFMx"; spf=pass (imf14.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.181 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71e49ad46b1so477760b3a.1 for ; Thu, 17 Oct 2024 02:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1729158511; x=1729763311; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rfwXxKs8PIaYIos0iWI11FlNBR0N0b0qINIDJ43u9VQ=; b=J/ZzEFMxH1XO7sNvCRb1/5Oyrto/Iy/vXQ/VbIWLOXyUurPY0ZARM5VRDwbssugqra scY93BywnkLAZlk4GG73cK1yh8z8MNkUjYjMc50uPN7u9N4Gb9jOaHp9tCgca/PzaoaP SXEvGyFtOuJio5XWA/uwYbWPyGT9XoPaJMON4AAMQv0GOv+XsmAODYS8zP7n1EE2Muc4 BFXc5KSaUd92zdYhUwizqKSTScpbF1rjUjGAMdzzQdt78WCDVntVoohK4WAAcNBqZapD bI8AYf/UKzI+ZmFem2YnBl2ySKIhB2y1D1HNaTlYYDshxQ/NGBCsB38hgkP3xaRxC9qE Y4GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729158511; x=1729763311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rfwXxKs8PIaYIos0iWI11FlNBR0N0b0qINIDJ43u9VQ=; b=NBoTlHAekpzjHBgxN+pv95KA+EDQ8TZqOjLQDn/6fJ7v5ToexPZ/JZtOQpfOYGtotN 7yXwZSp+Xk5S0jaqhFU5BcG8U3NpEpJbiOuXUZZnephlZf/+qNcWo/2ls2/KQLEjFktq iU+S/GNCsgy0XuN6sJcBHf7iixwKA8jPFPpGC1TjVf69Zo//hVHdT1gdMmNLd9Xc4BhO pGjxtBk6+tcGty4C6T922Gnnd+xtYWZ8eBH3LOM8Rz4myRH7dGBOqxuL1OZJTWacqJ5C Y8RAbRM+VUwmjHWqMnSAFsDN9Kj3tl0lYdcVF/FKQxqfI73ahoLBethY2xfPNi+Ya9y2 agKg== X-Gm-Message-State: AOJu0YwUv6y/q5CeN/Z/vYfbaIeRjxE4+sEGymmkrBkjXpM9QOGvCsc8 eM2IxtAEwprcMHRExQW3kWkUQCcDnyAj7mDjWM77WOdNkixX5PgW9KC06v2Z8Ec= X-Google-Smtp-Source: AGHT+IGzAl2OFA6S9xDWJuD2m0DVBLlwiMdwmaXRwCcTvTu0dK+Cc+T0fsktUtSx/wfralK9s8v26A== X-Received: by 2002:a05:6a20:6f91:b0:1cf:3677:1c4a with SMTP id adf61e73a8af0-1d905ecb8e9mr9815945637.16.1729158511599; Thu, 17 Oct 2024 02:48:31 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([63.216.146.178]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e774a4218sm4385365b3a.120.2024.10.17.02.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 02:48:30 -0700 (PDT) From: Qi Zheng To: david@redhat.com, hughd@google.com, willy@infradead.org, mgorman@suse.de, muchun.song@linux.dev, vbabka@kernel.org, akpm@linux-foundation.org, zokeefe@google.com, rientjes@google.com, jannh@google.com, peterx@redhat.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org, Qi Zheng Subject: [PATCH v1 7/7] x86: select ARCH_SUPPORTS_PT_RECLAIM if X86_64 Date: Thu, 17 Oct 2024 17:47:26 +0800 Message-Id: <0f6e7fb7fb21431710f28df60738f8be98fe9dd9.1729157502.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: References: MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: C6A9510000C X-Stat-Signature: xaoifcrrybpdz95j6o4kggg1g6q81jhe X-HE-Tag: 1729158501-640474 X-HE-Meta: U2FsdGVkX1/DUQV3p1LxkYAHzTKY7OqSUDH5vF+mSXRRX4C6kG7O+OLb//R2nGY43trvEkQR0eP/ulFrCpDZfDqva6IhQLlclBIOcmzD03idvT+dYUxxLpi1WvcQ1zi+30BpvCE5ie4LjecZpnsYVRxO84iveVxPNGS7ZIXpLD4axpjgSY0xdRR0WzDt427POLqht5t1nY1Ue95YSaIecoP0dWdj5mCk/DHxx8IrGtIXgw9bTer8StChBJP+KcYWeP8UuhhFMGMIN45Kp26XuStLTcicizdq6x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X-Bogosity: Ham, tests=bogofilter, spamicity=0.000489, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Now, x86 has fully supported the CONFIG_PT_RECLAIM feature, and reclaiming PTE pages is profitable only on 64-bit systems, so select ARCH_SUPPORTS_PT_RECLAIM if X86_64. Signed-off-by: Qi Zheng --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 1ea18662942c9..69a20cb9ddd81 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -319,6 +319,7 @@ config X86 select FUNCTION_ALIGNMENT_4B imply IMA_SECURE_AND_OR_TRUSTED_BOOT if EFI select HAVE_DYNAMIC_FTRACE_NO_PATCHABLE + select ARCH_SUPPORTS_PT_RECLAIM if X86_64 config INSTRUCTION_DECODER def_bool y