kernel-ark/arch/x86/kernel/cpu
Andreas Herrmann 903675569e x86: fix cpu-hotplug regression
Commit d435d862ba
("cpu hotplug: mce: fix cpu hotplug error handling")
changed the error handling in mce_cpu_callback.

In cases where not all CPUs are brought up during
boot (e.g. using maxcpus and additional_cpus parameters)
mce_cpu_callback now returns NOTFIY_BAD because
for such CPUs cpu_data is not completely filled when
the notifier is called. Thus mce_create_device fails right
at its beginning:

        if (!mce_available(&cpu_data[cpu]))
                return -EIO;

As a quick fix I suggest to check boot_cpu_data for MCE.

To reproduce this regression:

(1) boot with maxcpus=2 addtional_cpus=2 on a 4 CPU x86-64 system
(2) # echo 1 >/sys/devices/system/cpu/cpu2/online
  -bash: echo: write error: Invalid argument

dmesg shows:

_cpu_up: attempt to bring up CPU 2 failed

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-11-17 16:27:00 +01:00
..
cpufreq Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq 2007-11-16 18:30:26 -08:00
mcheck x86: fix cpu-hotplug regression 2007-11-17 16:27:00 +01:00
mtrr x86: make ipi_handler() always defined 2007-11-09 22:39:38 +01:00
addon_cpuid_features.c
amd.c spelling fixes: arch/i386/ 2007-10-20 01:13:56 +02:00
bugs.c
centaur.c spelling fixes: arch/i386/ 2007-10-20 01:13:56 +02:00
common.c spelling fixes: arch/i386/ 2007-10-20 01:13:56 +02:00
cpu.h
cyrix.c spelling fixes: arch/i386/ 2007-10-20 01:13:56 +02:00
intel_cacheinfo.c x86: convert cpuinfo_x86 array to a per_cpu array 2007-10-19 20:35:04 +02:00
intel.c i386: fix section mismatch warning in intel.c 2007-10-17 20:15:26 +02:00
Makefile x86: prepare consolidation of cpu/ related Makefiles 2007-10-23 22:37:23 +02:00
nexgen.c
perfctr-watchdog.c i386: do not BUG_ON() when MSR is unknown 2007-10-19 20:35:04 +02:00
proc.c x86: additional CPUID strings; fix strings for AMD-ecx 2007-10-30 00:22:22 +01:00
transmeta.c
umc.c