[U-Boot] [PATCH] powerpc/bootm: Flush ramdisk and device tree image when booting on MP

Wolfgang Denk wd at denx.de
Mon Dec 12 08:18:03 CET 2011


Dear Kumar Gala,

In message <1323268978-26973-1-git-send-email-galak at kernel.crashing.org> you wrote:
> We already flush the kernel image after we've loaded it to ensure
> visiblity to the other cores.  We need to do the same thing for the
> ramdisk and device tree images.  In AMP boot scenarios we might not be
> HW cache coherent with the secondary core that we are loading and
> setting the ramdisk and device tree up for.  Thus we need to ensure
> we've flushed the regions of memory utilized by ramdisk and device tree
> so the loadding and any modifications (from decompression or fdt updates)
> are made visible to the secondary cores.
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
>  arch/powerpc/lib/bootm.c |   22 ++++++++++++++++------
>  common/image.c           |    8 ++++++++
>  2 files changed, 24 insertions(+), 6 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Good morning. This is the telephone company. Due  to  repairs,  we're
giving  you  advance notice that your service will be cut off indefi-
nitely at ten o'clock. That's two minutes from now.


More information about the U-Boot mailing list