Skip to content

Improving debugging with NMIs

Nicholas Piggin linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10powerpc/64s: add exception macro that does not enable RIarch/powerpc/include/asm/exception-64s.h arch/powerpc/kernel/exceptions-64s.S+19 -131 reply
2/10powerpc/64s: exception macro for stack frame and initial register savearch/powerpc/include/asm/exception-64s.h arch/powerpc/kernel/exceptions-64s.S+14 -150 replies
3/10powerpc/64s: fix system reset vs general interrupt reentrancyarch/powerpc/include/asm/exception-64s.h arch/powerpc/include/asm/paca.h arch/powerpc/kernel/asm-offsets.c +1 more+21 -130 replies
4/10powerpc/64s: disallow system reset vs system reset reentrancyarch/powerpc/include/asm/exception-64s.h arch/powerpc/include/asm/paca.h arch/powerpc/kernel/asm-offsets.c +3 more+56 -70 replies
5/10powerpc/64s: dedicated system reset interrupt stackarch/powerpc/include/asm/exception-64s.h arch/powerpc/include/asm/paca.h arch/powerpc/kernel/asm-offsets.c +3 more+27 -40 replies
6/10powerpc: nmi_enter for system resetarch/powerpc/kernel/traps.c+11 -01 reply
7/10powerpc: add NMI IPI infrastructurearch/powerpc/Kconfig arch/powerpc/include/asm/smp.h arch/powerpc/kernel/smp.c +2 more+230 -422 replies
8/10powerpc: add struct smp_ops_t.cause_nmi_ipi operationarch/powerpc/include/asm/smp.h arch/powerpc/kernel/smp.c arch/powerpc/platforms/85xx/smp.c +5 more+10 -00 replies
9/10powerpc/pseries: implement NMI IPI with H_SIGNAL_SYS_RESETarch/powerpc/platforms/pseries/ras.c arch/powerpc/platforms/pseries/smp.c+26 -10 replies
10/10powerpc: xmon wait for secondaries before sending IPIarch/powerpc/xmon/xmon.c+12 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] Improving debugging with NMIs

Hi,

These patches have been posted a few times before. Since then I've split them up and tried to simplify the NMI IPI stuff as much as possible.

I've been testing using David Gibson's QEMU branch ppc-for-2.9, which implements the required hcall.

Thanks,
Nick

Nicholas Piggin (10):
powerpc/64s: add exception macro that does not enable RI powerpc/64s: exception macro for stack frame and initial register save powerpc/64s: fix system reset vs general interrupt reentrancy powerpc/64s: disallow system reset vs system reset reentrancy powerpc/64s: dedicated system reset interrupt stack
powerpc: nmi_enter for system reset
powerpc: add NMI IPI infrastructure
powerpc: add struct smp_ops_t.cause_nmi_ipi operation powerpc/pseries: implement NMI IPI with H_SIGNAL_SYS_RESET
powerpc: xmon wait for secondaries before sending IPI

 arch/powerpc/Kconfig                      |   5 +
 arch/powerpc/include/asm/exception-64s.h  |  69 +++++++--
 arch/powerpc/include/asm/paca.h           |  14 +-
 arch/powerpc/include/asm/smp.h            |  15 +-
 arch/powerpc/kernel/asm-offsets.c         |   5 +-
 arch/powerpc/kernel/exceptions-64s.S      |  72 +++++----
 arch/powerpc/kernel/setup_64.c            |   5 +
 arch/powerpc/kernel/smp.c                 | 250 +++++++++++++++++++++++++-----
 arch/powerpc/kernel/traps.c               |  19 ++-
 arch/powerpc/platforms/85xx/smp.c         |   1 +
 arch/powerpc/platforms/86xx/mpc86xx_smp.c |   1 +
 arch/powerpc/platforms/cell/interrupt.c   |   2 +-
 arch/powerpc/platforms/chrp/smp.c         |   1 +
 arch/powerpc/platforms/powermac/smp.c     |   1 +
 arch/powerpc/platforms/powernv/smp.c      |   1 +
 arch/powerpc/platforms/ps3/smp.c          |   4 +-
 arch/powerpc/platforms/pseries/ras.c      |   4 +
 arch/powerpc/platforms/pseries/smp.c      |  22 +++
 arch/powerpc/xmon/xmon.c                  |  15 +-
 19 files changed, 418 insertions(+), 88 deletions(-)
Signature · 1 line
2.11.0