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

Stefan Roese sr at denx.de
Fri Aug 6 16:45:52 CEST 2021


Hi Tom,

On 06.08.21 16:43, Tom Rini wrote:
> 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?

Yes, same issue unfortunately.

>  Also, this should be reworded a
> bit since you did introduce memset_simple before here.

Agreed. I missed this. I'll reword this in v2.

Thanks,
Stefan


More information about the U-Boot mailing list