Re: adjust prefetch in free_one_pgd()

David Woodhouse (dwmw2@infradead.org)
Sat, 03 Aug 2002 23:03:49 +0100


torvalds@transmeta.com said:
> I don't think that non-cache-coherency wrt DMA necessarily means that
> that is true, though. If you flush all CPU caches to memory before
> starting the DMA, and you invalidate the DMA'd memory range _after_
> the DMA finished, a "prefetch" on such an architecture is not a
> problem at all.

OK -- assuming you actually do flush before the DMA and invalidate
afterwards, that works. That's what I was missing; thanks :)

That's for a prefetch operation which doesn't mark the cache line
dirty/owned. If you have random addresses used with 'write prefetch'
operations, that's still going to be a problem.

--
dwmw2

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/