Skip to content

CPUID and FPU fixes

Andy Lutomirski lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesIn review
  2. v1 RFC6 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Whitespace fixes
- Prettify the FPU probing code (Borislav)
- Improve logging (Borislav)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/cpu: Add X86_FEATURE_CPUIDarch/x86/include/asm/cpufeatures.h arch/x86/kernel/cpu/common.c+5 -40 replies
2/6x86/cpu: Factor out application of forced cpu capsarch/x86/kernel/cpu/common.c+12 -80 replies
3/6x86/cpu: Re-apply forced caps every time cpu caps are re-readarch/x86/kernel/cpu/common.c+7 -01 reply
4/6x86/fpu: Fix "x86/fpu: Legacy x87 FPU detected" messagearch/x86/kernel/fpu/xstate.c+7 -10 replies
5/6x86/fpu: Fix CPUID-less FPU detectionarch/x86/kernel/fpu/init.c+16 -131 reply
6/6x86/fpu: Fix the "Giving up, no FPU found" testarch/x86/kernel/fpu/init.c+1 -10 replies

Reviews trailers per patch

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

PatchBorislav Petkov
1/6
2/6
3/6
4/6
5/6R-b
6/6

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

Read the v2 thread

Cover letter [PATCH v2 0/6] CPUID and FPU fixes

Our CPUID-less FPU detection code was terminally broken and, as far as I can tell, it's been broken for a long, long time. This series tries to improve the situation.

Changes from v1:
- Whitespace fixes
- Prettify the FPU probing code (Borislav)
- Improve logging (Borislav)

Andy Lutomirski (5):
x86/cpu: Factor out application of forced cpu caps x86/cpu: Re-apply forced caps every time cpu caps are re-read x86/fpu: Fix "x86/fpu: Legacy x87 FPU detected" message x86/fpu: Fix CPUID-less FPU detection
x86/fpu: Fix the "Giving up, no FPU found" test

Borislav Petkov (1):
x86/cpu: Add X86_FEATURE_CPUID

 arch/x86/include/asm/cpufeatures.h |  2 +-
 arch/x86/kernel/cpu/common.c       | 34 +++++++++++++++++++++++-----------
 arch/x86/kernel/fpu/init.c         | 31 +++++++++++++++++--------------
 arch/x86/kernel/fpu/xstate.c       |  8 +++++++-
 4 files changed, 48 insertions(+), 27 deletions(-)
Signature · 1 line
2.9.3