[U-Boot] [PATCH] ext4: cache-align buffers so the invalidation works

Tom Rini trini at ti.com
Thu Sep 20 20:43:07 CEST 2012


On Tue, Sep 18, 2012 at 12:05:28PM -0600, Stephen Warren wrote:

> From: Stephen Warren <swarren at nvidia.com>
> 
> DMA buffer cache invalidation requires that buffers have cache-aligned
> buffer locations and sizes. Use memalign() and ALLOC_CACHE_ALIGN_BUFFER()
> to ensure this.
> 
> On Tegra at least, without this fix, the following fail commands fail in
> u-boot-master/ext4, but succeeded at the branch's branch point in
> u-boot/master. With this fix, the commands work again:
> 
> ext2ls mmc 0:1 /
> ext2load mmc 0:1 /boot/zImage
> 
> Cc: Uma Shankar <uma.shankar at samsung.com>
> Cc: Manjunatha C Achar <a.manjunatha at samsung.com>
> Cc: Iqbal Shareef <iqbal.ams at samsung.com>
> Cc: Hakgoo Lee <goodguy.lee at samsung.com>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Tom Rini <trini at ti.com>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120920/bee22072/attachment.pgp>


More information about the U-Boot mailing list