Skip to content

: Sparc64 dynamic per-cpu support.

David Miller lkml sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12: sparc64: Reclaim trap_block[]->hdescarch/sparc/include/asm/cpudata_64.h arch/sparc/kernel/smp_64.c+7 -90 replies
2/12: sparc64: Move trap_block[] definitions into a new header file.arch/sparc/include/asm/cpudata_64.h arch/sparc/include/asm/trap_block.h+208 -1960 replies
3/12: sparc64: Store per-cpu offset in trap_block[]arch/sparc/include/asm/percpu_64.h arch/sparc/include/asm/trap_block.h arch/sparc/kernel/head_64.S +2 more+21 -440 replies
4/12: sparc64: Use BUILD_BUG_ON() in trap_init().arch/sparc/kernel/traps_64.c+91 -800 replies
5/12: sparc64: Refactor OBP cpu scanning code using an iterator.arch/sparc/include/asm/prom.h arch/sparc/kernel/prom_64.c+127 -1092 replies
6/12: sparc64: Refactor MDESC cpu scanning code using an iterator.arch/sparc/include/asm/mdesc.h arch/sparc/kernel/mdesc.c+90 -570 replies
7/12: sparc: Call OF and MD cpu scanning explicitly from paging_init()arch/sparc/include/asm/prom.h arch/sparc/kernel/mdesc.c arch/sparc/kernel/prom.h +3 more+6 -80 replies
8/12: sparc64: Make mdesc_fill_in_cpu_data take a cpumask_t pointer.arch/sparc/include/asm/mdesc.h arch/sparc/kernel/ds.c arch/sparc/kernel/mdesc.c +1 more+6 -60 replies
9/12: sparc64: Defer cpu_data() setup until end of per-cpu data initialization.arch/sparc/kernel/ds.c arch/sparc/kernel/mdesc.c arch/sparc/kernel/prom_64.c +2 more+9 -100 replies
10/12: sparc64: Get rid of real_setup_per_cpu_areas().arch/sparc/include/asm/percpu_64.h arch/sparc/kernel/smp_64.c arch/sparc/mm/init_64.c+5 -170 replies
11/12: sparc64: Only allocate per-cpu areas for possible cpus.arch/sparc/kernel/smp_64.c+6 -160 replies
12/12: sparc64: Use new dynamic per-cpu allocator.arch/sparc/Kconfig arch/sparc/kernel/smp_64.c+159 -94 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/12]: Sparc64 dynamic per-cpu support.

This patch set converts sparc64 over to use the dynamic per-cpu stuff.

Most of the work is the boring task of getting rid of the special "real_setup_per_cpu_areas()" sparc64 uses to setup the per-cpu areas before bootmem is available. We needed to do this because we initialized the cpu possible map at the same time as the stuff stored in the per-cpu cpu_data array.

So we split those tasks up. Otherwise we wouldn't be able to convert to dynamic per-cpu because that stuff requires that bootmem and the page structs are ready to use.

For now I'm using the draconian unoptimized x86 NUMA remap scheme. I really want to do this better because it is insanely suboptimal on Niagara chips where in some cases 8 cpus share the same physical TLB.

This is against Linus's current tree and it's also in sparc-next-2.6