First attempt at smp integration
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest52 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/52 | commonize smp.hinclude/ | +7 | 0 replies | |
| 2/52 | merge extern function definitionsinclude/ include/ include/ | +3 | 0 replies | |
| 3/52 | merge extern variables definitionsinclude/ include/ include/ | +6 | 0 replies | |
| 4/52 | define smp_ops in common headerinclude/ include/ | +14 | 0 replies | |
| 5/52 | move smp_ops extern declaration to common headerarch/ include/ include/ | +5 | 0 replies | |
| 6/52 | merge smp_send_reschedulearch/ include/ include/ +1 more | +10 | 0 replies | |
| 7/52 | unify smp_call_function_maskarch/ include/ include/ | +11 | 0 replies | |
| 8/52 | unify __cpu_up.arch/ arch/ include/ +1 more | +9 | 0 replies | |
| 9/52 | unify prepare_boot_cpuarch/ arch/ include/ +1 more | +8 | 0 replies | |
| 10/52 | unify smp_prepare_cpusarch/ arch/ include/ +1 more | +8 | 0 replies | |
| 11/52 | unify smp_cpus_donearch/ arch/ include/ +1 more | +9 | 0 replies | |
| 12/52 | move disabled_cpus to common headerinclude/ include/ | +3 | 0 replies | |
| 13/52 | use disabled_cpus in i386arch/ | +5 | 0 replies | |
| 14/52 | move prefill_possible_map to common filearch/ arch/ arch/ +2 more | +55 | 0 replies | |
| 15/52 | remove export for smp_call_function_mask.arch/ | +0 | 0 replies | |
| 16/52 | remove irqs disabled warning.arch/ | +0 | 0 replies | |
| 17/52 | create smpcommon.carch/ arch/ arch/ +1 more | +85 | 0 replies | |
| 18/52 | provide __smp_call_functionarch/ | +33 | 0 replies | |
| 19/52 | change x86_64 smp_call_function_mask to look alike i386arch/ arch/ | +17 | 0 replies | |
| 20/52 | provide hlt_works function.include/ | +9 | 0 replies | |
| 21/52 | make stop_this_cpu looks exactly equal in both archesarch/ arch/ | +4 | 0 replies | |
| 22/52 | add reboot_force test to native_smp_send_stoparch/ | +7 | 0 replies | |
| 23/52 | unify smp_send_stoparch/ include/ include/ | +7 | 0 replies | |
| 24/52 | create smp.carch/ arch/ arch/ +1 more | +255 | 0 replies | |
| 25/52 | create ipi.carch/ arch/ arch/ | +179 | 0 replies | |
| 26/52 | create tlb filesarch/ arch/ arch/ +2 more | +517 | 0 replies | |
| 27/52 | get rid of smp_32.c and smp_64.carch/ arch/ arch/ +1 more | +93 | 0 replies | |
| 28/52 | remove cpu_llc_id from processor.hinclude/ | +1 | 0 replies | |
| 29/52 | adjust types in smpcommon_32.carch/ include/ | +6 | 0 replies | |
| 30/52 | move equal types to common filearch/ arch/ arch/ +1 more | +29 | 0 replies | |
| 31/52 | make set_cpu_sibling_map nonstaticarch/ include/ include/ | +4 | 0 replies | |
| 32/52 | make remove_siblinginfo non-staticarch/ | +1 | 0 replies | |
| 33/52 | move hotplug related extern definitions to smp.hinclude/ include/ | +6 | 0 replies | |
| 34/52 | move sibling functions to common filearch/ arch/ arch/ | +88 | 0 replies | |
| 35/52 | move cpu_coregroup_map to common filearch/ arch/ arch/ | +16 | 0 replies | |
| 36/52 | remove vector_lock around cpu_online_maparch/ | +1 | 0 replies | |
| 37/52 | use remove_from_maps in cpu_disablearch/ arch/ | +9 | 0 replies | |
| 38/52 | do not clear cpu_online_maparch/ | +1 | 0 replies | |
| 39/52 | merge __cpu_disable and cpu_diearch/ arch/ arch/ +3 more | +88 | 0 replies | |
| 40/52 | make x86_64 accept the max_cpus parameterarch/ arch/ arch/ | +19 | 0 replies | |
| 41/52 | move trampoline arrays extern definition to smp.harch/ arch/ include/ | +6 | 0 replies | |
| 42/52 | adapt voyager's trampoline_basearch/ | +4 | 0 replies | |
| 43/52 | adapt voyager's setup_trampolinearch/ | +1 | 0 replies | |
| 44/52 | unify setup_trampolinearch/ arch/ arch/ +2 more | +37 | 0 replies | |
| 45/52 | use wait_for_init_deassert in x86_64arch/ | +8 | 0 replies | |
| 46/52 | use cpu_relax instead of rep_noparch/ | +2 | 0 replies | |
| 47/52 | leave irqs enabled while calibrating delay.arch/ | +5 | 0 replies | |
| 48/52 | modify x86_64 smp_callin so it looks like i386arch/ | +4 | 0 replies | |
| 49/52 | wrap esr setting up in i386 in lapic_setup_esrarch/ | +40 | 0 replies | |
| 50/52 | provide an end_local_APIC_setup functionarch/ arch/ | +7 | 0 replies | |
| 51/52 | make map_cpu_to_logical_apicid nonstaticarch/ | +2 | 0 replies | |
| 52/52 | merge smp_callinarch/ arch/ arch/ +1 more | +114 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/52] First attempt at smp integration
Hi,
This series of patches does a first attempt at smp integration (I call it first, although I don't believe it's too far away from a real one). The series comprises 52 patches, and the full diffstat says in the end:
34 files changed, 1858 insertions(+), 2344 deletions(-)
smp_32.c and smp_64.c are completely gone. smp.h and smpboot_{32,64}.c are not, although substantially reduced. I know that ideally, no leftovers are wanted, but the series were already big enough (I tried to split the patches as much as I could), so I considered this a good cutting point. If this is all agreed upon and merged, I'll start looking at the other bits that are left.
All patches are tested is various random x86 subarchitectures, and all of them works. The result also boots fine in mine x86_64 and i386 boxes.
Comments are welcome.
arch/x86/kernel/Makefile | 11 arch/x86/kernel/apic_32.c | 7 arch/x86/kernel/smp_32.c | 730 --------------------------------- arch/x86/kernel/smp_64.c | 674 +++--------------------------- arch/x86/kernel/smpboot.c | 372 ++++++++++++++++ arch/x86/kernel/smpboot_32.c | 363 ---------------- arch/x86/kernel/smpboot_64.c | 432 ------------------- arch/x86/mach-voyager/voyager_smp.c | 3 b/arch/x86/kernel/Makefile | 2 b/arch/x86/kernel/apic_32.c | 74 +-- b/arch/x86/kernel/ipi.c | 178 ++++++++ b/arch/x86/kernel/mpparse_32.c | 7 b/arch/x86/kernel/mpparse_64.c | 7 b/arch/x86/kernel/smp.c | 253 +++++++++++ b/arch/x86/kernel/smp_32.c | 2 b/arch/x86/kernel/smp_64.c | 2 b/arch/x86/kernel/smpboot.c | 53 ++ b/arch/x86/kernel/smpboot_32.c | 6 b/arch/x86/kernel/smpboot_64.c | 2 b/arch/x86/kernel/smpcommon.c | 83 +++ b/arch/x86/kernel/smpcommon_32.c | 82 --- b/arch/x86/kernel/tlb_32.c | 243 ++++++++++ b/arch/x86/kernel/tlb_64.c | 274 ++++++++++++ b/arch/x86/mach-voyager/voyager_smp.c | 9 b/include/asm-x86/processor.h | 10 b/include/asm-x86/smp.h | 8 b/include/asm-x86/smp_32.h | 4 b/include/asm-x86/smp_64.h | 5 include/asm-x86/processor.h | 5 include/asm-x86/smp.h | 99 ++++ include/asm-x86/smp_32.h | 86 --- include/asm-x86/smp_64.h | 21 linux-2.6-x86/arch/x86/kernel/Makefile | 4 linux-2.6-x86/arch/x86/kernel/smp.c | 91 ++++ 34 files changed, 1858 insertions(+), 2344 deletions(-)