linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: "'Ramirez Luna, Omar'" <omar.ramirez@ti.com>,
	'KyongHo Cho' <pullip.cho@samsung.com>
Cc: 'Joerg Roedel' <joro@8bytes.org>,
	linux-arm-kernel@lists.infradead.org,
	linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org,
	'Kyungmin Park' <kyungmin.park@samsung.com>,
	'Russell King - ARM Linux' <linux@arm.linux.org.uk>,
	'Arnd Bergmann' <arnd@arndb.de>,
	'Ohad Ben-Cohen' <ohad@wizery.com>,
	'Marek Szyprowski' <m.szyprowski@samsung.com>
Subject: RE: [RFC] ARM: dma_map|unmap_sg plus iommu
Date: Tue, 09 Aug 2011 09:04:26 +0200	[thread overview]
Message-ID: <01eb01cc5662$93287e30$b9797a90$%szyprowski@samsung.com> (raw)
In-Reply-To: <CAB-zwWj-VCWQ6h8wjv7owG7n7p59Ep4qXiQY3LruT64sikuSKg@mail.gmail.com>

Hello,

On Monday, August 08, 2011 5:22 PM Ramirez Luna, Omar wrote:

> On Sun, Jul 31, 2011 at 7:57 PM, KyongHo Cho <pullip.cho@samsung.com> wrote:
> > On Fri, Jul 29, 2011 at 11:24 PM, Marek Szyprowski
> ...
> >> 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
> >> 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.

> > 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>

  parent reply	other threads:[~2011-08-09  7:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28 21:09 Ramirez Luna, Omar
2011-07-29  7:50 ` Marek Szyprowski
2011-07-29  9:35   ` 'Joerg Roedel'
2011-07-29 10:14     ` Marek Szyprowski
2011-07-29 10:54       ` 'Joerg Roedel'
2011-07-29 14:24         ` Marek Szyprowski
2011-08-01  0:57           ` KyongHo Cho
2011-08-08 15:21             ` Ramirez Luna, Omar
2011-08-08 15:29               ` Russell King - ARM Linux
2011-08-09  7:04               ` Marek Szyprowski [this message]
2011-08-08 15:04   ` Ramirez Luna, Omar
2011-08-09  6:51     ` Marek Szyprowski
2011-08-13 14:39       ` Ramirez Luna, Omar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01eb01cc5662$93287e30$b9797a90$%szyprowski@samsung.com' \
    --to=m.szyprowski@samsung.com \
    --cc=arnd@arndb.de \
    --cc=joro@8bytes.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linaro-mm-sig@lists.linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@arm.linux.org.uk \
    --cc=ohad@wizery.com \
    --cc=omar.ramirez@ti.com \
    --cc=pullip.cho@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox