Skip to content

Support Soft NMI

Balbir Singh linuxppc-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v2 RFC3 patches 0 repliesSuperseded
  3. v1 RFC2 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Try to address kbuild failure
- Initialize paca->irq to a sane value

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Merge IPI and DEFAULT prioritiesarch/powerpc/include/asm/xics.h+2 -60 replies
2/3Keep interrupts enabled even on soft disablearch/powerpc/include/asm/paca.h arch/powerpc/kernel/exceptions-64s.S arch/powerpc/kernel/irq.c +1 more+76 -61 reply
3/3Enable soft nmi handlerarch/powerpc/kernel/exceptions-64s.S arch/powerpc/kernel/time.c+29 -40 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Support Soft NMI

This patch is based on suggestions from paulus and benh. The bugs are all mine. The idea was to implement soft NMI(s) by keeping interrupts enabled in the soft-disabled state, but to use the interrupt controller to gate posting of new interrupts to the processor. This is still work in progress and a preliminary RFC that needs testing.

Nick posted a more comprehensive version for soft NMI at
https://patchwork.ozlabs.org/patch/704605/, but it does not work when interrupts are disabled

TODOs:
1. Integrate with
https://patchwork.ozlabs.org/patch/706983/
2. Remove the duplicate XIRR between KVM and the paca's irq field. Will do this in a follow on series, since that requires extensive testing

Changelog v3:
- Try to address kbuild failure
- Initialize paca->irq to a sane value
Changelog v2:
- Rename functions as suggested by Nick
- Move irq in paca down for better alignment
- Break the patches up further into interrupt disabling and soft nmi patches
- Support only PPC_XICS for now

Cc Michael Ellerman <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Nicholas Piggin <[email protected]>

Balbir Singh (3):
Merge IPI and DEFAULT priorities
Keep interrupts enabled even on soft disable Enable soft nmi handler

 arch/powerpc/include/asm/paca.h      |  1 +
 arch/powerpc/include/asm/xics.h      |  8 ++----
 arch/powerpc/kernel/exceptions-64s.S | 33 ++++++++++++++++------
 arch/powerpc/kernel/irq.c            | 55 ++++++++++++++++++++++++++++++++++--
 arch/powerpc/kernel/paca.c           |  1 +
 arch/powerpc/kernel/time.c           | 27 +++++++++++++++++-
 6 files changed, 108 insertions(+), 17 deletions(-)
Signature · 1 line
2.9.3