[PATCH v6 3/8] selftest: riscv: test vectorized user copy

Paul Walmsley pjw at kernel.org
Tue Oct 6 03:02:35 PDT 2026


On Fri, 18 Sep 2026, Andy Chiu wrote:

> Add a test that pushes a 1KiB pseudo-random stream through a pipe, so
> write() and read() copy it in and out of the kernel on the vectorized
> uaccess path, and compares the result against the original. Both buffers
> shift every iteration to sweep all relative alignments, and 16 processes
> per online CPU keep the vector unit contended. The compare is a byte at a
> time loop through volatile pointers rather than memcmp(), keeping it scalar
> and independent of the user vector state.
> 
> Assisted-by: Claude-Code:claude-opus-5
> Signed-off-by: Andy Chiu <tchiu at tenstorrent.com>

Thanks, queued for v7.4.


- Paul



More information about the linux-riscv mailing list