From patchwork Mon Aug 5 12:55:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13753588 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 825D5C3DA7F for ; Mon, 5 Aug 2024 12:56:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21FAE6B00A0; Mon, 5 Aug 2024 08:56:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D02C6B00A2; Mon, 5 Aug 2024 08:56:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 097B26B00A3; Mon, 5 Aug 2024 08:56:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id DB3256B00A0 for ; Mon, 5 Aug 2024 08:56:22 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 9C698402BD for ; Mon, 5 Aug 2024 12:56:22 +0000 (UTC) X-FDA: 82418190204.08.3087937 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by imf29.hostedemail.com (Postfix) with ESMTP id D2C4612001E for ; Mon, 5 Aug 2024 12:56:20 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=MC5Wsp8b; spf=pass (imf29.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.171 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=1722862519; 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=PiQJiB5+YTgWJEkf+MbrVUnf+za6HpDp7AR+2atGBrA=; b=MkCaR1lWVZvtGQNzIIxV06B5j6lR7x4V9uKjNTy05wOiZeyjFWPzUlbz/tOkvXrSpDi5yN 0bsi+J+r4OAR6r2Q2xPhBL8l1nyBX2v0DHwveWP4u5B4Y1wDbu4Pn1I2JXI1BwelTYA4ml W4kyvI3toWlzXm4KOd6gtWgngVfTVQE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722862519; a=rsa-sha256; cv=none; b=lJpLWt3D9nUiJmSapv1J2mPD3HxV0F79+z2yHleC4RkJqDBwoqUuyf5gXZPrla+U8QmwGn DhnBdVe5SSRtKR2FSir0cay63z8qlnYjxSWDw9oVreFtss6sea6HJupvfs5/7o/9OFhXte CD1+5omVcQI/XiVkWttCGKsNCxud810= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=MC5Wsp8b; spf=pass (imf29.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.171 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-70e9545d8b2so931743b3a.3 for ; Mon, 05 Aug 2024 05:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1722862579; x=1723467379; 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=PiQJiB5+YTgWJEkf+MbrVUnf+za6HpDp7AR+2atGBrA=; b=MC5Wsp8bHYtBQbOSZjnPKNcPLcJfwgMSPPys45qk61+EH6peKenr9UZ6aPJC5Hyg6u KdMWwEkxUiUWACENX1xDdB//sflhX/n+uXk8B9a0Qv06/T/F0Q5MLpvUCEUKXtrQ8UEQ j9qKS/P3yHD/A1DLOBT8vq/fW4a4wTCoGKaWsh2jdj2UsGhdo+85HiRl47vJp2n9+jui uLiYiSczd2PI7tlqLuZ/qCvHiiJ9tKfOZ2fLyUM0fkIGc3NRl4MvuLFYtGaEQAhedXhU lGSSxDaCQ6MzCmVxMFMB9OOlBLTAVGUavmw8VCaGpAbd7CwSuxwdQOU0fR6OE4cp1oxY vwAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722862579; x=1723467379; 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=PiQJiB5+YTgWJEkf+MbrVUnf+za6HpDp7AR+2atGBrA=; b=O05twLPgunvr31vWUBY3YmEtLiiYPe22b3lASDspHhfmgiJJWrhQZC0/tr/rYqABWB b3ITNLX5UYXXi3QvyQ50NSJtMhZyVsiTWDhecB6rKEgBrUyBO9xY2TOfUuc6KtxDNPHL yI6ZxvFv9xlm604+U8mAz7N6cterxj1AiCfbep7bZ3YNtLhHQzdgyM+KOl5xLCmVdxKY uV8cvDAXvvtVEdnuejXE2vzsVZ3q9J6zHNikUGT+PK+Zwr7VqLvYj3ihV2asnAWrzP79 9u4UzsJZQtn3zHBZ7Flr9mJ+LoJKGMZzpwA8mcG1DBeHhqPetG66rwp3UO50sbk9g0wL EdiQ== X-Gm-Message-State: AOJu0YyH8O3iIP/Cfk85bEvSdXmmCCVIRK94vvtmOJ8zBfV09mU2T6yF fR5MZnOe5HylOprDwWtJwmHP6D7opQMj8imOZ8cad3OWeR/OVgaeEvRT7E/G5wY= X-Google-Smtp-Source: AGHT+IFVoFNV/H2C9dHSZ1PBN5mIC2cyRnjqaIeUe5zi3ii7ROXtPfC7wvdYAPcekd2YlYQGHcbP5g== X-Received: by 2002:a05:6a20:9188:b0:1c4:c8ef:8e68 with SMTP id adf61e73a8af0-1c69966d186mr10728067637.9.1722862579692; Mon, 05 Aug 2024 05:56:19 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.232]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ecfaf1asm5503030b3a.142.2024.08.05.05.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 05:56:19 -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 Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [RFC PATCH v2 7/7] x86: select ARCH_SUPPORTS_PT_RECLAIM if X86_64 Date: Mon, 5 Aug 2024 20:55:11 +0800 Message-Id: <0949a17afe11cf108b8a09a538c00c93cdc5507e.1722861064.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-Stat-Signature: wan5udefe3a41subp65j1zjkc88akcw8 X-Rspamd-Queue-Id: D2C4612001E X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1722862580-31516 X-HE-Meta: U2FsdGVkX1+sfM/Nz9NjxFuVHYU6zQkuOc4ipQZ4uvJeu1hRCU7dv8JAIqk01dZ8vuxFFJJBo11s0YX6o07APd0ZLsDdCNQSKd2IuAoP9SsDjMXAvkE24ACTEwZEXQc/dD1LV1FBnVT5ZEVj+tQ1MgW63RAQ2ZIO+z/cMq5bkJJbdYDfsSb2J5F7VYOlgvpLn3o8yk1KqTZfe4LqU+VvL4vWorhdjwoHZHsZQdP0Z07OQ+a2jgSeu7STGyvgtaJLkosfcEwiDBVKNoTEWmnbrrOEhvjZ+hJT59kg3TF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bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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 2f611ffd0c9a4..fff6a7e6ea1de 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -316,6 +316,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