Skip to content

Support negative number of CPUs

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cpu: Infrastructure for negative cpu handlingkernel/cpu_neg.c+791 -00 replies
2/5smp: IPI handling for negative CPUkernel/smp.c+34 -40 replies
3/5cpumask: Basic negative number of CPUs handlinginclude/linux/cpumask.h+48 -00 replies
4/5init: Support negative CPUs boot and halt codearch/x86/kernel/reboot.c init/main.c+15 -00 replies
5/5x86: Support reverse executionarch/x86/kernel/cpu/negative.c arch/x86/kernel/head64.c+32 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFrederic WeisbeckerBorislav Petkov
SeriesA-b
1/5Not-Yet-Signed-off-by
2/5Not-Yet-Signed-off-by
3/5Not-Yet-Signed-off-by
4/5Not-Yet-Signed-off-by
5/5No-Yet-Signed-off-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Support negative number of CPUs

Support for machines without any CPU at all was brought 3 years ago by Paul (https://lkml.org/lkml/2012/3/31/131). The goal was to reduce the complexity of programming on modern computing.

Now meeting the simplicity beyond that of sequential programming had a
cost: such hardware configuration found a user base but didn't meet much success among HPC users.

So we have now a new challenge to solve: keep the beyond-sequential programming simplicity while providing a highly parallel processing that still scale.

This patchset proposes a solution. The support for negative number of CPUs is able to help scale computing up to O(-NR_CPUS). The more you have CPUs the higher you scale, to the point that software execution should complete before you start writing that software (assuming you have around -1024 CPUs). And programming gets even more simple because you have lesser CPUs to handle.

Now keep in mind this patchset is only a draft. Not build tested and I don't have the hardware yet.

Frederic Weisbecker (5):
cpu: Infrastructure for negative cpu handling
smp: IPI handling for negative CPU
cpumask: Basic negative number of CPUs handling
init: Support negative CPUs boot and halt code
x86: Support reverse execution

 arch/x86/kernel/cpu/negative.c |  28 ++
 arch/x86/kernel/head64.c       |   4 +
 arch/x86/kernel/reboot.c       |   8 +
 include/linux/cpumask.h        |  48 +++
 init/main.c                    |   7 +
 kernel/cpu_neg.c               | 791 +++++++++++++++++++++++++++++++++++++++++
 kernel/smp.c                   |  38 +-
 7 files changed, 920 insertions(+), 4 deletions(-)
 create mode 100644 arch/x86/kernel/cpu/negative.c
 create mode 100644 kernel/cpu_neg.c
Signature · 1 line
2.1.4