aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2012-11-13 14:32:51 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2012-11-14 18:28:11 -0500
commita71c8bc5dfefbbf80ef90739791554ef7ea4401b (patch)
treec45ca6284652a848876b2b2636c30a36111ec0b1 /arch/x86/Kconfig
parent6f5298c2139b06925037490367906f3d73955b86 (diff)
x86, topology: Debug CPU0 hotplug
CONFIG_DEBUG_HOTPLUG_CPU0 is for debugging the CPU0 hotplug feature. The switch offlines CPU0 as soon as possible and boots userspace up with CPU0 offlined. User can online CPU0 back after boot time. The default value of the switch is off. To debug CPU0 hotplug, you need to enable CPU0 offline/online feature by either turning on CONFIG_BOOTPARAM_HOTPLUG_CPU0 during compilation or giving cpu0_hotplug kernel parameter at boot. It's safe and early place to take down CPU0 after all hotplug notifiers are installed and SMP is booted. Please note that some applications or drivers, e.g. some versions of udevd, during boot time may put CPU0 online again in this CPU0 hotplug debug mode. In this debug mode, setup_local_APIC() may report a warning on max_loops<=0 when CPU0 is onlined back after boot time. This is because pending interrupt in IRR can not move to ISR. The warning is not CPU0 specfic and it can happen on other CPUs as well. It is harmless except the first CPU0 online takes a bit longer time. And so this debug mode is useful to expose this issue. I'll send a seperate patch to fix this generic warning issue. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Link: http://lkml.kernel.org/r/1352835171-3958-15-git-send-email-fenghua.yu@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r--arch/x86/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 036e89ab470c..b6cfa5f62529 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1727,6 +1727,21 @@ config BOOTPARAM_HOTPLUG_CPU0
1727 You still can enable the CPU0 hotplug feature at boot by kernel 1727 You still can enable the CPU0 hotplug feature at boot by kernel
1728 parameter cpu0_hotplug. 1728 parameter cpu0_hotplug.
1729 1729
1730config DEBUG_HOTPLUG_CPU0
1731 def_bool n
1732 prompt "Debug CPU0 hotplug"
1733 depends on HOTPLUG_CPU && EXPERIMENTAL
1734 ---help---
1735 Enabling this option offlines CPU0 (if CPU0 can be offlined) as
1736 soon as possible and boots up userspace with CPU0 offlined. User
1737 can online CPU0 back after boot time.
1738
1739 To debug CPU0 hotplug, you need to enable CPU0 offline/online
1740 feature by either turning on CONFIG_BOOTPARAM_HOTPLUG_CPU0 during
1741 compilation or giving cpu0_hotplug kernel parameter at boot.
1742
1743 If unsure, say N.
1744
1730config COMPAT_VDSO 1745config COMPAT_VDSO
1731 def_bool y 1746 def_bool y
1732 prompt "Compat VDSO support" 1747 prompt "Compat VDSO support"