From patchwork Mon Jul 1 08:46:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 13717673 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 89417C30653 for ; Mon, 1 Jul 2024 08:48:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1F3846B008C; Mon, 1 Jul 2024 04:48:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A3C96B00A0; Mon, 1 Jul 2024 04:48:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01E346B00B1; Mon, 1 Jul 2024 04:48:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CD01D6B008C for ; Mon, 1 Jul 2024 04:48:37 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 8E4B5121ABF for ; Mon, 1 Jul 2024 08:48:37 +0000 (UTC) X-FDA: 82290557874.05.3F2AB6C Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) by imf08.hostedemail.com (Postfix) with ESMTP id C6326160012 for ; Mon, 1 Jul 2024 08:48:35 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=SQVRBLPX; spf=none (imf08.hostedemail.com: domain of zhengqi.arch@bytedance.com has no SPF policy when checking 209.85.160.49) 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=1719823699; 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=StMJ2RtFXCKaoVJqaHkGOtRFp2kjcwvK/9x07Wn8pQQ=; b=KkqUwEIypZYblrsrcxuUpn6632KgB6GouWEB2NEaEk5OgSi55LYgeC8VshCGWtC5QaknD+ +ko3v8Q7eKKeRNLFyxcnXYcIApapP1dJeqcq60E1gb8T20MdCiOrusCNTXt13fDfyYkoiP WnILwZxdO3kTSKGLIVP7ctz3nwC+dw4= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=bytedance.com header.s=google header.b=SQVRBLPX; spf=none (imf08.hostedemail.com: domain of zhengqi.arch@bytedance.com has no SPF policy when checking 209.85.160.49) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=quarantine) header.from=bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719823699; a=rsa-sha256; cv=none; b=X08zoNTjWhatyRwIaWq4oj3oNg779jiALTg8NQOvkWijb+a+t5fiDygcMotwfg+2y9pmsX CrSk5SWGPETmJnD+O4je0PnfWXavm+nUrhRvkss0YAXW7fHjvPnlGVtPnTxIOvVRQwenxb IDrQxW+vRRqXKXdFO6m1Kh7hcFOZXvk= Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-254c411d816so363166fac.1 for ; Mon, 01 Jul 2024 01:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1719823715; x=1720428515; 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=StMJ2RtFXCKaoVJqaHkGOtRFp2kjcwvK/9x07Wn8pQQ=; b=SQVRBLPXF0qaQo1OzxNgG7zpL9ytNcPx09CyGQS3InOF5NsvjfhdwCnOa4+7zMsa1v 2xX1ah0x8b669b895IdXyQZ/kSHI5iD81/OrdgjQrzrlPRkmYBBG9nSQ9DJyBd8GHxk3 ckfXV+HuJjgla7iEJbhb3K/BmclsJOx+RBplUy67ciccujrmBBiMwVKkhFXUVLr3geyb 6H6sUSKnwbLySKuqYvhCJeErHZPf0qxiOwbyIqo/lTjGCzATO4gsmW3fQ3RCSNexh2uQ Bp2GTc4s0IFGVn1FU7XfaYVNu9R5KRgExZ5neAtyluWXbvDbR0N8/Q2ZiyAnw+W1gZUX 5eHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719823715; x=1720428515; 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=StMJ2RtFXCKaoVJqaHkGOtRFp2kjcwvK/9x07Wn8pQQ=; b=VstAtU4dFWwCI+G8GzNcFH3+Ld9TEegfvRIwpWkGxk7oxa7KyDoa+9odzT5cBh61zI kDuAOalcfW3XCMbibIvhNgOinlU52vEtL1Pm6x6ZbUMf/a8UlwO5y25qxRu3K6kb7QcC VZQ6k+5ZJyuq8xRzsgakktlacF/+BIhv4b9xLUQwIumCTlclqyvbpNiq16HmbgNVz/Tr UdX7kU+79FELABBSdTrMDTW6CKdFSotp4VKuMtHWaOWUUulKskNytoGDNzHQamDOORnJ gYYwdgaX5a82Eb6LOdy/N8aP7zf4cbCQvNmJoWEwSdKII9Ym70gagCZEk3wKEvE8aSwO +Png== X-Gm-Message-State: AOJu0YyozphZBMlGuJtAorMUYwZjKLNbB23kPdHQ3ewTh370N9H23VOr js9htll1BhTEtIjrDoocO7fkUdeBorjw5Crb/UJCLQt/vthrGOjO0Q/tCwge2Sw= X-Google-Smtp-Source: AGHT+IFE3dKI9Tgl7EIyomU4IdVHY+PmwvfXhSbglMPZKAPvgX4/lADNKj6dPhxAruv+7V80kKXCBw== X-Received: by 2002:a05:6808:1a2a:b0:3d5:65c7:c26c with SMTP id 5614622812f47-3d6b549a9fcmr5659724b6e.4.1719823714723; Mon, 01 Jul 2024 01:48:34 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.241]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70804a7e7e0sm5932374b3a.204.2024.07.01.01.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 01:48:34 -0700 (PDT) From: Qi Zheng To: david@redhat.com, hughd@google.com, willy@infradead.org, mgorman@suse.de, muchun.song@linux.dev, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [RFC PATCH 7/7] x86: select ARCH_SUPPORTS_PT_RECLAIM if X86_64 Date: Mon, 1 Jul 2024 16:46:48 +0800 Message-Id: <0f3aacc9707da962398de71c127e7771c6798062.1719570849.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: rk8s57yqae4u1pq91zu3idjwa3bt1opi X-Rspam-User: X-Rspamd-Queue-Id: C6326160012 X-Rspamd-Server: rspam02 X-HE-Tag: 1719823715-650354 X-HE-Meta: U2FsdGVkX198cAgvVmHncmNrLWY2EXfKvxRJmVExFeiYUmuU41SuO2uDlMr8n/Bb6bSzOk6Pd5hBLLdzhNkpKzHOdt3wkIlRMivw3Wo7FrjEHggUyvkCBS5E2ZwOr0HJVVKW6+WL8da24YpyKyi3iYIgaw9zP2JrXJyYoukcUCUAgGkTAkfcHwfA/X0o1AnLvgW3Ktpujq2+oqTXv4MwgEfRNMzIUaxLrB73JJKa7M3AUVbEMBpxRKqwMGCFSNzkOZazvG+pjHwq99IxYf0/cyk0iFUUYQLP36/zOhNEJJJt+iiLZqYtjN+EWXgt9tFoHn+7YcEFPVgPY3yWe25Ez8U/sz21MLOYRbplyn4Nx8VJP+3aswJYPy8yivKIG27Yil0OkbbgWQTAMNho1CodIzt8/8fvdGu1cRN8hWkw6ZzUeGlI1aRqr8X/jegGSJgJRZU7pMmE00Q1vbHzfUf+69AOaeTuxg5ZDylr5UXXDi5IbuFbSuYofBTTQ9hyLWToJot9PFKTPeB321AUMDPou9rR04B5wb0lAZ33koDcD5OQa9rQnViRuL3NuBWsQW0bZBGXTweOwJ/j7H8kcptmFOotZelr55P91MZBLsJzUoGZlZQrs66P4msscm2WKvPOnr6C6DcyzmiX/1CNm3jvirxCI7MWTWf8x/omYtLY4/zJvLVwKppM84lURITbhOMs4GlQV2sjCQdIkhMv1UAazIjxaTLAF6XQ8Q8RFbM5oHyM85L4Nn+gaBCZzgyvN1p941WAGTe8EZgW7mAjf4JnSYwsNPNWBfMJUUbZUn+y5W+6oxkjqelkIWG0K+bNKyH2LffyrlhXqsgTjW06kQTJ3KWbvSGItuvVsLyFPljHjKZNyWKPM87VwNlr12a+L758PsuWjlMEUyctXFvnsQhcPoQ3gNpL49zWNCohdzHVb9me74w51no3bgyZVO1nI5wXKbFatxECv9BSr1WTxDe TCoaMgwT 2tfeUoVbePcqYip0IP1+e3SKMmyCnJUFJ+nBzxyWUYM3K63RN4zObSDSFO5v5xQki4rCAXbvGeX6c8pJl6pKXfOQ0IaIDGO0rjOEkT2cOkJzltn7XyQnBYVa1LOD+ne5zWQ/FP+GOA0+VB4j24STyKhPDMX4R0RGrHZQcTYCQo+OR2ANNnUiJgaJWOA9uay9kh9hcM/4h/AyKcplkP85TmNJAle6nIN6/tb+oKcirGVRiI+bfHI2F2l2KR1VZTnMDEfSN26i/3+h1ZTbn9T/U1zQl5CJ+5IYRNvgWgefrnYh+26hJRgf7s90nB+etwGEuLPzcDohxBPk38zU0jDiSJrrMVKI7OUeMPcsf X-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 cbe5fac4b9dd..23ccd7c30adc 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -313,6 +313,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