From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795806132; b=tBFU6LH4aZgSnsg2zDD2V8MAaihJUW++92ZIve4O5+xaxKknvpxZCyCPZZs1Zd+tQl7H dk0bj8/Kf0Ebwu6Nr3kvR7FNun31jIHfaMKdJME49D4BqQW0mmdTeIZoIx8h8DWHyzo2R 1QfUxLwdiFug10CSOpmRY/cLDfZnVZ4VXzQUi3/6xbR0UibrZ09B/VWhYcUfWX+gWkHB7 Hr7lL8B7V5m5aWnl4sMwH5tvFQGvEvgQXqR1pxy9OUywBUyflGOz5bGXJDIAfvPkp9uOd aQKAobC/SF7fxMlcig1uXDSWUBql/mFLkV8gkwe2VhMuiRapVfxd0/zr2tNZvMRGUKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795806132; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=zkQBPyKgHhzReYEqUfH52eqklLDsrHQN3rdcMHP01SI=; b=IckolRk0ga/UzrUpkHIgaiwLyRZhdipIOmiqmlR5jc45RtZzbTQ2wxH4RyiW8p+/AljS JckFjnBNwSAHa4EdH3DTQhsVbZcTAYvkfBGivD2iUnLoxZFUeR8k6gPqslS9C8+dKxhSl WNoyB4hZvUZEU6Iwf+NWlrMj0u3xpcpoEyAd7QA1n+vR/KO4aFp+OBpd9FZC1J3SMu8K7 jlDxIrd7/IhkvLujReNeMHBlJ0Hh80kUqnQ8tM2n0eBFduUgywXaAJtKwEKG6fjMhqPvP Szgv6HTs+tadl/acbXXc8RXb/1gdU4YCx05NyvY+mH2Tx24qbYpTbEVFHmTcR5QPleg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ENoUf1Ar; arc=none smtp.remote-ip=74.125.82.50 Received: from mail-dl1-f50.google.com (mail-dl1-f50.google.com [74.125.82.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A2E1606A31F for ; Fri, 27 Nov 2026 19:02:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5A2E1606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ENoUf1Ar Received: by mail-dl1-f50.google.com with SMTP id a92af1059eb24-1b563e5cbc3so953088c88.0 for ; Fri, 27 Nov 2026 11:02:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795806131; x=1796410931; darn=vger.kernel.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:content-type; bh=zkQBPyKgHhzReYEqUfH52eqklLDsrHQN3rdcMHP01SI=; b=ENoUf1ArcEfIE2J7WrvZgIIMCYa4qWfn/gtvnY4g+FpJfoheJfm9CBabxVkguJTPUP YQfjn7Vl3LN6DzpCxX5sW7o/Ng56wA6wxD7Q2pWnbn94mfSHn5DyMQMO5IRoTlGV5Tu8 Q1/0fcIA69vkPToJSVsdZpA2IXZOFCoHOi89tSVF4pihin3oEpDQiZSI5plyB2rNVkPl 8HAxisjmU2AreweJcKethZOCv1qYvUvtH5JwBsXSvanho6QP2iyc+g0vEs/40RdCqhcj h3RiNO1IlZDS8WBJQTRBBiITDlSwLsfeQlUOSEOCgy0ZToiTU7K6AjUsqfsZdegDpI2k 2/6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795806131; x=1796410931; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=zkQBPyKgHhzReYEqUfH52eqklLDsrHQN3rdcMHP01SI=; b=owk/gkxC43gndhNBu61ldJJ3O9iE4iylyQEDnKI7CycDp7yh5BO3e3K8bj9rHhNzlQ UqUt1x0fEasrGXHYW1sOrLr78OY8dGEKQFqSwWDua/hPlLEBhFxJ584zNi+fRytCfFNv /0VtsnJhlvzS9XasgFAeuMBacreMCouc05+AHm+dn+DPclXb9ZxNsCNDJgPOAcMNjXGL zRvcb6UxksmzC8r8xuvieHOw9laKEVjhAHC/8Xmw/QUMMziT2QG2JNonUoHXAZH5oGiK YOTJgkm0yz4Z5BKa95pSIkpq9yBAXGtn4VJGobC2QwGDnfdt5MRbNnKBzdsRkFpbVSH6 H3AQ== X-Forwarded-Encrypted: i=1; AL+hErG5QBc6eS5NurzhpX9XfWAMV0ZTAkQhRS9WquQrRP4yBnBaUYk1dkAs2Ue3uSguAaRKjyxgimdI7qhbiQg=@vger.kernel.org X-Gm-Message-State: APuU4Z+ZtXY88Kfb28LUTgvKXA5wBGGFbsvGA7RcF1QKPXTQUmlr7WqO A1ZqwfUSzCH34zWwZQr47NsPKxT650U25vivHs/N55XkCF6dI1fnw87B X-Gm-Gg: AZFdTZf0STG9GRnR737LFIU4c+OWRx9dtlNZxHTuEINgzHavxGH9eKcqnVa7om9+Q7m 1wS34rMNUhBCGt9pAF1aPKdZxMxuBCgNVJG2JWYhlm/yw6Sqh71Zc5tu+gdgN48zULWdP85Arvy iHRZ6mkplDHDymJh9Lkqavu5fqwqukCKaOoHI3xTY0jjqEy2kwOxYhnohC3TAqBmt5T0WEdDy3m RO3PXaevAH9CwWKi/Q43Wqr/A56p6/Y8ZCyo8ROu1aSqTQac/UGRIP1vPpWTV5ZFSQGxV3i35dk Q724iHGBqsuvaRPTg1FtQj/FbgiVcIwWqA56MOowCceva7wC47BlhafjlmVNYfs/XJaevcDPk0X KBquo0kMEOSNOlpJ2hzsYVo2D2OPn9rhoWaX5YigY471FtU75HhouA7IDc4ELFGchPzflbFwQmx EKVU3Wl0JH9hs5RsC94XiPelZgSUYHANGGGrKay+GbjtwnRFK6MMLCVoYJgX2tT1xQQVZx6iDhk eLRIhR+I2aTBkvZpnWiNmS7/nDYAmuF8bEAzQsJfki309kld6HXlvwS7/Wn0Ign7tpuw78RrLbH XR/vgmSQUfvV9R89+X8B X-Received: by 2002:a05:7023:a41:b0:1b2:67f9:43cb with SMTP id a92af1059eb24-1b5525e786cmr25527192c88.17.1795806130946; Fri, 27 Nov 2026 11:02:10 -0800 (PST) Received: from a1-free ([2603:c021:8021:f000:0:1865:8c38:18fc]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5566c3052sm58116574c88.1.2026.11.27.11.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 11:02:10 -0800 (PST) From: TAKANO Mitsuhiro To: Jonathan Corbet , linux-doc@vger.kernel.org Cc: Andrew Morton , David Hildenbrand , Oscar Salvador , Dan Williams , Jonathan Cameron , linux-mm@kvack.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, TAKANO Mitsuhiro Subject: [PATCH v2] docs: Name the memory hotplug online type configs that exist Date: Fri, 27 Nov 2026 19:02:07 +0000 Message-ID: <20261127190207.245175-1-takano32@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261125193039.2437025-1-takano32@gmail.com> References: <20261125193039.2437025-1-takano32@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The default online type is a Kconfig choice, so the symbols it defines are CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE, _ONLINE_AUTO, _ONLINE_KERNEL and _ONLINE_MOVABLE. There is no CONFIG_MHP_DEFAULT_ONLINE_TYPE symbol, but five files name one. Where a file lists the config, name the family with a trailing _*. Where it names a choice value, spell the whole symbol out: early-boot.rst gave the zone choices as _NORMAL and _MOVABLE, which are not suffixes. Verification: a build of the tree defines CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE and no bare CONFIG_MHP_DEFAULT_ONLINE_TYPE in include/generated/autoconf.h, and grep finds no reference to the bare symbol under Documentation/ afterwards. Signed-off-by: TAKANO Mitsuhiro --- v2: Spell the full config names in early-boot.rst. David Hildenbrand pointed out that CONFIG_MHP_DEFAULT_ONLINE_TYPE_* with _ONLINE_KERNEL appended does not parse. The other four files keep the _* form because they list the config, not one of its values. Written with Hermes Agent, an LLM assistant; the author reviewed the wording and the diff. Documentation/admin-guide/kernel-parameters.txt | 2 +- Documentation/admin-guide/mm/memory-hotplug.rst | 2 +- Documentation/driver-api/cxl/linux/early-boot.rst | 12 +++++++----- .../driver-api/cxl/linux/memory-hotplug.rst | 2 +- Documentation/driver-api/cxl/linux/overview.rst | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 176648941aec..8580099b98c1 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3948,7 +3948,7 @@ Kernel parameters [KNL] Set the initial state for the memory hotplug onlining policy. If not specified, the default value is set according to the - CONFIG_MHP_DEFAULT_ONLINE_TYPE kernel config + CONFIG_MHP_DEFAULT_ONLINE_TYPE_* kernel config options. See Documentation/admin-guide/mm/memory-hotplug.rst. diff --git a/Documentation/admin-guide/mm/memory-hotplug.rst b/Documentation/admin-guide/mm/memory-hotplug.rst index 0207f8725142..c7de458a962f 100644 --- a/Documentation/admin-guide/mm/memory-hotplug.rst +++ b/Documentation/admin-guide/mm/memory-hotplug.rst @@ -280,7 +280,7 @@ The following files are currently defined: blocks; configure auto-onlining. The default value depends on the - CONFIG_MHP_DEFAULT_ONLINE_TYPE kernel configuration + CONFIG_MHP_DEFAULT_ONLINE_TYPE_* kernel configuration options. See the ``state`` property of memory blocks for details. diff --git a/Documentation/driver-api/cxl/linux/early-boot.rst b/Documentation/driver-api/cxl/linux/early-boot.rst index 414481f33819..c3a3def3b3c6 100644 --- a/Documentation/driver-api/cxl/linux/early-boot.rst +++ b/Documentation/driver-api/cxl/linux/early-boot.rst @@ -34,7 +34,7 @@ which dictate how memory will be managed by Linux during early boot. * Linux Build config option that dictates whether the kernel supports Specific Purpose memory. -* CONFIG_MHP_DEFAULT_ONLINE_TYPE +* CONFIG_MHP_DEFAULT_ONLINE_TYPE_* * Linux Build config that dictates whether and how Specific Purpose memory converted to a dax device should be managed (left as DAX or onlined as @@ -58,10 +58,12 @@ SystemRAM. This will expose the memory to the kernel page allocator in :code:`ZONE_NORMAL`, making it available for use for most allocations (including :code:`struct page` and page tables). -If `Specific Purpose` is set and supported, :code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_*` -dictates whether the memory is onlined by default (:code:`_OFFLINE` or -:code:`_ONLINE_*`), and if online which zone to online this memory to by default -(:code:`_NORMAL` or :code:`_MOVABLE`). +If `Specific Purpose` is set and supported, +:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE` leaves the memory offline, +:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_KERNEL` onlines it by default to +:code:`ZONE_NORMAL`, and +:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE` onlines it by default to +:code:`ZONE_MOVABLE`. If placed in :code:`ZONE_MOVABLE`, the memory will not be available for most kernel allocations (such as :code:`struct page` or page tables). This may diff --git a/Documentation/driver-api/cxl/linux/memory-hotplug.rst b/Documentation/driver-api/cxl/linux/memory-hotplug.rst index af368c2bc9cf..df27520b193f 100644 --- a/Documentation/driver-api/cxl/linux/memory-hotplug.rst +++ b/Documentation/driver-api/cxl/linux/memory-hotplug.rst @@ -19,7 +19,7 @@ Default Online Behavior The default-online behavior of hotplug memory is dictated by the following, in order of precedence: -- :code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE` Build Configuration +- :code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_*` Build Configuration - :code:`memhp_default_state` Boot parameter - :code:`/sys/devices/system/memory/auto_online_blocks` value diff --git a/Documentation/driver-api/cxl/linux/overview.rst b/Documentation/driver-api/cxl/linux/overview.rst index 648beb2c8c83..d567353e1dab 100644 --- a/Documentation/driver-api/cxl/linux/overview.rst +++ b/Documentation/driver-api/cxl/linux/overview.rst @@ -17,7 +17,7 @@ are generated. i) EFI_MEMORY_SP ii) CONFIG_EFI_SOFT_RESERVE - iii) CONFIG_MHP_DEFAULT_ONLINE_TYPE + iii) CONFIG_MHP_DEFAULT_ONLINE_TYPE_* iv) nosoftreserve b) Memory Map Creation base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f -- 2.53.0