Skip to content

Kernel mode NEON for XOR and RAID6

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 5 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Kernel mode NEON for XOR and RAID6
Quoted 1 line · Ard Biesheuvel

Hi all,

Hi Ard,

Quoted 6 lines

This is a partial repost of the patches I proposed a couple of weeks ago to add support for VFP/NEON in kernel mode.

This time, I have included two use cases that I have been using, XOR and RAID-6 checksumming. The former gets a 60% performance boost on the NEON, the latter over 400%.

Whilst that sounds impressive, can you achieve similar results across all NEON-capable CPUs? In particular, we need to make sure this doesn't cause performance regressions on some cores. Furthermore, do you have any power figures to complement your findings? The increased context-switch overhead is also worth measuring if you can (i.e. run some userspace NEON-based benchmarks in parallel with NEON and non-NEON implementations of the checksumming).

Quoted 6 lines

lib/raid6: add ARM-NEON accelerated syndrome calculation

This is a port of the RAID-6 checksumming code in altivec.uc ported to use NEON intrinsics. It is about 4x faster than the sequential code. As this code does not live under arch/arm, I will send this patch separately to the appropriate list if/when the prerequisite patches from this series have been accepted.

We support building the kernel with older toolchains, so I don't see the benefit of using intrinsics here. Have you tried writing an implementation with NEON instructions directly?

Will