Skip to contentSkip to conversation

docs: Fix the name of the memory hotplug online type configs

PATCH New TAKANO Mitsuhiro 1 participant 1 message Nov 25

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Fix the name of the memory hotplug online type configs

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.

---
 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(-)
Documentation/admin-guide/kernel-parameters.txt +1 -1
index 176648941aec..8580099b98c1 100644
@@ -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.
 
Documentation/admin-guide/mm/memory-hotplug.rst +1 -1
index 0207f8725142..c7de458a962f 100644
@@ -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.
Documentation/driver-api/cxl/linux/early-boot.rst +2 -2
index 414481f33819..be9d5e510f99 100644
@@ -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
Documentation/driver-api/cxl/linux/memory-hotplug.rst +1 -1
index af368c2bc9cf..df27520b193f 100644
@@ -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
 
Documentation/driver-api/cxl/linux/overview.rst +1 -1
index 648beb2c8c83..d567353e1dab 100644
@@ -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

Signature · 1 line
2.53.0