Skip to content

CPU Hotplug support for X86_64

Ashok Raj lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4CPU Hotplug support for X86_64arch/x86_64/kernel/apic.c arch/x86_64/kernel/i387.c arch/x86_64/kernel/nmi.c +7 more+40 -323 replies
2/4CPU Hotplug support for X86_64arch/i386/mach-default/topology.c arch/x86_64/Kconfig arch/x86_64/kernel/irq.c +6 more+297 -251 reply
3/4CPU Hotplug support for X86_64arch/x86_64/kernel/smpboot.c+41 -481 reply
4/4CPU Hotplug support for X86_64arch/x86_64/Kconfig arch/x86_64/kernel/smp.c+27 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/4] CPU Hotplug support for X86_64

[Oops: This is correct version: i send from the wrong directory earlier] [Sorry about that spam... now i thin i know how to use quilt :-)]

This implements cpu hotplug support for X86_64.
Modified after initial feedback from Andi.

[PS: hopefully subject is now fixed with different subject lines]

Seems to hold up for make -j, with online/offline activity.

The series of patches are split as follows:

1. initcall cleanup
- Left __cpuinit cases as before per Andi
- Added a few new ones, and removed couple that could stay __init even with cpu hotplug.
2. Core logical online/offline of cpus
- start with maxcpus=1, and then echo 1 to /sys/devices/system/online
- Can also bringup all cpus and then bring up/down all but cpu0.
- Also tested with numa=fake=2
3. Cleanup sibling map for cpu hotplug support.
4. Dont use IPI broadcast in smp_call_function() when using CPU hotplug. Hopefully this is some reasonable middle ground starting point.
- Dont let a new cpu respond to IPI's.
- Automaticaly selected if CPU hotplus is choosen.
- Can also be turned on cmdline via safe_ipi=1

TBD:

1. Track down CONFIG_SCHED_SMT Oops with both cpu up/down.
2. Test on real NUMA hw.

Cheers,
Ashok Raj
--