Skip to content

x86: Cleanup NMI handling

Sohil Mehta lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/nmi branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 27 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9x86/nmi: Simplify unknown NMI panic handlingarch/x86/include/asm/nmi.h arch/x86/kernel/setup.c+18 -234 replies
2/9x86/nmi: Consolidate NMI panic variablesarch/x86/include/asm/nmi.h arch/x86/kernel/dumpstack.c arch/x86/kernel/nmi.c +1 more+5 -47 replies
3/9x86/nmi: Use a macro to initialize NMI descriptorsarch/x86/kernel/nmi.c+11 -201 reply
4/9x86/nmi: Remove export of local_touch_nmi()arch/x86/kernel/nmi.c+0 -11 reply
5/9x86/nmi: Fix comment in unknown NMI handlingarch/x86/kernel/nmi.c+3 -44 replies
6/9x86/nmi: Improve and relocate NMI handler commentsarch/x86/kernel/nmi.c+21 -141 reply
7/9x86/nmi: Improve NMI header documentationarch/x86/include/asm/nmi.h arch/x86/include/asm/x86_init.h+43 -15 replies
8/9x86/nmi: Clean up NMI selftestarch/x86/kernel/nmi_selftest.c+16 -360 replies
9/9x86/nmi: Improve NMI duration console printarch/x86/kernel/nmi.c+5 -51 reply

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKai HuangPeter Zijlstra (Intel)Nikolay Borisov
SeriesA-b R-b
1/9
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9A-b
7/9
8/9
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/9] x86: Cleanup NMI handling

While reworking the NMI-source patches[1], I spent quite a few days understanding the existing NMI handling code. The intention of this series is to fix the inconsistencies and redundancies that I encountered.

This series also includes improved documentation to make the code easier to follow. It does not introduce any significant functional changes.

I have tried to split the patches logically to make them easier to review. Let me know if some of them should be combined. The patches are in no particular order and can be picked up independently.

The documentation updates in patches (5, 6, 7) are to the best of my ability. However, I would really appreciate extra eyes to ensure it is precise.

The updated NMI-source patches will follow this series sometime later.

@Ingo, I tried to format the commit references the way you prefer:

Commit:

    feeaf5512947 ("x86: Move sysctls into arch/x86")

However, checkpatch seems to dislike it, so I reformatted them as below:

Commit feeaf5512947 ("x86: Move sysctls into arch/x86")

Is there a specific guideline for x86?

[1]: https://lore.kernel.org/lkml/[email protected]/

Sohil Mehta (9):
x86/nmi: Simplify unknown NMI panic handling x86/nmi: Consolidate NMI panic variables x86/nmi: Use a macro to initialize NMI descriptors x86/nmi: Remove export of local_touch_nmi() x86/nmi: Fix comment in unknown NMI handling x86/nmi: Improve and relocate NMI handler comments x86/nmi: Improve NMI header documentation x86/nmi: Clean up NMI selftest
x86/nmi: Improve NMI duration console print

 arch/x86/include/asm/nmi.h      | 49 +++++++++++++++++--
 arch/x86/include/asm/x86_init.h |  1 +
 arch/x86/kernel/dumpstack.c     |  2 -
 arch/x86/kernel/nmi.c           | 87 ++++++++++++++++-----------------
 arch/x86/kernel/nmi_selftest.c  | 52 ++++++--------------
 arch/x86/kernel/setup.c         | 37 ++++++--------
 include/linux/panic.h           |  2 -
 7 files changed, 122 insertions(+), 108 deletions(-)
Signature · 1 line
2.43.0