From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 06 Sep 2012 14:20:51 +0200 Subject: [U-Boot] [PATCH] MX28: MMC: Avoid DMA DCache race condition In-Reply-To: <1346465890-5008-1-git-send-email-marex@denx.de> References: <1346465890-5008-1-git-send-email-marex@denx.de> Message-ID: <50489523.2040101@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 On 01/09/2012 04:18, Marek Vasut wrote: > This patch prevents dcache-related problem. The problem manifested > itself on the SPI driver, this is just a port to the MMC driver. > > The scenario is the same. In case an "mmc read" is issued to a > buffer which was written right before it and data cache is enabled, > the cache eviction might happen during the DMA transfer into the > buffer, therefore corrupting the buffer. Clear any cache lines that > might contain the buffer to prevent such issue. > > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Otavio Salvador > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================