[PATCH v1 4/5] arm64: arch/arm/lib: Add optimized memset/memcpy functions

Tom Rini trini at konsulko.com
Fri Aug 6 16:43:43 CEST 2021


On Fri, Aug 06, 2021 at 03:38:42PM +0200, Stefan Roese wrote:

> Ported from https://github.com/ARM-software/optimized-routines
> 
> Please note that when adding these optimized functions as default memset
> memcpy functions in U-Boot, U-Boot fails to boot on the LX2160ARDB.
> After the initial ATF output, no U-Boot output is shown on the serial
> console. Some exception is triggered here in the very early boot process
> as some of the assembler opcodes need the caches to be enabled.
> 
> Because of this, some additional patches will introduce memset_simple()
> which will be used in some selected code location.
> 
> Note:
> I also integrated and tested with the Linux versions of these optimized
> functions. They are similar to the ones now integrated but these ARM
> versions are still a small bit faster.

Ah, so here's why you didn't use the kernel versions.  Do the kernel
versions still have the cache issue?  Also, this should be reworded a
bit since you did introduce memset_simple before here.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210806/4a61e0cb/attachment.sig>


More information about the U-Boot mailing list