All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: TAKANO Mitsuhiro <takano32@gmail.com>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-doc@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Oscar Salvador <osalvador@suse.de>,
	Dan Williams <djbw@kernel.org>,
	Jonathan Cameron <jic23@kernel.org>,
	linux-mm@kvack.org, linux-cxl@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] docs: Fix the name of the memory hotplug online type configs
Date: Thu, 26 Nov 2026 12:13:19 +0100	[thread overview]
Message-ID: <d1d7e82c-a113-48e3-801e-61dcffc4c747@kernel.org> (raw)
In-Reply-To: <20261125193039.2437025-1-takano32@gmail.com>

On 11/25/26 20:30, TAKANO Mitsuhiro wrote:
> 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:
> 
>   Documentation/admin-guide/kernel-parameters.txt
>   Documentation/admin-guide/mm/memory-hotplug.rst
>   Documentation/driver-api/cxl/linux/early-boot.rst
>   Documentation/driver-api/cxl/linux/memory-hotplug.rst
>   Documentation/driver-api/cxl/linux/overview.rst
> 
> Spell the family with a trailing _* so that a reader looking the symbol
> up in a .config finds one that exists.
> 
> early-boot.rst also gives the zone choices as _NORMAL and _MOVABLE.
> The symbols are _ONLINE_KERNEL and _ONLINE_MOVABLE, so write those.
> 
> 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/ after
> the change.
> 
> Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
> ---

[...]

>  		       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..be9d5e510f99 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
> @@ -61,7 +61,7 @@ SystemRAM.  This will expose the memory to the kernel page allocator in
>  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`).
> +(:code:`_ONLINE_KERNEL` or :code:`_ONLINE_MOVABLE`).
But combining "CONFIG_MHP_DEFAULT_ONLINE_TYPE_*" with "_ONLINE_KERNEL" doesn't
make any sense. What am I missing?

Maybe we should just spell out the full config names then?

-- 
Cheers,

David


  reply	other threads:[~2026-11-26 11:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 19:30 [PATCH] docs: Fix the name of the memory hotplug online type configs TAKANO Mitsuhiro
2026-11-26 11:13 ` David Hildenbrand (Arm) [this message]
2026-11-27 19:02 ` [PATCH v2] docs: Name the memory hotplug online type configs that exist TAKANO Mitsuhiro
2026-11-27 20:14   ` [PATCH v3] " TAKANO Mitsuhiro
2026-11-30 12:31     ` David Hildenbrand (Arm)
2026-11-30 12:32     ` David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d1d7e82c-a113-48e3-801e-61dcffc4c747@kernel.org \
    --to=david@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=corbet@lwn.net \
    --cc=djbw@kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=osalvador@suse.de \
    --cc=takano32@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.