Skip to content

FPU detection in C, second try

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: Get rid of ->hard_math and all the FPU asm fuarch/x86/include/asm/fpu-internal.h arch/x86/include/asm/processor.h arch/x86/kernel/asm-offsets_32.c +9 more+60 -650 replies
2/3x86: Sanity-check static_cpu_has usagearch/x86/include/asm/cpufeature.h arch/x86/kernel/cpu/common.c+28 -11 reply
3/3x86, FPU: Do not use static_cpu_has before alternativesarch/x86/include/asm/fpu-internal.h+1 -13 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] FPU detection in C, second try

From: Borislav Petkov <[email protected]>

Right,

here's the fixed version which boots fine on everything I have here. It would be nice if Ingo could test it on his K8 with the 32-bit MATH_EMULATION config to make sure the corruptions don't happen anymore.

The second one is the sanity check for static_cpu_has which we discussed yesterday.

And how cool is that: it already caught an unrelated issue in the FPU code which resulted in patch #3. Fun.

Thanks.

Borislav Petkov (2):
x86: Sanity-check static_cpu_has usage
x86, FPU: Do not use static_cpu_has before alternatives

H. Peter Anvin (1):
x86: Get rid of ->hard_math and all the FPU asm fu

 arch/x86/include/asm/cpufeature.h   | 23 ++++++++++++++-
 arch/x86/include/asm/fpu-internal.h |  4 +--
 arch/x86/include/asm/processor.h    |  3 +-
 arch/x86/kernel/asm-offsets_32.c    |  1 -
 arch/x86/kernel/cpu/bugs.c          | 21 ++-----------
 arch/x86/kernel/cpu/common.c        |  9 ++++--
 arch/x86/kernel/cpu/cyrix.c         |  2 +-
 arch/x86/kernel/cpu/proc.c          |  4 +--
 arch/x86/kernel/head_32.S           | 21 -------------
 arch/x86/kernel/i387.c              | 59 ++++++++++++++++++++++++++++++-------
 arch/x86/kernel/xsave.c             |  5 ++--
 arch/x86/lguest/boot.c              |  2 +-
 arch/x86/xen/enlighten.c            |  2 +-
 13 files changed, 89 insertions(+), 67 deletions(-)
Signature · 1 line
1.8.3.rc0