raid6: use normal stores in the x86 x4 xor_syndrome functions
PATCH 1/1 raid6: use normal stores in the x86 x4 xor_syndrome functions
xor_syndrome() updates P and Q in place for a read-modify-write. md calls it twice on the same P/Q page per write, to remove the old data and to add the new data. The x1 and x2 unrolled versions write P and Q with normal stores since commit a582564b24be ("md/raid6 algorithms:xor_syndrome() for SSE2"), which argued that non-temporal stores of less than a cache line are slow, but kept non-temporal stores in the x4 version, as it writes whole cache lines. The AVX2 and AVX-512 versions followed the same pattern.
The non-temporal stores evict P and Q from the cache and the sfence waits until they are written to memory, just before the second call reads the same P and Q again, now from memory.
Use normal aligned stores in the x4 unrolled versions too, like the x1 and x2 versions and the other architectures.
md RAID-6, 4 KiB random writes, md thread on one core, Xeon E5-2699 v3:
8+2 on null_blk (dm-raid): 85.6k -> 98.1k IOPS (+15%)
6+2 on 8 Intel Optane M10: 57.3k -> 62.1k IOPS (+8%)
Change in time per write in md's pattern (both calls and the 4 KiB copy between them), kernel code built in userspace, one core, geometric mean over 2-24 data disks, data in cache / DRAM:
avx2x4 (Xeon E5-2699 v3): -66% / -38%
avx512x4 (Xeon Gold 6130): -78% / -48%
sse2x4 (Core i5-2520M): -37% / -19%
---
Notes:
- The IOPS were measured on 2651f6deb332 (between 7.4-rc1 and -rc2) with and without this patch, with avx2x4 forced by a test-only change in raid6_choose_gen().
- The raid6 benchmark picks the implementation by gen_syndrome() speed alone. On Haswell-EP, AVX2 x2 and x4 differ only by noise, so either can be picked. With x2 picked, xor_syndrome() already uses normal stores, so this patch makes no difference in that case.
- The sfence at the end of the xor_syndrome() functions (x1, x2 versions since 2014, x4 with this patch) is no longer needed, as it no longer orders any non-temporal stores. Removing it made no measurable difference. I am happy to send a follow-up patch that removes it from all xor_syndrome() variants.
- Tested: raid6 KUnit on SSE2 and AVX2, AVX-512 was checked in userspace against a scalar reference on a Xeon Gold 6130.
lib/raid/raid6/x86/avx2.c | 16 ++++++++-------- lib/raid/raid6/x86/avx512.c | 16 ++++++++-------- lib/raid/raid6/x86/sse2.c | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-)
lib/raid/raid6/x86/avx2.c +8 -8
@@ -435,18 +435,18 @@ static void raid6_avx24_xor_syndrome(int disks, int start, int stop, asmvolatile ("vpxor %ymm13,%ymm12,%ymm12" ); asmvolatile ("vpxor %ymm15,%ymm14,%ymm14" ); } - asmvolatile ("vmovntdq %%ymm2,%0" :"=m" (p[d])); - asmvolatile ("vmovntdq %%ymm3,%0" :"=m" (p[d+32 ])); - asmvolatile ("vmovntdq %%ymm10,%0" :"=m" (p[d+64 ])); - asmvolatile ("vmovntdq %%ymm11,%0" :"=m" (p[d+96 ])); + asmvolatile ("vmovdqa %%ymm2,%0" :"=m" (p[d])); + asmvolatile ("vmovdqa %%ymm3,%0" :"=m" (p[d+32 ])); + asmvolatile ("vmovdqa %%ymm10,%0" :"=m" (p[d+64 ])); + asmvolatile ("vmovdqa %%ymm11,%0" :"=m" (p[d+96 ])); asmvolatile ("vpxor %0,%%ymm4,%%ymm4" : :"m" (q[d])); asmvolatile ("vpxor %0,%%ymm6,%%ymm6" : :"m" (q[d+32 ])); asmvolatile ("vpxor %0,%%ymm12,%%ymm12" : :"m" (q[d+64 ])); asmvolatile ("vpxor %0,%%ymm14,%%ymm14" : :"m" (q[d+96 ])); - asmvolatile ("vmovntdq %%ymm4,%0" :"=m" (q[d])); - asmvolatile ("vmovntdq %%ymm6,%0" :"=m" (q[d+32 ])); - asmvolatile ("vmovntdq %%ymm12,%0" :"=m" (q[d+64 ])); - asmvolatile ("vmovntdq %%ymm14,%0" :"=m" (q[d+96 ])); + asmvolatile ("vmovdqa %%ymm4,%0" :"=m" (q[d])); + asmvolatile ("vmovdqa %%ymm6,%0" :"=m" (q[d+32 ])); + asmvolatile ("vmovdqa %%ymm12,%0" :"=m" (q[d+64 ])); + asmvolatile ("vmovdqa %%ymm14,%0" :"=m" (q[d+96 ])); } asmvolatile ("sfence" : : :"memory" ); asmvolatile ("vzeroupper" );
lib/raid/raid6/x86/avx512.c +8 -8
@@ -516,18 +516,18 @@ static void raid6_avx5124_xor_syndrome(int disks, int start, int stop, : : ); } - asm volatile("vmovntdq %%zmm2,%0\n\t" - "vmovntdq %%zmm3,%1\n\t" - "vmovntdq %%zmm10,%2\n\t" - "vmovntdq %%zmm11,%3\n\t" + asm volatile("vmovdqa64 %%zmm2,%0\n\t" + "vmovdqa64 %%zmm3,%1\n\t" + "vmovdqa64 %%zmm10,%2\n\t" + "vmovdqa64 %%zmm11,%3\n\t" "vpxorq %4,%%zmm4,%%zmm4\n\t" "vpxorq %5,%%zmm6,%%zmm6\n\t" "vpxorq %6,%%zmm12,%%zmm12\n\t" "vpxorq %7,%%zmm14,%%zmm14\n\t" - "vmovntdq %%zmm4,%4\n\t" - "vmovntdq %%zmm6,%5\n\t" - "vmovntdq %%zmm12,%6\n\t" - "vmovntdq %%zmm14,%7" + "vmovdqa64 %%zmm4,%4\n\t" + "vmovdqa64 %%zmm6,%5\n\t" + "vmovdqa64 %%zmm12,%6\n\t" + "vmovdqa64 %%zmm14,%7" : : "m" (p[d]), "m" (p[d+64]), "m" (p[d+128]), "m" (p[d+192]), "m" (q[d]), "m" (q[d+64]),
lib/raid/raid6/x86/sse2.c +8 -8
@@ -432,18 +432,18 @@ static void raid6_sse24_xor_syndrome(int disks, int start, int stop, asmvolatile ("pxor %xmm13,%xmm12" ); asmvolatile ("pxor %xmm15,%xmm14" ); } - asmvolatile ("movntdq %%xmm2,%0" :"=m" (p[d])); - asmvolatile ("movntdq %%xmm3,%0" :"=m" (p[d+16 ])); - asmvolatile ("movntdq %%xmm10,%0" :"=m" (p[d+32 ])); - asmvolatile ("movntdq %%xmm11,%0" :"=m" (p[d+48 ])); + asmvolatile ("movdqa %%xmm2,%0" :"=m" (p[d])); + asmvolatile ("movdqa %%xmm3,%0" :"=m" (p[d+16 ])); + asmvolatile ("movdqa %%xmm10,%0" :"=m" (p[d+32 ])); + asmvolatile ("movdqa %%xmm11,%0" :"=m" (p[d+48 ])); asmvolatile ("pxor %0,%%xmm4" : :"m" (q[d])); asmvolatile ("pxor %0,%%xmm6" : :"m" (q[d+16 ])); asmvolatile ("pxor %0,%%xmm12" : :"m" (q[d+32 ])); asmvolatile ("pxor %0,%%xmm14" : :"m" (q[d+48 ])); - asmvolatile ("movntdq %%xmm4,%0" :"=m" (q[d])); - asmvolatile ("movntdq %%xmm6,%0" :"=m" (q[d+16 ])); - asmvolatile ("movntdq %%xmm12,%0" :"=m" (q[d+32 ])); - asmvolatile ("movntdq %%xmm14,%0" :"=m" (q[d+48 ])); + asmvolatile ("movdqa %%xmm4,%0" :"=m" (q[d])); + asmvolatile ("movdqa %%xmm6,%0" :"=m" (q[d+16 ])); + asmvolatile ("movdqa %%xmm12,%0" :"=m" (q[d+32 ])); + asmvolatile ("movdqa %%xmm14,%0" :"=m" (q[d+48 ])); } asmvolatile ("sfence" : : :"memory" );kernel_fpu_end ();
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
Signature · 1 line
2.53.0
Anton Gavriliuk tested the patch on Zen 5 (thread "xor_gen() md-raid6 performance improvement"):
HPE DL345 Gen11, AMD EPYC 9455, 6x PCIe 5.0 NVMe (CM7-V 3.2 TB), Fedora 45 config, v7.4-rc2 with and without the patch, both kernels select avx512x4. RAID-6 4+2, chunk 512K, no bitmap, rmw_level=2, fio 4k randwrite, O_DIRECT, io_uring, 60 s, 3 runs per kernel:
md defaults, 1 job x QD64:
without 127k / 122k / 125k IOPS (mean 124.7k)
with 132k / 139k / 137k IOPS (mean 136.0k) +9.1%(a repeat run a day later: 127k without, 135k with)
group_thread_cnt=8, stripe_cache_size=32768, 16 jobs x QD64:
without 467k / 468k / 470k IOPS (mean 468.3k)
with 473k / 471k / 471k IOPS (mean 471.7k) +0.7%With md's defaults one md thread does the stripe work for all writes and is busy most of the time (about 80% in top), so a cheaper xor_syndrome() shows up in IOPS. With 8 workers per node the limit is lock contention in md instead (on my machine most of the time goes to spinning on device_lock), so the saving hardly shows.
Miroslav
Anton Gavriliuk
Tested-byчт, 12 нояб. 2026 г. в 14:23, Miroslav Cimerman <[email protected]>:
Quoted 25 lines
Anton Gavriliuk tested the patch on Zen 5 (thread "
xor_gen()md-raid6 performance improvement"):HPE DL345 Gen11, AMD EPYC 9455, 6x PCIe 5.0 NVMe (CM7-V 3.2 TB), Fedora 45 config, v7.4-rc2 with and without the patch, both kernels select avx512x4. RAID-6 4+2, chunk 512K, no bitmap, rmw_level=2, fio 4k randwrite,
O_DIRECT,io_uring, 60 s, 3 runs per kernel:md defaults, 1 job x QD64:
without 127k / 122k / 125k IOPS (mean 124.7k) with 132k / 139k / 137k IOPS (mean 136.0k) +9.1%(a repeat run a day later: 127k without, 135k with)
group_thread_cnt=8, stripe_cache_size=32768, 16 jobs x QD64:
without 467k / 468k / 470k IOPS (mean 468.3k) with 473k / 471k / 471k IOPS (mean 471.7k) +0.7%With md's defaults one md thread does the stripe work for all writes and is busy most of the time (about 80% in top), so a cheaper
xor_syndrome()shows up in IOPS. With 8 workers per node the limit is lock contention in md instead (on my machine most of the time goes to spinning ondevice_lock), so the saving hardly shows.Miroslav
Quoted 8 lines · Miroslav Cimerman
xor_syndrome()updates P and Q in place for a read-modify-write. md calls it twice on the same P/Q page per write, to remove the old data and to add the new data. The x1 and x2 unrolled versions write P and Q with normal stores since commita582564b24be("md/raid6 algorithms:xor_syndrome()for SSE2"), which argued that non-temporal stores of less than a cache line are slow, but kept non-temporal stores in the x4 version, as it writes whole cache lines. The AVX2 and AVX-512 versions followed the same pattern.
Adding Markus as the author of that commit.
Quoted 11 lines
The non-temporal stores evict P and Q from the cache and the sfence waits until they are written to memory, just before the second call reads the same P and Q again, now from memory.
Use normal aligned stores in the x4 unrolled versions too, like the x1 and x2 versions and the other architectures.
md RAID-6, 4 KiB random writes, md thread on one core, Xeon E5-2699 v3:
8+2 on
null_blk(dm-raid): 85.6k -> 98.1k IOPS (+15%)
6+2 on 8 Intel Optane M10: 57.3k -> 62.1k IOPS (+8%)
That's pretty nice numbers.
Note that for the new xraid code we'd actually use the XOR code in a single pass, so non-temporal stores might make some sense. But I can't good heatedly argue that mainline should care for this right now.
Quoted 5 lines
- The sfence at the end of the
xor_syndrome()functions (x1, x2 versions since 2014, x4 with this patch) is no longer needed, as it no longer orders any non-temporal stores. Removing it made no measurable difference. I am happy to send a follow-up patch that removes it from allxor_syndrome()variants.
This probably should go away.
Quoted 16 lines
Von: Christoph Hellwig <[email protected]>
Gesendet: Montag, 16. November 2026 07:11
An: Miroslav Cimerman <[email protected]> <[email protected]>
Betreff: Re: [PATCH] raid6: use normal stores in the x86 x4xor_syndromefunctionsQuoted 8 lines · Miroslav Cimerman
xor_syndrome()updates P and Q in place for a read-modify-write. md calls it twice on the same P/Q page per write, to remove the old data and to add the new data. The x1 and x2 unrolled versions write P and Q with normal stores since commita582564b24be("md/raid6 algorithms:xor_syndrome()for SSE2"), which argued that non-temporal stores of less than a cache line are slow, but kept non-temporal stores in the x4 version, as it writes whole cache lines. The AVX2 and AVX-512 versions followed the same pattern.
Quoted 1 line
Adding Markus as the author of that commit.
Thanks for the update after a long time. Happy to see that this is still in place. I had only 2008 hardware at the time of the initial commit. So all observations might be wrong with newer hardware.
Markus
Quoted 5 lines · Miroslav Cimerman
- The sfence at the end of the
xor_syndrome()functions (x1, x2 versions since 2014, x4 with this patch) is no longer needed, as it no longer orders any non-temporal stores. Removing it made no measurable difference. I am happy to send a follow-up patch that removes it from allxor_syndrome()variants.
Removing the 'asm volatile("sfence" : : : "memory");' too sounds good, but be careful: a lot of the inline asm statements in lib/raid/raid6/x86/avx512.c incorrectly list the memory operands as inputs only. So, technically they rely on that "memory" clobber. The constraints should be fixed accordingly.
Also, ideally the 'prefetchnta' on q in the x4 xor_syndrome() functions would become 'prefetcht0', to match the temporal stores.
If the scope of this patch is just replacing the store instructions though, it looks fine.
- Eric
Quoted 7 lines · On Mon, 16 Nov 2026 21:04:40 +0000 Eric Biggers <[email protected]> wrote:
Quoted 5 lines · Miroslav Cimerman
- The sfence at the end of the
xor_syndrome()functions (x1, x2 versions since 2014, x4 with this patch) is no longer needed, as it no longer orders any non-temporal stores. Removing it made no measurable difference. I am happy to send a follow-up patch that removes it from allxor_syndrome()variants.
Quoted 5 lines
Removing the 'asm
volatile("sfence" : : : "memory");' too sounds good, but be careful: a lot of the inline asm statements inlib/raid/raid6/x86/avx512.cincorrectly list the memory operands as inputs only. So, technically they rely on that "memory" clobber. The constraints should be fixed accordingly.
Or, at least, put in a barrier() and a comment.
David
Quoted 10 lines
Also, ideally the 'prefetchnta' on q in the x4
xor_syndrome()functions would become 'prefetcht0', to match the temporal stores.If the scope of this patch is just replacing the store instructions though, it looks fine.
Reviewed-by Eric Biggers <[email protected]>- Eric
Andrew Morton
tree notice+ raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions.patch added to mm-nonmm-unstable branch
In reply to Miroslav CimermanThe patch titled Subject: raid6: use normal stores in the x86 x4 xor_syndrome functions has been added to the -mm mm-nonmm-unstable branch. Its filename is…
The patch titled
Subject: raid6: use normal stores in the x86 x4 xor_syndrome functions
has been added to the -mm mm-nonmm-unstable branch. Its filename is
raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Miroslav Cimerman <[email protected]>
Subject: raid6: use normal stores in the x86 x4 xor_syndrome functions
Date: Mon, 09 Nov 2026 03:08:05 +0000
xor_syndrome() updates P and Q in place for a read-modify-write. md calls it twice on the same P/Q page per write, to remove the old data and to add the new data. The x1 and x2 unrolled versions write P and Q with normal stores since commit a582564b24be ("md/raid6 algorithms: xor_syndrome() for SSE2"), which argued that non-temporal stores of less than a cache line are slow, but kept non-temporal stores in the x4 version, as it writes whole cache lines. The AVX2 and AVX-512 versions followed the same pattern.
The non-temporal stores evict P and Q from the cache and the sfence waits until they are written to memory, just before the second call reads the same P and Q again, now from memory.
Use normal aligned stores in the x4 unrolled versions too, like the x1 and x2 versions and the other architectures.
md RAID-6, 4 KiB random writes, md thread on one core, Xeon E5-2699 v3:
8+2 on null_blk (dm-raid): 85.6k -> 98.1k IOPS (+15%)
6+2 on 8 Intel Optane M10: 57.3k -> 62.1k IOPS (+8%)
Change in time per write in md's pattern (both calls and the 4 KiB copy between them), kernel code built in userspace, one core, geometric mean over 2-24 data disks, data in cache / DRAM:
avx2x4 (Xeon E5-2699 v3): -66% / -38%
avx512x4 (Xeon Gold 6130): -78% / -48%
sse2x4 (Core i5-2520M): -37% / -19%
lib/raid/raid6/x86/avx2.c | 16 ++++++++-------- lib/raid/raid6/x86/avx512.c | 16 ++++++++-------- lib/raid/raid6/x86/sse2.c | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-)
lib/raid/raid6/x86/avx2.c renamed from lib/raid/raid6/x86/avx2.c~raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions +8 -8
@@ -435,18 +435,18 @@ static void raid6_avx24_xor_syndrome(int asmvolatile ("vpxor %ymm13,%ymm12,%ymm12" ); asmvolatile ("vpxor %ymm15,%ymm14,%ymm14" ); } - asmvolatile ("vmovntdq %%ymm2,%0" :"=m" (p[d])); - asmvolatile ("vmovntdq %%ymm3,%0" :"=m" (p[d+32 ])); - asmvolatile ("vmovntdq %%ymm10,%0" :"=m" (p[d+64 ])); - asmvolatile ("vmovntdq %%ymm11,%0" :"=m" (p[d+96 ])); + asmvolatile ("vmovdqa %%ymm2,%0" :"=m" (p[d])); + asmvolatile ("vmovdqa %%ymm3,%0" :"=m" (p[d+32 ])); + asmvolatile ("vmovdqa %%ymm10,%0" :"=m" (p[d+64 ])); + asmvolatile ("vmovdqa %%ymm11,%0" :"=m" (p[d+96 ])); asmvolatile ("vpxor %0,%%ymm4,%%ymm4" : :"m" (q[d])); asmvolatile ("vpxor %0,%%ymm6,%%ymm6" : :"m" (q[d+32 ])); asmvolatile ("vpxor %0,%%ymm12,%%ymm12" : :"m" (q[d+64 ])); asmvolatile ("vpxor %0,%%ymm14,%%ymm14" : :"m" (q[d+96 ])); - asmvolatile ("vmovntdq %%ymm4,%0" :"=m" (q[d])); - asmvolatile ("vmovntdq %%ymm6,%0" :"=m" (q[d+32 ])); - asmvolatile ("vmovntdq %%ymm12,%0" :"=m" (q[d+64 ])); - asmvolatile ("vmovntdq %%ymm14,%0" :"=m" (q[d+96 ])); + asmvolatile ("vmovdqa %%ymm4,%0" :"=m" (q[d])); + asmvolatile ("vmovdqa %%ymm6,%0" :"=m" (q[d+32 ])); + asmvolatile ("vmovdqa %%ymm12,%0" :"=m" (q[d+64 ])); + asmvolatile ("vmovdqa %%ymm14,%0" :"=m" (q[d+96 ])); } asmvolatile ("sfence" : : :"memory" ); asmvolatile ("vzeroupper" );
lib/raid/raid6/x86/avx512.c renamed from lib/raid/raid6/x86/avx512.c~raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions +8 -8
@@ -516,18 +516,18 @@ static void raid6_avx5124_xor_syndrome(i : : ); } - asm volatile("vmovntdq %%zmm2,%0\n\t" - "vmovntdq %%zmm3,%1\n\t" - "vmovntdq %%zmm10,%2\n\t" - "vmovntdq %%zmm11,%3\n\t" + asm volatile("vmovdqa64 %%zmm2,%0\n\t" + "vmovdqa64 %%zmm3,%1\n\t" + "vmovdqa64 %%zmm10,%2\n\t" + "vmovdqa64 %%zmm11,%3\n\t" "vpxorq %4,%%zmm4,%%zmm4\n\t" "vpxorq %5,%%zmm6,%%zmm6\n\t" "vpxorq %6,%%zmm12,%%zmm12\n\t" "vpxorq %7,%%zmm14,%%zmm14\n\t" - "vmovntdq %%zmm4,%4\n\t" - "vmovntdq %%zmm6,%5\n\t" - "vmovntdq %%zmm12,%6\n\t" - "vmovntdq %%zmm14,%7" + "vmovdqa64 %%zmm4,%4\n\t" + "vmovdqa64 %%zmm6,%5\n\t" + "vmovdqa64 %%zmm12,%6\n\t" + "vmovdqa64 %%zmm14,%7" : : "m" (p[d]), "m" (p[d+64]), "m" (p[d+128]), "m" (p[d+192]), "m" (q[d]), "m" (q[d+64]),
lib/raid/raid6/x86/sse2.c renamed from lib/raid/raid6/x86/sse2.c~raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions +8 -8
@@ -432,18 +432,18 @@ static void raid6_sse24_xor_syndrome(int asmvolatile ("pxor %xmm13,%xmm12" ); asmvolatile ("pxor %xmm15,%xmm14" ); } - asmvolatile ("movntdq %%xmm2,%0" :"=m" (p[d])); - asmvolatile ("movntdq %%xmm3,%0" :"=m" (p[d+16 ])); - asmvolatile ("movntdq %%xmm10,%0" :"=m" (p[d+32 ])); - asmvolatile ("movntdq %%xmm11,%0" :"=m" (p[d+48 ])); + asmvolatile ("movdqa %%xmm2,%0" :"=m" (p[d])); + asmvolatile ("movdqa %%xmm3,%0" :"=m" (p[d+16 ])); + asmvolatile ("movdqa %%xmm10,%0" :"=m" (p[d+32 ])); + asmvolatile ("movdqa %%xmm11,%0" :"=m" (p[d+48 ])); asmvolatile ("pxor %0,%%xmm4" : :"m" (q[d])); asmvolatile ("pxor %0,%%xmm6" : :"m" (q[d+16 ])); asmvolatile ("pxor %0,%%xmm12" : :"m" (q[d+32 ])); asmvolatile ("pxor %0,%%xmm14" : :"m" (q[d+48 ])); - asmvolatile ("movntdq %%xmm4,%0" :"=m" (q[d])); - asmvolatile ("movntdq %%xmm6,%0" :"=m" (q[d+16 ])); - asmvolatile ("movntdq %%xmm12,%0" :"=m" (q[d+32 ])); - asmvolatile ("movntdq %%xmm14,%0" :"=m" (q[d+48 ])); + asmvolatile ("movdqa %%xmm4,%0" :"=m" (q[d])); + asmvolatile ("movdqa %%xmm6,%0" :"=m" (q[d+16 ])); + asmvolatile ("movdqa %%xmm12,%0" :"=m" (q[d+32 ])); + asmvolatile ("movdqa %%xmm14,%0" :"=m" (q[d+48 ])); } asmvolatile ("sfence" : : :"memory" );kernel_fpu_end ();
_
Patches currently in -mm which might be from [email protected] are
raid6-use-normal-stores-in-the-x86-x4-xor_syndrome-functions.patch