Message ID | 20250127232207.3888640-23-fvdl@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 9BD60C0218A for <linux-mm@archiver.kernel.org>; Mon, 27 Jan 2025 23:23:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 105452801CC; Mon, 27 Jan 2025 18:23:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CA74F2801CD; Mon, 27 Jan 2025 18:23:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E3462801DB; Mon, 27 Jan 2025 18:23:06 -0500 (EST) 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 4C7F32801CC for <linux-mm@kvack.org>; Mon, 27 Jan 2025 18:23:02 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 05B2FC07FB for <linux-mm@kvack.org>; Mon, 27 Jan 2025 23:23:02 +0000 (UTC) X-FDA: 83054809404.24.35E06A4 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) by imf11.hostedemail.com (Postfix) with ESMTP id 3669B40014 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 23:23:00 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="hn/ow3IT"; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 3UxWYZwQKCCIDTBJEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=3UxWYZwQKCCIDTBJEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--fvdl.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738020180; a=rsa-sha256; cv=none; b=avLwjTp0yD+2l73+pc/WNVszzj+gfVpeJByCU7dsfcCMq4M7lwMxtnVzG34NwFmKL9s4K2 6VhyOkuz7ehlw9LWXnv+apThivJop2Vxb2BsSt78rRrCyUPLyH2pJJ2laHF3nIlI2jLsfD Yop6V2+KR+fWTYVEYanRrleGA8KOpL8= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="hn/ow3IT"; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 3UxWYZwQKCCIDTBJEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=3UxWYZwQKCCIDTBJEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--fvdl.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738020180; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Cb+6DeiIrDYs6+D7kWz+SSV0N/KlwTlgW0EvhXblryk=; b=W1kcp3BbAq5Pa5Cj6KAYYcCSD8GH6Zqq9gFTsOQAcHFOCSHTI7V92dRyZFdE1apolxat23 SISNW2eF/yzVfDEO1AwHfUagC7ON5tX1rTNlUYBXevjRyS0q+IJ2o2VGNjDbQla7yORJul rcOS8X3AqKLzyDugfFYSW9TnacQRi2M= Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2166855029eso95147195ad.0 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 15:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738020179; x=1738624979; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Cb+6DeiIrDYs6+D7kWz+SSV0N/KlwTlgW0EvhXblryk=; b=hn/ow3ITP3xMbhLU5lki2ZV1LO0OSpkVcnuDezEZL5ezVNpLae6mp1LFE7JhwOnEXf ZQdTC9Z5L0rtKfr4ki44jmiQSC4/N7Hd4Z41xs3HhfNdnhI8vZvHXtylGJU7jhuNnBr3 TGbP6Z1msQAl3rQCIr783f2ntIpq2WePOqzKBSryDagnNDlKk3yCgqvjw5WulZh8Uh0x ZOaQmiQMQqvnCU2qjdc72HxRGMcoKBC1E3nEUvRqO3rKItikTV60x2grdteJ9eo2Hnvg VtZmsp2gFo0rfw0LD8dpZvvizBtvXLmmgELZW28l1iu1E+zVzBySTs9vW81GQ5wJeq47 jZ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738020179; x=1738624979; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Cb+6DeiIrDYs6+D7kWz+SSV0N/KlwTlgW0EvhXblryk=; b=ZctXDHfZuubO6pSBuiy9sRNWXiLn2lMAdU8bqWOv+5m5ZamF0TEQci1YgnjPXKM36N W4DYlrBZB8v4BRvmFPi5V+VmZFIguTQXtAgd1INoe3IhjcbIL+bp7aqE/tL1r6i7jxZ9 Q7qAAFPlm/rZsbFViKB0yeueEZOM3+7d+bgz7EZggHFk3adRdlboyzGyAzOCGBRZSxD1 U45FoMKkqc5SkHKupbI7ySeYhp6ISYhOojQ6Aeg7PFk5pufKzK6XZa0wX6pr6FwwzYQL Q7HUCQ/WrUx7viwvn7nFOLxTZsTLj43wcdI+Svo2HhgM98vkUA0hNH8bPpM6010vbR02 V2UQ== X-Forwarded-Encrypted: i=1; AJvYcCUNE1ZET7JsGJgOxcIxbLWVuV82xnID6JMIj1D2Q5pWdbKpfaXec0+QdUs1GSUmG3L91Npd520v0g==@kvack.org X-Gm-Message-State: AOJu0YzKWExaTD6HtyeuRUckm44VBL9M/QfQAdaZXFAL/xlm3+CirtNG +TJ+jGl1/vBlbz8JyDMDEvWwdYpPyoiAeBB5hojbnU2vats1jj+Hk/WOak4PiE0SJe3gKQ== X-Google-Smtp-Source: AGHT+IGqg2/Gc3mmj4AUptzXihhmAv8IJmloiWtQqdzdRu1x7uiKXeG3jkyVwNBKlKTE+Qd2VVx//pyw X-Received: from pfxa31.prod.google.com ([2002:a05:6a00:1d1f:b0:726:d6e6:a38]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:258d:b0:1e6:50a0:bbc5 with SMTP id adf61e73a8af0-1eb214e850emr65655680637.21.1738020179102; Mon, 27 Jan 2025 15:22:59 -0800 (PST) Date: Mon, 27 Jan 2025 23:22:02 +0000 In-Reply-To: <20250127232207.3888640-1-fvdl@google.com> Mime-Version: 1.0 References: <20250127232207.3888640-1-fvdl@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Message-ID: <20250127232207.3888640-23-fvdl@google.com> Subject: [PATCH 22/27] x86/mm: set ARCH_WANT_SPARSEMEM_VMEMMAP_PREINIT From: Frank van der Linden <fvdl@google.com> To: akpm@linux-foundation.org, muchun.song@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: yuzhao@google.com, usama.arif@bytedance.com, joao.m.martins@oracle.com, roman.gushchin@linux.dev, Frank van der Linden <fvdl@google.com> Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 3669B40014 X-Stat-Signature: ehgbhpo8x3gzyaeokkqo3ddy4mai86nf X-HE-Tag: 1738020180-777619 X-HE-Meta: U2FsdGVkX1+Xx3LYSF/Pd8SRNSFaMk3aZTdt+IyUDshMkRtFZea0yMecY7YXu7TP9JIqGKT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MALEBODK5rYKyHm6H1ez2iXIV/2LQG/s807FVgHyeTqW/7j3A0fcFqrSSgzkQfH1cIj7f8XMt/rJiILvJh1T5BzT/N2+eYxmg87B2NgF/eY4Xy3+t5/gT8Ap8TbI6cUxyXqnIEKdMD0+HCThWNvXyEvJeER3jrgr7sTJM2ELw2QeUIsNRMyNV0YJBn8VF3rfVRS6KpdNFlXCLPjb/rL1osTywlLW2cQXCLBDeUEBz/OKvNW5QpszDNL7yyqppSggBsgBT9ooXS21gSxHmLdhGYzCj8ga2Qt8xWb1AEAOzm8YmilW8PPxma6q1gfB0IO4Bi72Lg4ihqNAC0qAfmAsK40C7arTJSk9ezlE5XgvG9xXtbkRxtFM08REeGwWKBxF9FtozoaBkbhM9AqRO3JAshRI0GN8eXpGywUy5aY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000165, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
hugetlb/CMA improvements for large systems
|
expand
|
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 87198d957e2f..ccef99c0a2ba 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -146,6 +146,7 @@ config X86 select ARCH_WANT_LD_ORPHAN_WARN select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP if X86_64 select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP if X86_64 + select ARCH_WANT_SPARSEMEM_VMEMMAP_PREINIT if X86_64 select ARCH_WANTS_THP_SWAP if X86_64 select ARCH_HAS_PARANOID_L1D_FLUSH select BUILDTIME_TABLE_SORT
Now that hugetlb bootmem pages are allocated earlier, and available for section preinit (HVO-style), set ARCH_WANT_SPARSEMEM_VMEMMAP_PREINIT for x86_64, so that is can be done. This enables pre-HVO on x86_64. Signed-off-by: Frank van der Linden <fvdl@google.com> --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+)