Skip to contentSkip to conversation

Fixes nr_cpus bug along with irq stack bootmem allocation.

PATCH In review Atish Patra 2 participants 2 messages Sep 28, 2016 – Sep 29, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover Fixes nr_cpus bug along with irq stack bootmem allocation.

The first patch fixes a panic caused by nr_cpus boot parameter. In addition to that, irq stack boot memory is allocated before cpu_possible_mask is modified. This can lead to wastage of boot memory if nr_cpus is set to a lower value. The second patch addresses this issue.

v1->v2:
Fixed compilation error in the v2 1/2 when CONFIG_SMP is not set.

Atish Patra (2):
sparc64: Fix cpu_possible_mask if nr_cpus is set
sparc64: Fix irq stack bootmem allocation.

 arch/sparc/include/asm/smp_64.h |    2 ++
 arch/sparc/kernel/setup_64.c    |   26 ++++++++++++++++++++++++++
 arch/sparc/kernel/smp_64.c      |   14 ++++++++++++++
 arch/sparc/mm/init_64.c         |   16 ----------------
 4 files changed, 42 insertions(+), 16 deletions(-)
#1 lore raw

From: Atish Patra <[email protected]>
Date: Wed, 28 Sep 2016 13:01:18 -0700

Quoted 8 lines

The first patch fixes a panic caused by nr_cpus boot parameter. In addition to that, irq stack boot memory is allocated before cpu_possible_mask is modified. This can lead to wastage of boot memory if nr_cpus is set to a lower value. The second patch addresses this issue.

v1->v2:
Fixed compilation error in the v2 1/2 when CONFIG_SMP is not set.

Sorry, it doesn't work this way.

I've already applied your patches so you would have to send me a relative fixup.

But I'll take care of this.