pci_unmap_single() and CONFIG_NOT_COHERENT_CACHE

2 messages, 2 authors, 2003-05-09 · open the first message on its own page

pci_unmap_single() and CONFIG_NOT_COHERENT_CACHE

From: Curtis, Allen <hidden>
Date: 2003-05-09 18:07:44

I noticed in pci.h that pci_unmap_single() is a null function. (essentially
does nothing) Shouldn't is call consistent_sync() so that
flush_dcache_range() is called?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: pci_unmap_single() and CONFIG_NOT_COHERENT_CACHE

From: Roland Dreier <hidden>
Date: 2003-05-09 18:28:12

    Allen> I noticed in pci.h that pci_unmap_single() is a null
    Allen> function. (essentially does nothing) Shouldn't is call
    Allen> consistent_sync() so that flush_dcache_range() is called?

No, the cache invalidate or flush has to happen when pci_map_single()
is used.  There's nothing to do after the DMA is done (which is when
pci_unmap_single() gets called).

 - Roland

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help