[PATCH] ARM: fix highmem with VIPT cache and DMA
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri May 28 18:19:32 EDT 2010
On Fri, May 28, 2010 at 04:49:40PM -0400, Nicolas Pitre wrote:
> One possible suspect might be the optimization in kmap_high_l1_vipt()
> which I couldn't test on SMP as I have no access to such beast. Hence
> this patch might be worth testing as well:
Well, it's turned out that it's probably not your patch, but mmci.c at
fault. It's kmapping the scatterlist entry, but the scatterlist entry
buffer length if 16K.
Somehow this doesn't cause us to oops when we run off the end of the
kmap_atomic'd buffer, even with highmem debugging on.
Maybe we need a fence between each KM_* like other arches do (see
asm-generic/kmap_types.h). This probably needs the kmap_high_get()
check in kmap_atomic() to be avoided on non-aliasing VIPT to reliably
make such overruns trigger an oops.
More information about the linux-arm-kernel
mailing list