Skip to contentSkip to conversation

Documentation: Merge x86-specific boot options doc into kernel-parameters.txt

PATCH Applied Borislav Petkov 3 participants 6 messages Dec 2, 2024 – Dec 10, 2024

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

PATCH 1/2 Documentation: Merge x86-specific boot options doc into kernel-parameters.txt

From: "Borislav Petkov (AMD)" <[email protected]>

Documentation/arch/x86/x86_64/boot-options.rst is causing unnecessary confusion by being a second place where one can put x86 boot options. Move them into the main one.

Drop removed ones like "acpi=ht", while at it.

---
 .../admin-guide/kernel-parameters.rst         |   3 -
 .../admin-guide/kernel-parameters.txt         | 237 ++++++++++++-
 .../arch/x86/x86_64/boot-options.rst          | 312 ------------------
 .../arch/x86/x86_64/fake-numa-for-cpusets.rst |   2 +-
 Documentation/arch/x86/x86_64/index.rst       |   1 -
 arch/x86/Kconfig.debug                        |   2 +-
 arch/x86/kernel/pci-dma.c                     |   4 -
 7 files changed, 227 insertions(+), 334 deletions(-)
 delete mode 100644 Documentation/arch/x86/x86_64/boot-options.rst
Documentation/admin-guide/kernel-parameters.rst +0 -3
index 59931f21c974..39d0e7ff0965 100644
@@ -194,8 +194,6 @@ is applicable::
 	WDT	Watchdog support is enabled.
 	X86-32	X86-32, aka i386 architecture is enabled.
 	X86-64	X86-64 architecture is enabled.
-			More X86-64 boot options can be found in
-			Documentation/arch/x86/x86_64/boot-options.rst.
 	X86	Either 32-bit or 64-bit x86 (same as X86-32+X86-64)
 	X86_UV	SGI UV support is enabled.
 	XEN	Xen support is enabled
@@ -213,7 +211,6 @@ Do not modify the syntax of boot loader parameters without extreme
 need or coordination with <Documentation/arch/x86/boot.rst>.
 
 There are also arch-specific kernel-parameters not documented here.
-See for example <Documentation/arch/x86/x86_64/boot-options.rst>.
 
 Note that ALL kernel parameters listed below are CASE SENSITIVE, and that
 a trailing = on the name of any parameter states that that parameter will
Documentation/admin-guide/kernel-parameters.txt +225 -12

335 lines not on this page · raw message

Documentation/arch/x86/x86_64/boot-options.rst deleted +0 -312

312 lines not on this page · raw message

Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst +1 -1
index ba74617d4999..970ee94eb551 100644
@@ -18,7 +18,7 @@ For more information on the features of cpusets, see
 Documentation/admin-guide/cgroup-v1/cpusets.rst.
 There are a number of different configurations you can use for your needs.  For
 more information on the numa=fake command line option and its various ways of
-configuring fake nodes, see Documentation/arch/x86/x86_64/boot-options.rst.
+configuring fake nodes, see Documentation/admin-guide/kernel-parameters.txt
 
 For the purposes of this introduction, we'll assume a very primitive NUMA
 emulation setup of "numa=fake=4*512,".  This will split our system memory into
Documentation/arch/x86/x86_64/index.rst +0 -1
index ad15e9bd623f..a0261957a08a 100644
@@ -7,7 +7,6 @@ x86_64 Support
 .. toctree::
    :maxdepth: 2
 
-   boot-options
    uefi
    mm
    5level-paging
arch/x86/Kconfig.debug +1 -1
index 74777a97e394..1eb4d23cdaae 100644
@@ -97,7 +97,7 @@ config IOMMU_DEBUG
 	  code. When you use it make sure you have a big enough
 	  IOMMU/AGP aperture.  Most of the options enabled by this can
 	  be set more finegrained using the iommu= command line
-	  options. See Documentation/arch/x86/x86_64/boot-options.rst for more
+	  options. See Documentation/admin-guide/kernel-parameters.txt for more
 	  details.
 
 config IOMMU_LEAK
arch/x86/kernel/pci-dma.c +0 -4
index f323d83e40a7..6267363e0189 100644
@@ -108,10 +108,6 @@ void __init pci_iommu_alloc(void)
 	swiotlb_init(x86_swiotlb_enable, x86_swiotlb_flags);
 }
 
-/*
- * See <Documentation/arch/x86/x86_64/boot-options.rst> for the iommu kernel
- * parameter documentation.
- */
 static __init int iommu_setup(char *p)
 {
 	iommu_merge = 1;
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 x86/apic: Remove "disablelapic" cmdline option

From: "Borislav Petkov (AMD)" <[email protected]>

The convention is "no<something>" and there already is "nolapic". Drop the disable one.

---
 arch/x86/kernel/apic/apic.c    | 9 +--------
 arch/x86/kernel/cpu/topology.c | 2 +-
 2 files changed, 2 insertions(+), 9 deletions(-)
arch/x86/kernel/apic/apic.c +1 -8
index c5fb28e6451a..1267b2691abc 100644
@@ -2582,19 +2582,12 @@ int apic_is_clustered_box(void)
 /*
  * APIC command line parameters
  */
-static int __init setup_disableapic(char *arg)
+static int __init setup_nolapic(char *arg)
 {
 	apic_is_disabled = true;
 	setup_clear_cpu_cap(X86_FEATURE_APIC);
 	return 0;
 }
-early_param("disableapic", setup_disableapic);
-
-/* same as disableapic, for compatibility */
-static int __init setup_nolapic(char *arg)
-{
-	return setup_disableapic(arg);
-}
 early_param("nolapic", setup_nolapic);
 
 static int __init parse_lapic_timer_c2_ok(char *arg)
arch/x86/kernel/cpu/topology.c +1 -1
index 621a151ccf7d..6ebed852a9ef 100644
@@ -428,7 +428,7 @@ void __init topology_apply_cmdline_limits_early(void)
 {
 	unsigned int possible = nr_cpu_ids;
 
-	/* 'maxcpus=0' 'nosmp' 'nolapic' 'disableapic' 'noapic' */
+	/* 'maxcpus=0' 'nosmp' 'nolapic' 'noapic' */
 	if (!setup_max_cpus || ioapic_is_disabled || apic_is_disabled)
 		possible = 1;
 
Signature · 1 line
2.43.0
Reviewed-by on v1 1/2
#4 lore raw
In reply to Borislav Petkov
Quoted 9 lines · Borislav Petkov

From: "Borislav Petkov (AMD)" <[email protected]>

Documentation/arch/x86/x86_64/boot-options.rst is causing unnecessary confusion by being a second place where one can put x86 boot options. Move them into the main one.

Drop removed ones like "acpi=ht", while at it.

Quoted 10 lines
---
 .../admin-guide/kernel-parameters.rst         |   3 -
 .../admin-guide/kernel-parameters.txt         | 237 ++++++++++++-
 .../arch/x86/x86_64/boot-options.rst          | 312 ------------------
 .../arch/x86/x86_64/fake-numa-for-cpusets.rst |   2 +-
 Documentation/arch/x86/x86_64/index.rst       |   1 -
 arch/x86/Kconfig.debug                        |   2 +-
 arch/x86/kernel/pci-dma.c                     |   4 -
 7 files changed, 227 insertions(+), 334 deletions(-)
 delete mode 100644 Documentation/arch/x86/x86_64/boot-options.rst

Thank you for incorporating my feedback.

Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] x86/apic: Remove "disablelapic" cmdline option

In reply to Borislav Petkov
Quoted 11 lines · Borislav Petkov

From: "Borislav Petkov (AMD)" <[email protected]>

The convention is "no<something>" and there already is "nolapic". Drop the disable one.

---
 arch/x86/kernel/apic/apic.c    | 9 +--------
 arch/x86/kernel/cpu/topology.c | 2 +-
 2 files changed, 2 insertions(+), 9 deletions(-)
#3 lore raw

[tip: x86/cleanups] x86/apic: Remove "disablelapic" cmdline option

In reply to Borislav Petkov
The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     13148e22c151e871c1c00bab519f39cc6f6ea37a
Gitweb:        https://git.kernel.org/tip/13148e22c151e871c1c00bab519f39cc6f6ea37a
Author:        Borislav Petkov (AMD) <[email protected]>
AuthorDate:    Mon, 02 Dec 2024 20:00:11 +01:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Tue, 10 Dec 2024 18:55:08 +01:00

x86/apic: Remove "disablelapic" cmdline option

The convention is "no<something>" and there already is "nolapic". Drop the disable one.

---
 arch/x86/kernel/apic/apic.c    |  9 +--------
 arch/x86/kernel/cpu/topology.c |  2 +-
 2 files changed, 2 insertions(+), 9 deletions(-)
arch/x86/kernel/apic/apic.c +1 -8
index c5fb28e..1267b26 100644
@@ -2582,19 +2582,12 @@ int apic_is_clustered_box(void)
 /*
  * APIC command line parameters
  */
-static int __init setup_disableapic(char *arg)
+static int __init setup_nolapic(char *arg)
 {
 	apic_is_disabled = true;
 	setup_clear_cpu_cap(X86_FEATURE_APIC);
 	return 0;
 }
-early_param("disableapic", setup_disableapic);
-
-/* same as disableapic, for compatibility */
-static int __init setup_nolapic(char *arg)
-{
-	return setup_disableapic(arg);
-}
 early_param("nolapic", setup_nolapic);
 
 static int __init parse_lapic_timer_c2_ok(char *arg)
arch/x86/kernel/cpu/topology.c +1 -1
index 621a151..6ebed85 100644
@@ -428,7 +428,7 @@ void __init topology_apply_cmdline_limits_early(void)
 {
 	unsigned int possible = nr_cpu_ids;
 
-	/* 'maxcpus=0' 'nosmp' 'nolapic' 'disableapic' 'noapic' */
+	/* 'maxcpus=0' 'nosmp' 'nolapic' 'noapic' */
 	if (!setup_max_cpus || ioapic_is_disabled || apic_is_disabled)
 		possible = 1;
 
#5 lore raw
In reply to Borislav Petkov
The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     ab0e7f20768af59fe161d71cc5d1de384f2a9da8
Gitweb:        https://git.kernel.org/tip/ab0e7f20768af59fe161d71cc5d1de384f2a9da8
Author:        Borislav Petkov (AMD) <[email protected]>
AuthorDate:    Mon, 02 Dec 2024 20:00:10 +01:00
Committer:     Borislav Petkov (AMD) <[email protected]>
CommitterDate: Tue, 10 Dec 2024 18:25:40 +01:00

Documentation: Merge x86-specific boot options doc into kernel-parameters.txt

Documentation/arch/x86/x86_64/boot-options.rst is causing unnecessary confusion by being a second place where one can put x86 boot options. Move them into the main one.

Drop removed ones like "acpi=ht", while at it.

---
 Documentation/admin-guide/kernel-parameters.rst         |   3 +-
 Documentation/admin-guide/kernel-parameters.txt         | 237 ++++-
 Documentation/arch/x86/x86_64/boot-options.rst          | 312 +-------
 Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst |   2 +-
 Documentation/arch/x86/x86_64/index.rst                 |   1 +-
 arch/x86/Kconfig.debug                                  |   2 +-
 arch/x86/kernel/pci-dma.c                               |   4 +-
 7 files changed, 227 insertions(+), 334 deletions(-)
 delete mode 100644 Documentation/arch/x86/x86_64/boot-options.rst
Documentation/admin-guide/kernel-parameters.rst +0 -3
index 59931f2..39d0e7f 100644
@@ -194,8 +194,6 @@ is applicable::
 	WDT	Watchdog support is enabled.
 	X86-32	X86-32, aka i386 architecture is enabled.
 	X86-64	X86-64 architecture is enabled.
-			More X86-64 boot options can be found in
-			Documentation/arch/x86/x86_64/boot-options.rst.
 	X86	Either 32-bit or 64-bit x86 (same as X86-32+X86-64)
 	X86_UV	SGI UV support is enabled.
 	XEN	Xen support is enabled
@@ -213,7 +211,6 @@ Do not modify the syntax of boot loader parameters without extreme
 need or coordination with <Documentation/arch/x86/boot.rst>.
 
 There are also arch-specific kernel-parameters not documented here.
-See for example <Documentation/arch/x86/x86_64/boot-options.rst>.
 
 Note that ALL kernel parameters listed below are CASE SENSITIVE, and that
 a trailing = on the name of any parameter states that that parameter will
Documentation/admin-guide/kernel-parameters.txt +225 -12

335 lines not on this page · raw message

Documentation/arch/x86/x86_64/boot-options.rst deleted +0 -312

312 lines not on this page · raw message

Documentation/arch/x86/x86_64/fake-numa-for-cpusets.rst +1 -1
index ba74617..970ee94 100644
@@ -18,7 +18,7 @@ For more information on the features of cpusets, see
 Documentation/admin-guide/cgroup-v1/cpusets.rst.
 There are a number of different configurations you can use for your needs.  For
 more information on the numa=fake command line option and its various ways of
-configuring fake nodes, see Documentation/arch/x86/x86_64/boot-options.rst.
+configuring fake nodes, see Documentation/admin-guide/kernel-parameters.txt
 
 For the purposes of this introduction, we'll assume a very primitive NUMA
 emulation setup of "numa=fake=4*512,".  This will split our system memory into
Documentation/arch/x86/x86_64/index.rst +0 -1
index ad15e9b..a026195 100644
@@ -7,7 +7,6 @@ x86_64 Support
 .. toctree::
    :maxdepth: 2
 
-   boot-options
    uefi
    mm
    5level-paging
arch/x86/Kconfig.debug +1 -1
index 74777a9..1eb4d23 100644
@@ -97,7 +97,7 @@ config IOMMU_DEBUG
 	  code. When you use it make sure you have a big enough
 	  IOMMU/AGP aperture.  Most of the options enabled by this can
 	  be set more finegrained using the iommu= command line
-	  options. See Documentation/arch/x86/x86_64/boot-options.rst for more
+	  options. See Documentation/admin-guide/kernel-parameters.txt for more
 	  details.
 
 config IOMMU_LEAK
arch/x86/kernel/pci-dma.c +0 -4
index f323d83..6267363 100644
@@ -108,10 +108,6 @@ void __init pci_iommu_alloc(void)
 	swiotlb_init(x86_swiotlb_enable, x86_swiotlb_flags);
 }
 
-/*
- * See <Documentation/arch/x86/x86_64/boot-options.rst> for the iommu kernel
- * parameter documentation.
- */
 static __init int iommu_setup(char *p)
 {
 	iommu_merge = 1;