lkml.org 
[lkml]   [2011]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PROBLEM: ARM-dma-mapping-fix-for-speculative-prefetching cause OOPS
On Fri, Jul 01, 2011 at 12:54:09PM +0800, Qin Dehua wrote:
> The followings are messages of the three tests:
> ====== RUN 1 ======
> kernel BUG at drivers/md/raid5.c:3978!

So they are BUG_ON()s after all...

Could you try commenting out:

+ if (dir != DMA_TO_DEVICE)
+ outer_inv_range(paddr, paddr + size);
in ___dma_page_dev_to_cpu and:

+ if (dir != DMA_TO_DEVICE) {
+ unsigned long paddr = __pa(kaddr);
+ outer_inv_range(paddr, paddr + size);
+ }
in ___dma_single_dev_to_cpu please - and put a BUG_ON(dir == DMA_BIDIRECTIONAL)
in their place (because that won't be handled correctly with that change.)

Thanks.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:


\
 
 \ /
  Last update: 2011-07-07 11:43    [from the cache]
©2003-2011 Jasper Spaans