]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/bootm: Flush ramdisk and device tree image when booting on MP
authorKumar Gala <galak@kernel.crashing.org>
Wed, 7 Dec 2011 04:42:58 +0000 (04:42 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 12 Dec 2011 07:17:52 +0000 (08:17 +0100)
commit3b2001105fe4d0326f7aa1f83534accfdaec6a01
tree070b0f5a1c50a063d4bcd2629891ae57ab92ee1b
parent02ab0970b3ae7b2d535a1231ad259e3114d09772
powerpc/bootm: Flush ramdisk and device tree image when booting on MP

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@kernel.crashing.org>
arch/powerpc/lib/bootm.c
common/image.c