Re: [PATCH 1/5] ARM: add PrimeCell generic DMA to PL022 v9

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell King - ARM Linux
Date: Tuesday, August 17, 2010 - 1:56 am

On Mon, Aug 16, 2010 at 10:48:34PM -0600, Grant Likely wrote:

This is wrong.  Mapping a scatterlist already makes it available for
the device to use.  There's no point re-doing that work by using
the sync API.

Let's go over the DMA API one more time.

	CPU owns buffer, device must not access

dma_map_xx		buffer ownership transitions from CPU to device

	device owns buffer, CPU must not access

dma_sync_xx_for_cpu	buffer ownership transitions from device to CPU

	CPU owns buffer, device must not access

dma_sync_xx_for_device	buffer ownership transitions from CPU to device

	device owns buffer, CPU must not access

dma_unmap_xx		buffer ownership transitions from device to CPU

	CPU owns buffer, device must not access
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/5] ARM: add PrimeCell generic DMA to PL022 v9, Linus Walleij, (Fri Aug 6, 4:50 am)
Re: [PATCH 1/5] ARM: add PrimeCell generic DMA to PL022 v9, Russell King - ARM Linux, (Tue Aug 17, 1:56 am)