From: David Laight <david.laight.linux@gmail.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: linux-raid@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
linux-crypto@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org, Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH 0/3] raid: remove obsolete MMX optimized code
Date: Mon, 26 Oct 2026 15:00:38 +0000 [thread overview]
Message-ID: <20261026150038.6d08478c@pumpkin> (raw)
In-Reply-To: <20261025191207.86590-1-ebiggers@kernel.org>
On Sun, 25 Oct 2026 12:12:04 -0700
Eric Biggers <ebiggers@kernel.org> wrote:
> 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.
Seems like a good idea.
I wonder if all that loop unrolling was needed :-)
David
>
> 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
next prev parent reply other threads:[~2026-10-26 15:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-25 19:12 [PATCH 0/3] raid: remove obsolete MMX optimized code Eric Biggers
2026-10-25 19:12 ` [PATCH 1/3] xor: " Eric Biggers
2026-10-25 19:12 ` [PATCH 2/3] raid6: " Eric Biggers
2026-10-25 19:12 ` [PATCH 3/3] raid6: simplify CPU feature checks Eric Biggers
2026-10-26 14:57 ` David Laight
2026-10-26 18:47 ` Eric Biggers
2026-10-26 15:00 ` David Laight [this message]
2026-10-27 15:07 ` [PATCH 0/3] raid: remove obsolete MMX optimized code Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261026150038.6d08478c@pumpkin \
--to=david.laight.linux@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ebiggers@kernel.org \
--cc=hch@lst.de \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.