linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: ian <spyro@f2s.com>
Cc: linux-arch@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com,
	hpa@zytor.com, linux-scsi@vger.kernel.org, jejb@steeleye.com,
	kernel-discuss@handhelds.org
Subject: Re: DMA API Re: Remove dma_coherent_mem interface
Date: Wed, 31 Oct 2007 15:34:47 -0600	[thread overview]
Message-ID: <20071031213447.GF15111@parisc-linux.org> (raw)
In-Reply-To: <1193864605.25899.253.camel@wirenth>

On Wed, Oct 31, 2007 at 09:03:24PM +0000, ian wrote:
> There was a recent patch to remove the coherent memory interface from
> the DMA API.
> 
> I'd like to ask that this not happen - there are several users of this
> code in the handhelds.org tree, which we hope will merge into mainline.
> this code is _essential_ to allow support of these devices.
> 
> Removing this from mainline will only increase the hh.org delta which we
> are working hard to reduce, and there is no other realistic way to
> support these devices.

It's been three years since this API was introduced, and the only
*merged* user is the one that James wrote.  Now it's in the way of some
performance improvements I want to make.  I can't possibly go round every
little platform tree looking for users -- you need to get your drivers
into mainline.  Yes, it's not necessarily a quick process, but equally,
you've had three years.

Now, what driver is it that's going to consume this coherent memory?
Does it use the dma_pool interface, or does it use dma_alloc_coherent
directly?  If the latter, I can retain the dma_declare_coherent_memory
interface.  If the former, then we have to come to a decision between
supporting some drivers that are so unimportant that they haven't been
merged in three years and making a performance win for drivers that are
used every day.

Admittedly, I haven't finished the work to make dma_pool use slub, thus
I don't know what the performance win will turn out to be.  It may not
be significant, so it would be an easy decision to keep the interface.
But if the decision is going to be to keep the interface despite the
lack of users and no matter what the performance win, then I don't need
to finish this work.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

  reply	other threads:[~2007-10-31 21:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 21:03 DMA API Re: Remove dma_coherent_mem interface ian
2007-10-31 21:34 ` Matthew Wilcox [this message]
2007-11-01  9:48   ` ian
2007-11-01 10:07     ` Paul Mundt
2007-11-01 15:33       ` ian
2007-11-01 15:52         ` Bernhard Walle
2008-02-20 17:14 ` Matthew Wilcox
2008-02-20 17:49   ` Andi Kleen
2008-02-20 18:43     ` ian
2008-02-20 19:10       ` Andi Kleen
2008-02-20 21:26         ` ian
2008-02-20 22:55           ` Russell King
2008-02-20 23:05             ` James Bottomley
2008-02-21 16:32   ` Paul Mundt

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=20071031213447.GF15111@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=hpa@zytor.com \
    --cc=jejb@steeleye.com \
    --cc=kernel-discuss@handhelds.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=spyro@f2s.com \
    --cc=tglx@linutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).