Skip to content

x86: Merge fpu and simd exception handlers (v2)

Brian Gerst lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

v2 from the cover letter

Changed the cache flush denied handler to simply redirect to general protection fault.
Squashed patch to remove die_if_kernel() into patch #1.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86-32: Rework cache flush denied handlerarch/x86/Kconfig.cpu arch/x86/kernel/entry_32.S arch/x86/kernel/traps.c+26 -281 reply
2/4x86: Merge simd_math_error() into math_error()arch/x86/include/asm/traps.h arch/x86/kernel/irqinit.c arch/x86/kernel/traps.c+34 -701 reply
3/4x86: Merge kernel_math_error() into math_error()arch/x86/kernel/traps.c+16 -281 reply
4/4x86-32: Don't set ignore_fpu_irq in simd exceptionarch/x86/kernel/traps.c+0 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] x86: Merge fpu and simd exception handlers (v2)

This patch series merges the fpu and simd exception handlers into one function. The only difference is where the status bits are read from. This also applies a fix for multiple simd exceptions that was already done for fpu.

v2:
Changed the cache flush denied handler to simply redirect to general protection fault.
Squashed patch to remove die_if_kernel() into patch #1.

[PATCH 1/4] x86-32: Rework cache flush denied handler [PATCH 2/4] x86: Merge simd_math_error() into math_error() [PATCH 3/4] x86: Merge kernel_math_error() into math_error() [PATCH 4/4] x86-32: Don't set ignore_fpu_irq in simd exception

 arch/x86/Kconfig.cpu         |    4 +
 arch/x86/include/asm/traps.h |    2 +-
 arch/x86/kernel/entry_32.S   |   19 +++++
 arch/x86/kernel/irqinit.c    |    2 +-
 arch/x86/kernel/traps.c      |  173 ++++++++++++------------------------------
 5 files changed, 73 insertions(+), 127 deletions(-)