public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Possible discrepancy regarding streaming DMA mappings in DMA-mapping.txt?
@ 2002-05-23 23:24 William Jhun
  2002-05-24  5:59 ` David S. Miller
  0 siblings, 1 reply; 12+ messages in thread
From: William Jhun @ 2002-05-23 23:24 UTC (permalink / raw)
  To: linux-kernel

In the explanation of streaming DMA mappings and holding onto a mapping
for multiple DMA operations, the file Documentation/DMA-mapping.txt
(line 507) says the following:

	If you need to use the same streaming DMA region multiple times
	and touch the data in between the DMA transfers, just map it
	with pci_map_{single,sg}, and after each DMA transfer call
	either:

		pci_dma_sync_single(dev, dma_handle, size, direction);

	or:

		pci_dma_sync_sg(dev, sglist, nents, direction);

	as appropriate.

However, shouldn't pci_dma_sync_*() be called *before* each
PCI_DMA_TODEVICE DMA transfer (after the CPU write, of course) and
*after* each PCI_DMA_FROMDEVICE DMA transfer (before CPU access)? And,
of course, before and after a "bidirectional" DMA, if appropriate.

Thanks,
William

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-05-26  7:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-23 23:24 Possible discrepancy regarding streaming DMA mappings in DMA-mapping.txt? William Jhun
2002-05-24  5:59 ` David S. Miller
2002-05-24 17:43   ` William Jhun
2002-05-24 17:42     ` David S. Miller
2002-05-24 20:37       ` William Jhun
2002-05-24 20:26         ` David S. Miller
2002-05-24 20:58           ` William Jhun
2002-05-24 20:53             ` David S. Miller
2002-05-24 21:18               ` William Jhun
2002-05-25  3:41       ` [PATCH] Functions to complement pci_dma_sync_{single,sg}(). (was: Re: Possible discrepancy regarding streaming DMA mappings in DMA-mapping.txt?) William Jhun
2002-05-25 23:04         ` [PATCH] Functions to complement pci_dma_sync_{single,sg}() David S. Miller
2002-05-26  7:09           ` [PATCH] DMA-mapping.txt (was Re: [PATCH] Functions to complement pci_dma_sync_{single,sg}().) William Jhun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox