Skip to content

powernv:idle: Fixes for CPU-Hotplug on POWER DD1.0

Gautham R. Shenoy linuxppc-dev lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 4 repliesIn review
  2. v24 patches 8 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4powernv: Move CPU-Offline idle state invocation from smp.c to idle.carch/powerpc/include/asm/cpuidle.h arch/powerpc/platforms/powernv/idle.c arch/powerpc/platforms/powernv/powernv.h +1 more+28 -181 reply
2/4powernv:smp: Add busy-wait loop as fall back for CPU-Hotplugarch/powerpc/platforms/powernv/idle.c+9 -12 replies
3/4powernv:idle: Don't override default/deepest directly in kernelarch/powerpc/platforms/powernv/idle.c+18 -170 replies
4/4powernv: Recover correct PACA on wakeup from a stop on P9 DD1arch/powerpc/include/asm/paca.h arch/powerpc/kernel/asm-offsets.c arch/powerpc/kernel/idle_book3s.S +1 more+83 -11 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchNicholas Piggin
1/4R-b
2/4R-b R-b
3/4R-b
4/4R-b

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

Read the v3 thread

Cover letter [v3 PATCH 0/4] powernv:idle: Fixes for CPU-Hotplug on POWER DD1.0

From: "Gautham R. Shenoy" <[email protected]>

Hi,

This is the third version of the patchset containing the fixes to make CPU-Hotplug working on correctly on POWER9 DD1 systems.

The earlier versions can be found here:
[v2] : https://lkml.org/lkml/2017/3/20/555
[v1] : https://lkml.org/lkml/2017/3/13/46

The only change in this patch series from v2 are the following optimizations suggested by Nicholas Piggin.

- Dynamically allocate the thread_sibling_pacas array to contain "threads_per_core" number of slots instead of declaring the array size upfront.

- Use SPRN_TIR instead of (SPRN_PIR & 0x3) to determine the thread's index within a core.

Patch 4 in the series requires Nicholas Piggin's ack. Rest of the patches are unchanged from the previous version.

These patches are based on v4.11-rc3.

The patches have been tested with stop1 (ESL=EC=1) as the deepest-state entered into during CPU-Hotplug.

Gautham R. Shenoy (4):
powernv: Move CPU-Offline idle state invocation from smp.c to idle.c powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug powernv:idle: Don't override default/deepest directly in kernel
powernv: Recover correct PACA on wakeup from a stop on P9 DD1

 arch/powerpc/include/asm/cpuidle.h       |  1 +
 arch/powerpc/include/asm/paca.h          |  5 ++
 arch/powerpc/kernel/asm-offsets.c        |  1 +
 arch/powerpc/kernel/idle_book3s.S        | 48 +++++++++++++++-
 arch/powerpc/platforms/powernv/idle.c    | 96 ++++++++++++++++++++++++++------
 arch/powerpc/platforms/powernv/powernv.h |  2 -
 arch/powerpc/platforms/powernv/smp.c     | 18 +-----
 7 files changed, 136 insertions(+), 35 deletions(-)
Signature · 1 line
1.9.4