Messages in this thread | | | Date | Wed, 22 Oct 2003 08:04:38 +0200 (CEST) | From | Martin Diehl <> | Subject | Re: [patch] pci_dma_sync_to_device |
| |
On Tue, 21 Oct 2003, Colin Ngam wrote:
> Are these dma sync routines for NON Cache Coherent systems or > are they performance features that allows the flushing of dirty > cache data out to Memory before a transfer?
Well, my understanding of the pci dma api it is designed to hide the details of the underlaying bus and related complications. The caller just uses the api and doesn't care whether the system is cache coherent or not. Individual archs have to provide implementation which deal with issues.
The patch includes the i386 implementation which is trivial because the pci bus view is coherent wrt. host due to cache snooping. The only thing left to do is we need to be careful with OOSTORE and PPro errata. This is done using flush_write_buffers() from include/asm-i386/io.h
Martin
- 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/
| |