From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795806133; b=vH/i220p+b2s+dVaKoO9VAdL/sNuL7AgFab2h6NKZ5Cat2uOq9ybWWi9KUGl0UjOCwOX rCc2lN2i8YrKZ/oukDbC5P9cMHMXFpG4zofbyd50EzhBG4yg6QAFzx5HT5q9V8EVbicJz lcdec4yqOGwSIdjDsjFJ4ngNwtjGqHUwUOA2tzEnDcYnmiGIpVjvqtx6wurZNGDjwsHSM tU+e4bDdBBFY7LET2QGX0bTHQrcLc3UIhl81VIyTw8XH4ykfM8rrJY84J69/4rgMcfHX9 viol/llX7bEB3JY6pGLbVbFdoWmVTPHRcTyXBoUCRNquvQWVTO3+RRA1QbUiaRVORYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795806133; 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=1DqUY3yqXuBYCX9eURodbQ5uIpx+KNzHaJmeF1wevGYW6nL0F2uUULAEt9bPLKMgaojp FqIveGFG2csKpSvzvZuvkVu4KXFvRzcvXulb3uP14HPglT49GZ/SVynjjlFaeTS/C8Usi Gx8dl+bg/Lyoeb36Y7ArNfn3WV7/GF10N5A8kpZdqCHUYqe1VFVTF8zD8tYnBB/x4aN36 90D9EUXjlrAZRadzvdBtOC45vNjcJxredTpZYz8DU6VEGXhJ38t/n9o7K7nOUu3ptdORC CbVku3OjSbSvX0IGx5JCTBDXmFr7X5q/kuIs5brmFWuwkjx4B209rjYW4tVEmxDmqkQ== 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.42 Received: from mail-dl1-f42.google.com (mail-dl1-f42.google.com [74.125.82.42]) (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 5A749606A323 for ; Fri, 27 Nov 2026 19:02:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5A749606A323 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-f42.google.com with SMTP id a92af1059eb24-1aefd1bf74aso4777206c88.1 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=0hitscLkuWU6LbIGBz7SPszVb68m+ww3e2fTuRAdwEfBtDMxVBU0iEuRSlWWB6Flj7 /RN1o5oSFxvYbXu0RnDfcv5jE+v4iu2MwhtcR5CXvMYAm6qWcjvkiaSnTjSy9UDtjUCx eOJ6sWcimqhCauHr3KzDpxbM6TSZm5kO4NoCGbH3uXwDgQlfc9ZFEoKoLApfqqYFRwjK 7LQP160LsARCadFamrwkBtvR24OwW3UfOR5DLn0i0LOsAi+BjRqzUDdX5hgBgcl4eLgg bKG8+vUid7/BQi4Yq1LzTDC4WU/5w99Q5Q4kHODJUu7X5cP7YWtEOpUkQv8eqrUUQI0u 4lmA== X-Forwarded-Encrypted: i=1; AL+hErGELEKvoVX9I9k9mkrXNl5HIOChORKEe8/hicvX9CQs5aGe15gV84k/71Kc6S9SpXItwRllVJZAr+U=@vger.kernel.org X-Gm-Message-State: APuU4Z86U05MvMwYFJAt+84mFgqn1vJTtec/kl3W8Varej5yDzZbTnGt hLAHM360dQTMOUN1CKUj3x7LkA443vR5xvquFmif4WtHtmsw+o7pSj0o X-Gm-Gg: AZFdTZfnRHG3T0uvmHPX2tkziR7ENHtSMLnd95evaSh6Li+YmpSFqI4iYlXHz+2ksrk T4vbBBlSQu+Q3wvu2v/VwN73EZ+3Z13Qc76Es/GYNomLMeCs5clI1PdpVIAN9YVpxVHVOuJpFPT kyh8QXl7lrSXfeXpGLG2lxca4cdsFyPKc8swLuU5m/bIramcw88xC25I+2hcAi5uRRUEVvwyQjS 69+2BpONbPxBlUfGhh+mbNClQ/z5gJPrOXPdV3RdZnNstatGxn90MwW4F871sCSH1r/7Kbw9XWP 5swOBGA+1I7nq12ADbB5AqQ5U/1PnAG3JcxoSBH7Y99kxnd+SZ4FLwtdPEbcCyEWvV1JN6dy1VW vF/YrG3dyTp3wl3IJrfQ0ruGx8xoR2zA0LXKt7FGwzSfFxvlDQeSGJ+7/52KnxNHrB87g3RV772 35eA8zoIz0ijqVCXpyhhHlvFqQiCmCXuzNobZrchtlt9d2q27ARAuOyBY66DMjNqF2qKXkffphV 2/ZL6RsE451BkAG5sVT7WAT9qLRJjqnf0RwyipT+PFn7C95Ohwnf7CvvaCSm1QCbzO25ECNOiBt kJN0drBvG4rz/KhykxN9 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-doc@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