From: Wolfgang Denk Date: Mon, 12 Dec 2011 08:18:03 +0100 Subject: [U-Boot] [PATCH] powerpc/bootm: Flush ramdisk and device tree image when booting on MP In-Reply-To: <1323268978-26973-1-git-send-email-galak@kernel.crashing.org> References: <1323268978-26973-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20111212071803.2DEE7183AA35@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1323268978-26973-1-git-send-email-galak@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 > --- > 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.