Skip to content

x86/UV/KDB/NMI: Updates for NMI/KDB handler for SGI UV

Mike Travis lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86/UV: Move NMI supportarch/x86/include/asm/uv/uv.h arch/x86/kernel/apic/x2apic_uv_x.c arch/x86/platform/uv/Makefile +1 more+105 -700 replies
2/9x86/UV: Update UV support for external NMI signalsarch/x86/include/asm/uv/uv_hub.h arch/x86/include/asm/uv/uv_mmrs.h arch/x86/kernel/apic/x2apic_uv_x.c +1 more+599 -410 replies
3/9x86/UV: Add summary of cpu activity to UV NMI handlerarch/x86/platform/uv/uv_nmi.c+44 -40 replies
4/9x86/UV: Add kdump to UV NMI handlerarch/x86/platform/uv/uv_nmi.c+41 -00 replies
5/9KGDB/KDB: add support for external NMI handler to call KGDB/KDB.include/linux/kgdb.h kernel/debug/debug_core.c kernel/debug/debug_core.h+43 -01 reply
6/9x86/UV: Add call to KGDB/KDB from NMI handlerarch/x86/platform/uv/uv_nmi.c+46 -10 replies
7/9KGDB/KDB: add new system NMI entry code to KDBinclude/linux/kdb.h include/linux/kgdb.h kernel/debug/debug_core.c +2 more+14 -12 replies
8/9x86/UV: Add uvtrace supportarch/x86/include/asm/uv/uv.h arch/x86/platform/uv/uv_nmi.c+20 -10 replies
9/9x86/UV: Add ability to disable UV NMI handlerarch/x86/platform/uv/uv_nmi.c+69 -010 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchDimitri SivanichHedi Berriche
1/9R-b R-b
2/9R-b R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b R-b
8/9R-b R-b
9/9R-b R-b

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/9] x86/UV/KDB/NMI: Updates for NMI/KDB handler for SGI UV

V2: Split KDB updates from NMI updates. Broke up the big patch to
uv_nmi.c into smaller patches. Updated to the latest linux kernel version.

The current UV NMI handler has not been updated for the changes in the system NMI handler and the perf operations. The UV NMI handler reads an MMR in the UV Hub to check to see if the NMI event was caused by the external 'system NMI' that the operator can initiate on the System Mgmt Controller.

The problem arises when the perf tools are running, causing millions of perf events per second on very large CPU count systems. Previously this was okay because the perf NMI handler ran at a higher priority on the NMI call chain and if the NMI was a perf event, it would stop calling other NMI handlers remaining on the NMI call chain.

Now the system NMI handler calls all the handlers on the NMI call chain including the UV NMI handler. This causes the UV NMI handler to read the MMRs at the same millions per second rate. This can lead to significant performance loss and possible system failures. It also can cause thousands of 'Dazed and Confused' messages being sent to the system console. This effectively makes perf tools unusable on UV systems.

This patch set addresses this problem and allows the perf tools to run on UV without impacting performance and causing system failures.