Skip to content

powerpc/64s: interrupt speedups

Nicholas Piggin linuxppc-dev 3 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 3 repliesApplied
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Split first patch into patch 1 and 2, improve on the changelogs.
- More compile fixes.
- Fixed several review comments from Daniel.
- Added patch 5.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6powerpc/64/interrupt: make normal synchronous interrupts enable MSR[EE] if possiblearch/powerpc/include/asm/interrupt.h+18 -11 reply
2/6powerpc/64s/interrupt: handle MSR EE and RI in interrupt entry wrapperarch/powerpc/include/asm/interrupt.h arch/powerpc/kernel/exceptions-64s.S arch/powerpc/kernel/fpu.S +1 more+42 -380 replies
3/6powerpc/64s/perf: add power_pmu_wants_prompt_pmi to say whether perf wants PMIs to be soft-NMIarch/powerpc/include/asm/hw_irq.h arch/powerpc/perf/core-book3s.c+33 -00 replies
4/6powerpc/64s/interrupt: Don't enable MSR[EE] in irq handlers unless perf is in usearch/powerpc/include/asm/hw_irq.h arch/powerpc/kernel/dbell.c arch/powerpc/kernel/irq.c +1 more+67 -270 replies
5/6powerpc/64/interrupt: reduce expensive debug testsarch/powerpc/include/asm/interrupt.h+10 -41 reply
6/6powerpc/64s/interrupt: avoid saving CFAR in some asynchronous interruptsarch/powerpc/kernel/exceptions-64s.S+63 -00 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/6] powerpc/64s: interrupt speedups

Here's a few stragglers. The first patch was submitted already but had some bugs with unrecoverable exceptions on HPT (current->blah being accessed before MSR[RI] was enabled). Those should be fixed now.

The others are generally for helping asynch interrupts, which are a bit harder to measure well but important for IO and IPIs.

After this series, the SPR accesses of the interrupt handlers for radix are becoming pretty optimal except for PPR which we could improve on, and virt CPU accounting which is very costly -- we might disable that by default unless someone comes up with a good reason to keep it.

Since v1:
- Compile fixes for 64e.
- Fixed a SOFT_MASK_DEBUG false positive.
- Improve function name and comments explaining why patch 2 does not need to hard enable when PMU is enabled via sysfs.

Since v2:
- Split first patch into patch 1 and 2, improve on the changelogs.
- More compile fixes.
- Fixed several review comments from Daniel.
- Added patch 5.

Thanks,
Nick

Nicholas Piggin (6):
powerpc/64/interrupt: make normal synchronous interrupts enable
MSR[EE] if possible
powerpc/64s/interrupt: handle MSR EE and RI in interrupt entry wrapper powerpc/64s/perf: add power_pmu_wants_prompt_pmi to say whether perf
wants PMIs to be soft-NMI
powerpc/64s/interrupt: Don't enable MSR[EE] in irq handlers unless
perf is in use
powerpc/64/interrupt: reduce expensive debug tests powerpc/64s/interrupt: avoid saving CFAR in some asynchronous
interrupts

 arch/powerpc/include/asm/hw_irq.h    |  59 +++++++++++++---
 arch/powerpc/include/asm/interrupt.h |  58 ++++++++++++---
 arch/powerpc/kernel/dbell.c          |   3 +-
 arch/powerpc/kernel/exceptions-64s.S | 101 ++++++++++++++++++---------
 arch/powerpc/kernel/fpu.S            |   5 ++
 arch/powerpc/kernel/irq.c            |   3 +-
 arch/powerpc/kernel/time.c           |  31 ++++----
 arch/powerpc/kernel/vector.S         |  10 +++
 arch/powerpc/perf/core-book3s.c      |  31 ++++++++
 9 files changed, 232 insertions(+), 69 deletions(-)
Signature · 1 line
2.23.0