Skip to content

x86 FPU cleanups (v2)

Brian Gerst lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 27 repliesIn review

v2 from the cover letter

- Don't write to %cr4 unless some bits are set
- Reworked the fpu_save_init() merge

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12x86: Use correct type for %cr4arch/x86/include/asm/processor.h+2 -22 replies
2/12x86: Merge fpu_init()arch/x86/kernel/cpu/common.c arch/x86/kernel/i387.c arch/x86/kernel/traps.c+14 -352 replies
3/12x86: Merge tolerant_fwait()arch/x86/include/asm/i387.h+4 -152 replies
4/12x86: Merge __save_init_fpu()arch/x86/include/asm/i387.h+2 -92 replies
5/12x86-64: Disable preemption when using TS_USEDFPUarch/x86/include/asm/i387.h arch/x86/kernel/process_64.c+1 -162 replies
6/12x86-64: Fix %cs value in convert_from_fxsr()arch/x86/kernel/i387.c+8 -102 replies
7/12x86-64: Simplify constraints for fxsave/fxtstorarch/x86/include/asm/i387.h+17 -274 replies
8/12x86-32: Remove math_emulate stubarch/x86/kernel/traps.c+6 -172 replies
9/12x86: Remove unnecessary ifdefs from i387 code.arch/x86/include/asm/i387.h arch/x86/kernel/i387.c+6 -102 replies
10/12x86: Remove PSHUFB_XMM5_* macrosarch/x86/include/asm/i387.h+0 -32 replies
11/12x86-32: Rewrite fpu_save_init()arch/x86/include/asm/i387.h+22 -252 replies
12/12x86: Merge fpu_save_init()arch/x86/include/asm/i387.h+4 -442 replies

Reviews trailers per patch

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

PatchPekka Enberg
1/12A-b A-b
2/12A-b A-b
3/12A-b A-b
4/12A-b A-b
5/12A-b A-b
6/12A-b A-b
7/12A-b A-b
8/12A-b A-b
9/12A-b A-b
10/12A-b A-b
11/12A-b A-b
12/12A-b A-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/12] x86 FPU cleanups (v2)

This patch set cleans up and merges the 32-bit and 64-bit FPU code.

v2:
- Don't write to %cr4 unless some bits are set
- Reworked the fpu_save_init() merge

[PATCH 01/12] x86: Use correct type for %cr4
[PATCH 02/12] x86: Merge fpu_init()
[PATCH 03/12] x86: Merge tolerant_fwait()
[PATCH 04/12] x86: Merge __save_init_fpu()
[PATCH 05/12] x86-64: Disable preemption when using TS_USEDFPU [PATCH 06/12] x86-64: Fix %cs value in convert_from_fxsr() [PATCH 07/12] x86-64: Simplify constraints for fxsave/fxtstor [PATCH 08/12] x86-32: Remove math_emulate stub [PATCH 09/12] x86: Remove unnecessary ifdefs from i387 code. [PATCH 10/12] x86: Remove PSHUFB_XMM5_* macros [PATCH 11/12] x86-32: Rewrite fpu_save_init()
[PATCH 12/12] x86: Merge fpu_save_init()

 arch/x86/include/asm/i387.h      |  195 ++++++++++---------------------------
 arch/x86/include/asm/processor.h |    4 +-
 arch/x86/kernel/cpu/common.c     |    7 --
 arch/x86/kernel/i387.c           |   52 +++++------
 arch/x86/kernel/process_64.c     |    2 +-
 arch/x86/kernel/traps.c          |   35 +------
 6 files changed, 84 insertions(+), 211 deletions(-)