Skip to content

raid: remove obsolete MMX optimized code

Eric Biggers linux-crypto linux-raid 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/3xor: remove obsolete MMX optimized codelib/raid/xor/Makefile lib/raid/xor/x86/xor-mmx.c lib/raid/xor/x86/xor_arch.h+1 -5210 replies
2/3raid6: remove obsolete MMX optimized codelib/raid/raid6/Makefile lib/raid/raid6/x86/mmx.c lib/raid/raid6/x86/pq_arch.h +1 more+0 -2760 replies
3/3raid6: simplify CPU feature checkslib/raid/raid6/x86/pq_arch.h+11 -402 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph Hellwig
SeriesR-b
1/3
2/3
3/3

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/3] raid: remove obsolete MMX optimized code

This series retires 32-bit MMX optimizations for RAID.

Affected CPUs, such as the Pentium MMX and Pentium II, will just fall back to the existing well-tested scalar code instead.

This was the only remaining MMX optimized code in the kernel. MMX optimizations for the much more commonly called functions memcpy(), copy_page(), and clear_page() were already removed years ago by commit c6dbd3e5e69c ("x86/mmx_32: Remove X86_USE_3DNOW"). There are zero MMX optimizations for anything else, like crypto or CRC, which left the RAID code as an outlier.

Patch 3 also cleans up the CPU feature checks in the RAID6 code.

Eric Biggers (3):
xor: remove MMX optimized code
raid6: remove MMX optimized code
raid6: simplify CPU feature checks

 lib/raid/raid6/Makefile      |   4 -
 lib/raid/raid6/x86/mmx.c     | 118 --------
 lib/raid/raid6/x86/pq_arch.h |  69 +----
 lib/raid/raid6/x86/sse1.c    | 136 ---------
 lib/raid/xor/Makefile        |   2 +-
 lib/raid/xor/x86/xor-mmx.c   | 515 -----------------------------------
 lib/raid/xor/x86/xor_arch.h  |   5 -
 7 files changed, 12 insertions(+), 837 deletions(-)
 delete mode 100644 lib/raid/raid6/x86/mmx.c
 delete mode 100644 lib/raid/raid6/x86/sse1.c
 delete mode 100644 lib/raid/xor/x86/xor-mmx.c

base-commit: 21a7f44fd0765fcc5194130b28767786eba1d1e7

Signature · 1 line
2.56.0