The patch titled bounce: call flush_dcache_page() after bounce_copy_vec() has been added to the -mm tree. Its filename is bounce-call-flush_dcache_page-after-bounce_copy_vec.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: bounce: call flush_dcache_page() after bounce_copy_vec() From: Gary King <gking@xxxxxxxxxx> I have been seeing problems on Tegra 2 (ARMv7 SMP) systems with HIGHMEM enabled on 2.6.35 (plus some patches targetted at 2.6.36 to perform cache maintenance lazily), and the root cause appears to be that the mm bouncing code is calling flush_dcache_page before it copies the bounce buffer into the bio. The bounced page needs to be flushed after data is copied into it, to ensure that architecture implementations can synchronize instruction and data caches if necessary. Signed-off-by: Gary King <gking@xxxxxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Cc: Russell King <rmk@xxxxxxxxxxxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/bounce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/bounce.c~bounce-call-flush_dcache_page-after-bounce_copy_vec mm/bounce.c --- a/mm/bounce.c~bounce-call-flush_dcache_page-after-bounce_copy_vec +++ a/mm/bounce.c @@ -116,8 +116,8 @@ static void copy_to_high_bio_irq(struct */ vfrom = page_address(fromvec->bv_page) + tovec->bv_offset; - flush_dcache_page(tovec->bv_page); bounce_copy_vec(tovec, vfrom); + flush_dcache_page(tovec->bv_page); } } _ Patches currently in -mm which might be from gking@xxxxxxxxxx are linux-next.patch bounce-call-flush_dcache_page-after-bounce_copy_vec.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html