Skip to content

powerpc/64s: fix and improve machine check handling

Nicholas Piggin kvm-ppc linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8powerpc/64s/powernv: Fix memory corruption when saving SLB entries on MCEarch/powerpc/platforms/powernv/setup.c+6 -21 reply
2/8powerpc/64s/powernv: Allow KVM to handle guest machine check detailsarch/powerpc/kernel/mce.c arch/powerpc/kernel/mce_power.c+55 -430 replies
3/8KVM: PPC: Book3S HV: Don't attempt to recover machine checks for FWNMI enabled guestsarch/powerpc/kvm/book3s_hv_ras.c+16 -70 replies
4/8KVM: PPC: Book3S HV: Ratelimit machine check messages coming from guestsarch/powerpc/kvm/book3s_hv.c+8 -31 reply
5/8powerpc/64s/powernv: ratelimit harmless HMI error printingarch/powerpc/platforms/powernv/opal-hmi.c+15 -121 reply
6/8powerpc/64s/pseries: Add ERAT specific machine check handlerarch/powerpc/include/asm/mce.h arch/powerpc/kernel/mce_power.c arch/powerpc/platforms/pseries/ras.c+6 -20 replies
7/8powerpc/64s: Remove "Host" from MCE loggingarch/powerpc/kernel/mce.c+1 -10 replies
8/8powerpc/64s: tidy machine check SLB loggingarch/powerpc/mm/book3s64/slb.c+21 -180 replies

Reviews trailers per patch

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

PatchMahesh Salgaonkar
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] powerpc/64s: fix and improve machine check handling

First patch is a nasty memory scribble introduced by me :( That should go into fixes.

The next ones could wait for next merge window. They get things to the point where misbehaving or buggy guest isn't so painful for the host, and also get the guest SLB dumping code working (because the host no longer clears them before delivering the MCE to the guest).

I have a crasher guest vmlinux with a few SLB handling bugs introduced which now bumbles along okay without bothering the host so much.

I don't know what the picture or high level strategy really is for UE memory errors in the guest, particularly with PowerVM, so some review there would be good (I haven't changed anything really in that space AFAIKS, but as an overall "is this the right way to go" kind of thing).

Thanks,
Nick

Nicholas Piggin (8):
powerpc/64s/powernv: Fix memory corruption when saving SLB entries on
MCE
powerpc/64s/powernv: Allow KVM to handle guest machine check details
KVM: PPC: Book3S HV: Don't attempt to recover machine checks for FWNMI
enabled guests
KVM: PPC: Book3S HV: Ratelimit machine check messages coming from
guests
powerpc/64s/powernv: ratelimit harmless HMI error printing powerpc/64s/pseries: Add ERAT specific machine check handler powerpc/64s: Remove "Host" from MCE logging
powerpc/64s: tidy machine check SLB logging

 arch/powerpc/include/asm/mce.h            |  1 +
 arch/powerpc/kernel/mce.c                 |  4 +-
 arch/powerpc/kernel/mce_power.c           | 98 +++++++++++++----------
 arch/powerpc/kvm/book3s_hv.c              | 11 ++-
 arch/powerpc/kvm/book3s_hv_ras.c          | 23 ++++--
 arch/powerpc/mm/book3s64/slb.c            | 39 ++++-----
 arch/powerpc/platforms/powernv/opal-hmi.c | 27 ++++---
 arch/powerpc/platforms/powernv/setup.c    |  9 ++-
 arch/powerpc/platforms/pseries/ras.c      |  5 +-
 9 files changed, 129 insertions(+), 88 deletions(-)
Signature · 1 line
2.23.0