[PATCH 1/3] riscv: optimized memcpy
Emil Renner Berthing
kernel at esmil.dk
Tue Jun 15 09:12:31 PDT 2021
On Tue, 15 Jun 2021 at 15:29, Bin Meng <bmeng.cn at gmail.com> wrote:
> Yes, Gary Guo sent one patch long time ago against the broken assembly
> version, but that patch was still not applied as of today.
> I suggest Matteo re-test using Gary's version.
That's a good idea, but if you read the replies to Gary's original patch
.. both Gary, Palmer and David would rather like a C-based version.
This is one attempt at providing that.
> > I'm surprised IP_NET_ALIGN isn't set to 2 to try to
> > avoid all these misaligned copies in the network stack.
> > Although avoiding 8n+4 aligned data is rather harder.
> > Misaligned copies are just best avoided - really even on x86.
> > The 'real fun' is when the access crosses TLB boundaries.
More information about the linux-riscv