lkml.org 
[lkml]   [2003]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.046 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site