Skip to content

powerpc: Misc fixes for debug kernel splats

Ritesh Harjani (IBM) linuxppc-dev lkml stable 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 3 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

Changes in v3 from the cover letter

=========
1. Instead of calling lockdep_hardirq_exit() 5 times, consolidated that once for the entire duration of __replay_soft_interrupts(). - (Christophe)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4powerpc/64: Leave lockdep hardirq context around replayed interruptsarch/powerpc/kernel/irq_64.c+14 -50 replies
2/4powerpc/watchdog: Disable preemption in arch_touch_nmi_watchdog()arch/powerpc/kernel/watchdog.c+6 -20 replies
3/4powerpc/kvm-hv-pmu: Don't allocate gsm/gsb GFP_KERNEL allocations under spinlockarch/powerpc/perf/kvm-hv-pmu.c+30 -350 replies
4/4powerpc/kvm-hv-pmu: Free hostwide stats buffers if perf_pmu_register() failsarch/powerpc/perf/kvm-hv-pmu.c+3 -10 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchShrikanth Hegde
1/4
2/4R-b
3/4
4/4

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

Read the v3 thread

Cover letter [PATCHv3 0/4] powerpc: Misc fixes for debug kernel splats

Enabling debug options like PROVE_LOCKING, DEBUG_PREEMPT and DEBUG_ATOMIC_SLEEP on powerpc64 showed these warnings.

Main motivation for me to look into this was - many folks internally reported that after generic entry/exit feature, they aren't able to use lockdep because of the warning splat it generates during boot, after which lockdep gets disabled.

Therefore this series is an attempt to fix the warnings which are generated
- when we enable these various debug config options.

v2 -> v3:
=========
1. Instead of calling lockdep_hardirq_exit() 5 times, consolidated that once for the entire duration of __replay_soft_interrupts(). - (Christophe)

v1 -> v2:
========
1. Patch-4 fixes a pre-exiting issue pointed out by Sashiko.
2. Patch-2 and patch-3 from previous revision is re-arranged.
3. Patch-2 change smp_processor_id() to raw_smp_processor_id() since preemption is already off - (From Shrikanth)

Ritesh Harjani (IBM) (4):
powerpc/64: Leave lockdep hardirq context around replayed interrupts powerpc/watchdog: Disable preemption in arch_touch_nmi_watchdog() powerpc/kvm-hv-pmu: Don't allocate gsm/gsb GFP_KERNEL allocations under spinlock powerpc/kvm-hv-pmu: Free hostwide stats buffers if perf_pmu_register() fails

 arch/powerpc/kernel/irq_64.c   | 19 +++++++---
 arch/powerpc/kernel/watchdog.c |  8 +++-
 arch/powerpc/perf/kvm-hv-pmu.c | 69 ++++++++++++++++------------------
 3 files changed, 53 insertions(+), 43 deletions(-)

--
2.39.5