Message ID | 20250129224157.2046079-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 B3FD9C0218D for <linux-mm@archiver.kernel.org>; Wed, 29 Jan 2025 22:43:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1D2C428008C; Wed, 29 Jan 2025 17:42:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DA4D328026C; Wed, 29 Jan 2025 17:42:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A9585280271; Wed, 29 Jan 2025 17:42:54 -0500 (EST) 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 4883428026A for <linux-mm@kvack.org>; Wed, 29 Jan 2025 17:42:54 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 01E951604C3 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 22:42:53 +0000 (UTC) X-FDA: 83061965868.22.E2167FD Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) by imf11.hostedemail.com (Postfix) with ESMTP id 2DE2C4000A for <linux-mm@kvack.org>; Wed, 29 Jan 2025 22:42:51 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=gxnUw1R4; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 36q6aZwQKCPUcsaidlldib.Zljifkru-jjhsXZh.lod@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=36q6aZwQKCPUcsaidlldib.Zljifkru-jjhsXZh.lod@flex--fvdl.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738190572; a=rsa-sha256; cv=none; b=T3vrpOujUK5AZVQCxNIttM8EdXDlJMyE5CJ8sJryg4fLE6vz2L7xU6ti/aCKTJzu5/x3Mr OZPDZnanadN7FDY896GgjYx2tGNZ50SnD7qaG3iaS2BrfLK7A1lMztFwFUeQx9vguACX3E wgqz84JA9OekZ30Aa8zt42WyoSyRWE0= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=gxnUw1R4; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf11.hostedemail.com: domain of 36q6aZwQKCPUcsaidlldib.Zljifkru-jjhsXZh.lod@flex--fvdl.bounces.google.com designates 209.85.214.201 as permitted sender) smtp.mailfrom=36q6aZwQKCPUcsaidlldib.Zljifkru-jjhsXZh.lod@flex--fvdl.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738190572; 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=AoJf8WYkq2++pdJf3q+XlVXAelsg3iuTeBIdSxOWzqC0QUV6jmOPdOnyPpU8xXrNDhswpp 2EI8oqNjmJ5cLfXuR1dKGQS3E83QZTagLKxZnTuh9otsU1MnHkxt+2HIuhk+7pI8qJBWHf EXMXBdqvJQDBy++0iYILq8AMBB5aSto= Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2166f9f52fbso3851985ad.2 for <linux-mm@kvack.org>; Wed, 29 Jan 2025 14:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1738190571; x=1738795371; 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=gxnUw1R4AylKM5W5wfy2EWy7ap4iBFF4p3f0+PW989XrAo4wF43NMzBK+/P2J6Xks4 uDQxdR/t2IFWWGstpP0H3+OJSj0j8ELRIUf9QA6fWYLkMSjkpvFQXoYjm+1hxboypE6j 8vJ10ajLGGjrZGnsjo860k2lnJ2mojsf8BZXk9YJBAGz2f6/6pI0gJBQLehOvuz4YcJ0 rnSBp4/r/NlDRjb0n4Bpitq3yw6X9IBv1xXWAHEHM89sYymDPyDxD8DXwcIZZgkh2+rP vuaMAGwetLnTTrl3V4MfYXjoQwhin9ZyiKJtOa0rvUWk7IlceV1SN2Mtn03iLLY2W2Gy wyvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738190571; x=1738795371; 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=ct/z24tvjy51cmvZ8I91Ii/bQbju54BM1s51zQJaoF8u+gsVVK9NrwTtg07tfy10en JPpuqHMaY7GjgGkZiwOJ2yKTnDPeY4YiP1c9WEimaTuE3fQBJpybGj4V4QdtAugP6yE2 14et2EIh8s6YNn2WMH8jYzz6ZgIDlffO5p3RgZ9QIUDvEOhNB5HzJK32ZGyr5bF9oAu7 W3J8JByrrv5aH5hu+2dditgE17VucfROSa6TH6fivihQADsCbC2+PPi4Rdo4nBbmB17e 4VJelAmO4JwTuh9u9uIOlzYvD7PDucuq93u4QFzAc+jFuG5P7+4txPxY3r41cJeTI6C3 U58Q== X-Forwarded-Encrypted: i=1; AJvYcCXVg8vHCGjcusqF6uAYN+CGqgkM/MbcmxblfCASzDUTRgw+0Fs4Kyg967PjXZbm6Ve3VABnSr2neQ==@kvack.org X-Gm-Message-State: AOJu0Yw5rwXFdSLJDVj4iaNy4TgZjW6xrQ7jhfkSNzs/wDM5xU2/XlMy lj3b4ICsL/1uCHqfUKqPeHZVYsxL5M+HghQsmMJTCkVBLIszdrmyeLWrZ1TsmmgsPAlb0g== X-Google-Smtp-Source: AGHT+IGDZN67byriIZ5TIJ74e/Xl+F0BuBhYUaCM7mwYBiMBi2VTra4u5+oA1ptyGp1vtiEeW3/9K7g+ X-Received: from plgi2.prod.google.com ([2002:a17:902:cf02:b0:215:ac55:d3ec]) (user=fvdl job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:f687:b0:216:6901:6847 with SMTP id d9443c01a7336-21dd7de1cd0mr67719505ad.42.1738190570966; Wed, 29 Jan 2025 14:42:50 -0800 (PST) Date: Wed, 29 Jan 2025 22:41:51 +0000 In-Reply-To: <20250129224157.2046079-1-fvdl@google.com> Mime-Version: 1.0 References: <20250129224157.2046079-1-fvdl@google.com> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog Message-ID: <20250129224157.2046079-23-fvdl@google.com> Subject: [PATCH v2 22/28] 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, usamaarif642@gmail.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-Queue-Id: 2DE2C4000A X-Rspamd-Server: rspam10 X-Stat-Signature: yg7pzbu6jpubhdfmez745d5u3mf76mu3 X-HE-Tag: 1738190571-914369 X-HE-Meta: U2FsdGVkX1+rkqV0vJLmC/FYShAtMw/XUoonFtOa15+w74hODr+hbY8D4Y0YdUktz6fSpfK9IW8ZPWWR0p4gWNHLXtcYyINzufIRuOI2z6PDAGG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y8Ro/rki+TqYsfEmZYNqAXKqb5lTxdNgrVvaK5Udh5XnTGoCgmZHXw8rmtCigTfrl7ia7u51KCFU+Uk/7DQjY6IPI2P5Mf6xYmq73rLMHXsPinJiLdA3rX3JUToiqMJsE6nYGtt6EuSq5lqjJhKR2awb/kcoubW6CFaIJ/+BgXLPfqNIOnqragiXWGia/VykOP0QuiUobSYJVk9IfA/GvKoL3MsSa4i8iJzHj4u77xRnsVliM3ew66ALy+SaY+oNJK+YqJf6sR18lvCZ2ZQXX+6JOmupoyoU8Ucg816Pa4XoGOWo7lwgsUZpiW5KqFAkkG0LhwGdl8EmVUkA7IcKbe9VPGyn+HuSKnxjx9HD6qVhAI+XNQmq8/c9B6RcwU18Utc0ab1V+ohmtI= 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: <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(+)