Skip to content

Commit

Permalink
powerpc/64s: introduce CONFIG_MAXSMP to test very large SMP
Browse files Browse the repository at this point in the history
Similarly to x86, add MAXSMP that should help flush out problems with
vary large SMP and other values associated with very big systems.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
  • Loading branch information
npiggin authored and intel-lab-lkp committed Nov 5, 2021
1 parent 8129138 commit 9ca640e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions arch/powerpc/Kconfig
Expand Up @@ -64,6 +64,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
config NEED_PER_CPU_PAGE_FIRST_CHUNK
def_bool y if PPC64

config MAXSMP
bool "Enable Maximum number of SMP Processors and NUMA Nodes"
depends on SMP && DEBUG_KERNEL && PPC_BOOK3S_64
help
Enable maximum number of CPUS and NUMA Nodes for this architecture.
If unsure, say N.

config NR_IRQS
int "Number of virtual interrupt numbers"
range 32 1048576
Expand Down Expand Up @@ -668,6 +675,7 @@ config NUMA

config NODES_SHIFT
int
default "10" if MAXSMP
default "8" if PPC64
default "4"
depends on NUMA
Expand Down
5 changes: 3 additions & 2 deletions arch/powerpc/platforms/Kconfig.cputype
Expand Up @@ -476,8 +476,9 @@ config SMP
If you don't know what to do here, say N.

config NR_CPUS
int "Maximum number of CPUs (2-8192)" if SMP
range 2 8192 if SMP
int "Maximum number of CPUs (2-8192)" if SMP && !MAXSMP
range 2 16384 if SMP
default 16384 if MAXSMP
default "1" if !SMP
default "32" if PPC64
default "4"
Expand Down

0 comments on commit 9ca640e

Please sign in to comment.