1
0
Fork 0
remarkable-uboot/fs
Anton staaf 4c1cd721d8 ext2: Cache line aligned partial sector bounce buffer
Currently, if a device read request is done that does not begin or end
on a sector boundary a stack allocated bounce buffer is used to perform
the read, and then just the part of the sector that is needed is copied
into the users buffer.  This stack allocation can mean that the bounce
buffer will not be aligned to the dcache line size.  This is a problem
when caches are enabled because unaligned cache invalidates are not
safe.

This patch uses ALLOC_CACHE_ALIGN_BUFFER to create a stack allocated
cache line size aligned bounce buffer.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Dave Liu <r63238@freescale.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>

Change-Id: I32e1594d90ef039137bb219b0f7ced55768744ff
Acked-by: Mike Frysinger <vapier@gentoo.org>
2011-10-25 09:25:41 +02:00
..
cramfs cramfs: make cramfs usable without a NOR flash 2011-05-10 22:47:32 +02:00
ext2 ext2: Cache line aligned partial sector bounce buffer 2011-10-25 09:25:41 +02:00
fat fat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS 2011-10-01 21:52:19 +02:00
fdos Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
jffs2 fs/jffs2/jffs2_1pass.c: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
reiserfs Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
ubifs ubifs bad superblock bug 2011-10-12 11:33:17 +02:00
yaffs2 punt unused clean/distclean targets 2011-10-15 22:20:36 +02:00
Makefile UBIFS: Implement read-only UBIFS support in U-Boot 2009-03-20 22:39:15 +01:00