* [PATCH] docs: Fix the name of the memory hotplug online type configs
@ 2026-11-25 19:30 TAKANO Mitsuhiro
2026-11-26 11:13 ` David Hildenbrand (Arm)
2026-11-27 19:02 ` [PATCH v2] docs: Name the memory hotplug online type configs that exist TAKANO Mitsuhiro
0 siblings, 2 replies; 6+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-25 19:30 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc
Cc: Andrew Morton, David Hildenbrand, Oscar Salvador, Dan Williams,
Jonathan Cameron, linux-mm, linux-cxl, linux-kernel,
TAKANO Mitsuhiro
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>
---
Documentation/admin-guide/kernel-parameters.txt | 2 +-
Documentation/admin-guide/mm/memory-hotplug.rst | 2 +-
Documentation/driver-api/cxl/linux/early-boot.rst | 4 ++--
Documentation/driver-api/cxl/linux/memory-hotplug.rst | 2 +-
Documentation/driver-api/cxl/linux/overview.rst | 2 +-
5 files changed, 6 insertions(+), 6 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..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`).
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] docs: Fix the name of the memory hotplug online type configs
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)
2026-11-27 19:02 ` [PATCH v2] docs: Name the memory hotplug online type configs that exist TAKANO Mitsuhiro
1 sibling, 0 replies; 6+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-26 11:13 UTC (permalink / raw)
To: TAKANO Mitsuhiro, Jonathan Corbet, linux-doc
Cc: Andrew Morton, Oscar Salvador, Dan Williams, Jonathan Cameron,
linux-mm, linux-cxl, linux-kernel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2] docs: Name the memory hotplug online type configs that exist
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)
@ 2026-11-27 19:02 ` TAKANO Mitsuhiro
2026-11-27 20:14 ` [PATCH v3] " TAKANO Mitsuhiro
1 sibling, 1 reply; 6+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-27 19:02 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc
Cc: Andrew Morton, David Hildenbrand, Oscar Salvador, Dan Williams,
Jonathan Cameron, linux-mm, linux-cxl, linux-kernel,
TAKANO Mitsuhiro
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 <takano32@gmail.com>
---
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v3] docs: Name the memory hotplug online type configs that exist
2026-11-27 19:02 ` [PATCH v2] docs: Name the memory hotplug online type configs that exist TAKANO Mitsuhiro
@ 2026-11-27 20:14 ` TAKANO Mitsuhiro
2026-11-30 12:31 ` David Hildenbrand (Arm)
2026-11-30 12:32 ` David Hildenbrand
0 siblings, 2 replies; 6+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-27 20:14 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc
Cc: Andrew Morton, David Hildenbrand, Oscar Salvador, Dan Williams,
Jonathan Cameron, linux-mm, linux-cxl, linux-kernel,
TAKANO Mitsuhiro
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, and it
left _ONLINE_AUTO out of the list of values.
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 <takano32@gmail.com>
---
v3: Add CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_AUTO, which v2 dropped when it
spelled the values out, and write the kernel zone as "a zone that can
hold kernel data (usually ZONE_NORMAL)" since the choice can land in
ZONE_DMA or ZONE_DMA32.
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 | 15 ++++++++++-----
.../driver-api/cxl/linux/memory-hotplug.rst | 2 +-
Documentation/driver-api/cxl/linux/overview.rst | 2 +-
5 files changed, 14 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..7118f3372596 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,15 @@ 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, the default online type decides
+what happens to the memory:
+:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE` leaves it offline,
+:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_AUTO` onlines it to whichever zone
+the kernel picks,
+:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_KERNEL` onlines it to a zone that
+can hold kernel data (usually :code:`ZONE_NORMAL`), and
+:code:`CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE` onlines it 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] docs: Name the memory hotplug online type configs that exist
2026-11-27 20:14 ` [PATCH v3] " TAKANO Mitsuhiro
@ 2026-11-30 12:31 ` David Hildenbrand (Arm)
2026-11-30 12:32 ` David Hildenbrand
1 sibling, 0 replies; 6+ messages in thread
From: David Hildenbrand (Arm) @ 2026-11-30 12:31 UTC (permalink / raw)
To: TAKANO Mitsuhiro, Jonathan Corbet, linux-doc
Cc: Andrew Morton, Oscar Salvador, Dan Williams, Jonathan Cameron,
linux-mm, linux-cxl, linux-kernel
On 11/27/26 21:14, 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.
>
> 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, and it
> left _ONLINE_AUTO out of the list of values.
>
> 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 <takano32@gmail.com>
> ---
Yeah, why not:Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
I'll pick this in a sec.
--
Cheers,
David
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3] docs: Name the memory hotplug online type configs that exist
2026-11-27 20:14 ` [PATCH v3] " TAKANO Mitsuhiro
2026-11-30 12:31 ` David Hildenbrand (Arm)
@ 2026-11-30 12:32 ` David Hildenbrand
1 sibling, 0 replies; 6+ messages in thread
From: David Hildenbrand @ 2026-11-30 12:32 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc, TAKANO Mitsuhiro
Cc: Andrew Morton, David Hildenbrand, Oscar Salvador, Dan Williams,
Jonathan Cameron, linux-mm, linux-cxl, linux-kernel
On Fri, 27 Nov 2026 20:14:28 +0000, 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.
>
> 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, and it
> left _ONLINE_AUTO out of the list of values.
>
> [...]
Applied, thanks!
tree: mm/core.git
branch: memhp-7.5.misc
Applied patches will appear soon in mm-next, followed by linux-next.
Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.
It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.
[1/1] docs: Name the memory hotplug online type configs that exist
https://git.kernel.org/mm/core/c/4d77b7e1
--
Cheers,
David
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-30 12:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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)
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®