On Mon, Jul 19, 2021 at 11:21:51AM +0200, Patrick Delaunay wrote: > From: Patrice Chotard <patrice.chot...@foss.st.com> > > At early U-Boot stage, before relocation, MMU is not yet configured > and disabled. DDR may not be configured with the correct memory > attributes (can be configured in MT_DEVICE instead of MT_MEMORY). > > In this case, usage of memcpy_{from, to}io() may leads to synchronous > abort in AARCH64 in case the normal memory address is not 64Bits aligned. > > To avoid such situation, forbid usage of normal memory cast to (u64 *) in > case MMU is not enabled. > > Signed-off-by: Patrice Chotard <patrice.chot...@foss.st.com> > Reviewed-by: Patrick Delaunay <patrick.delau...@foss.st.com> > Cc: mark.kette...@xs4all.nl > Signed-off-by: Patrick Delaunay <patrick.delau...@foss.st.com>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: PGP signature