Thread (13 messages) 13 messages, 5 authors, 2011-08-13

RE: [RFC] ARM: dma_map|unmap_sg plus iommu

From: Marek Szyprowski <m.szyprowski@samsung.com>
Date: 2011-08-09 07:04:51
Also in: linux-arm-kernel

Hello,

On Monday, August 08, 2011 5:22 PM Ramirez Luna, Omar wrote:
On Sun, Jul 31, 2011 at 7:57 PM, KyongHo Cho [off-list ref] wrote:
quoted
On Fri, Jul 29, 2011 at 11:24 PM, Marek Szyprowski
...
quoted
quoted
Right now I have no idea how to handle this better. Perhaps with should be
possible
to specify somehow the target dma_address when doing memory allocation, but
I'm
quoted
quoted
not
really convinced yet if this is really required.
What about using 'dma_handle' argument of alloc_coherent callback of
dma_map_ops?
Although it is an output argument, I think we can convey a hint or
start address to map
to the IO memory manager that resides behind dma API.
I also thought on this one, even dma_map_single receives a void *ptr
which could be casted into a struct with both physical and virtual
addresses to be mapped, but IMHO, this starts to add twists into the
dma map parameters which might create confusion.
Nope, this is completely wrong approach. DMA-mapping is kernel wide, 
architecture independent API and you should not define any exceptions from it.
quoted
DMA API is so abstract that it cannot cover all requirements by
various device drivers;;
Agree.
From my perspective DMA API is quite well designed as cross-architecture API.
The
only problem is the lack of documentation how to use it correctly in the
embedded
world.

Best regards
-- 
Marek Szyprowski
Samsung Poland R&D Center

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help