Skip to contentSkip to conversation

Documentation: Add ARM64 for reserving ZONE_MOVABLE

PATCH In review Dev Jain 2 participants 3 messages Jun 4, 2024 – Jun 11, 2024 Documentation

lore
Share & tools
lore

Dev Jain

author
#0 lore raw

PATCH 1/1 Documentation: Add ARM64 for reserving ZONE_MOVABLE

kernelcore and movablecore kernel command line works for ARM64. Update the Documentation to reflect the same.

---
 Documentation/admin-guide/kernel-parameters.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +2 -2
index b600df82669d..7282d6057e32 100644
@@ -2544,7 +2544,7 @@
 
 	keepinitrd	[HW,ARM] See retain_initrd.
 
-	kernelcore=	[KNL,X86,IA-64,PPC,EARLY]
+	kernelcore=	[KNL,X86,IA-64,PPC,ARM64,EARLY]
 			Format: nn[KMGTPE] | nn% | "mirror"
 			This parameter specifies the amount of memory usable by
 			the kernel for non-movable allocations.  The requested
@@ -3612,7 +3612,7 @@
 	mousedev.yres=	[MOUSE] Vertical screen resolution, used for devices
 			reporting absolute coordinates, such as tablets
 
-	movablecore=	[KNL,X86,IA-64,PPC,EARLY]
+	movablecore=	[KNL,X86,IA-64,PPC,ARM64,EARLY]
 			Format: nn[KMGTPE] | nn%
 			This parameter is the complement to kernelcore=, it
 			specifies the amount of memory used for migratable
Signature · 1 line
2.34.1
#1 lore raw
Quoted 13 lines · Dev Jain

kernelcore and movablecore kernel command line works for ARM64. Update the Documentation to reflect the same.

---
 Documentation/admin-guide/kernel-parameters.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index b600df82669d..7282d6057e32 100644

Documentation/admin-guide/kernel-parameters.txt line 2547

Quoted 5 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
@@ -2544,7 +2544,7 @@
 
 	keepinitrd	[HW,ARM] See retain_initrd.
 
-	kernelcore=	[KNL,X86,IA-64,PPC,EARLY]
+	kernelcore=	[KNL,X86,IA-64,PPC,ARM64,EARLY]

Given these are both arch-agnostic parameters, wouldn't the correct change be to remove all the arch-specific labels, i.e. [KNL,EARLY]? In fact, wasn't IA-64 removed from the kernel?

Quoted 12 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
 			Format: nn[KMGTPE] | nn% | "mirror"
 			This parameter specifies the amount of memory usable by
 			the kernel for non-movable allocations.  The requested
@@ -3612,7 +3612,7 @@
 	mousedev.yres=	[MOUSE] Vertical screen resolution, used for devices
 			reporting absolute coordinates, such as tablets
 
-	movablecore=	[KNL,X86,IA-64,PPC,EARLY]
+	movablecore=	[KNL,X86,IA-64,PPC,ARM64,EARLY]
 			Format: nn[KMGTPE] | nn%
 			This parameter is the complement to kernelcore=, it
 			specifies the amount of memory used for migratable
author
#2 lore raw
Quoted 15 lines · Ryan Roberts
Quoted 14 lines · Dev Jain

kernelcore and movablecore kernel command line works for ARM64. Update the Documentation to reflect the same.

---
  Documentation/admin-guide/kernel-parameters.txt | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index b600df82669d..7282d6057e32 100644
@@ -2544,7 +2544,7 @@
 
Quoted 7 lines

Documentation/admin-guide/kernel-parameters.txt line 2547

Quoted 4 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
  	keepinitrd	[HW,ARM] See retain_initrd.
 
-	kernelcore=	[KNL,X86,IA-64,PPC,EARLY]
+	kernelcore=	[KNL,X86,IA-64,PPC,ARM64,EARLY]

Given these are both arch-agnostic parameters, wouldn't the correct change be to remove all the arch-specific labels, i.e. [KNL,EARLY]? In fact, wasn't IA-64 removed from the kernel?

Indeed, the handling of these parameters completely resides in

generic mm; I'll send a separate patch and CC Andrew. And yes,

IA-64 was removed, but still has some mentions remaining

throughout the tree :)

Quoted 13 lines
Quoted 13 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
  			Format: nn[KMGTPE] | nn% | "mirror"
  			This parameter specifies the amount of memory usable by
  			the kernel for non-movable allocations.  The requested
@@ -3612,7 +3612,7 @@
  	mousedev.yres=	[MOUSE] Vertical screen resolution, used for devices
  			reporting absolute coordinates, such as tablets
 
-	movablecore=	[KNL,X86,IA-64,PPC,EARLY]
+	movablecore=	[KNL,X86,IA-64,PPC,ARM64,EARLY]
  			Format: nn[KMGTPE] | nn%
  			This parameter is the complement to kernelcore=, it
  			specifies the amount of memory used for migratable