Skip to content

enable nr_cpus for powerpc without re-ordering cpu number

Pingfan Liu kexec linuxppc-dev llvm oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v10 Latest3 patches 0 repliesNew

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc/kernel: Remove check on paca_ptrs_sizearch/powerpc/kernel/paca.c+0 -130 replies
2/3powerpc/kernel: Extend arrays' size to make room for a hole in cpu_possible_maskarch/powerpc/include/asm/paca.h arch/powerpc/kernel/paca.c arch/powerpc/kernel/setup-common.c +1 more+9 -60 replies
3/3powerpc/smp: Allow hole in paca_ptrs to accommodate boot_cpuarch/powerpc/include/asm/smp.h arch/powerpc/kernel/paca.c arch/powerpc/kernel/prom.c +1 more+32 -60 replies

Reviews trailers per patch

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

Read the v10 thread

Cover letter [PATCHv10 0/3] enable nr_cpus for powerpc without re-ordering cpu number

From: Pingfan Liu <[email protected]>

This series addresses the nr_cpus issue for PowerPC without re-ordering cpu number. To save the memory used by percpu area, it also limits the possible cpu numbers by allowing hole in cpu_possible_mask.

Because the last cpu number will bigger than nr_cpu_ids in this way, some pointer arrays indexed by cpu should be extended to hold the pointer, e.g. paca_ptrs.

Please notice that this series still has some issue (some cpu can not be brought up), but before I resolve it. Please share your thoughts about it.

Thanks

Cc: Michael Ellerman <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Mahesh Salgaonkar <[email protected]>
Cc: Wen Xiong <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Ming Lei <[email protected]>
Cc: Sourabh Jain <[email protected]>
Cc: Hari Bathini <[email protected]>
Cc: [email protected]
To: [email protected]

Pingfan Liu (3):
powerpc/kernel: Remove check on paca_ptrs_size powerpc/kernel: Extend arrays' size to make room for a hole in
cpu_possible_mask
powerpc/smp: Allow hole in paca_ptrs to accommodate boot_cpu

 arch/powerpc/include/asm/paca.h    |  2 ++
 arch/powerpc/include/asm/smp.h     |  1 +
 arch/powerpc/kernel/paca.c         | 24 +++++++-----------------
 arch/powerpc/kernel/prom.c         |  6 ++++++
 arch/powerpc/kernel/setup-common.c | 26 +++++++++++++++++++++-----
 arch/powerpc/kernel/smp.c          |  3 ++-
 6 files changed, 39 insertions(+), 23 deletions(-)
Signature · 7 lines
2.31.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec