All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brown <davidb-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	Vinod Koul <vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	device-tree
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
	Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
	Dan Williams <djbw-b10kYP2dOMg@public.gmane.org>,
	Russell King - ARM Linux
	<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
	linux-omap <linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH V6 1/2] of: Add generic device tree DMA helpers
Date: Mon, 17 Sep 2012 16:06:15 -0700	[thread overview]
Message-ID: <20120917230615.GA26502@codeaurora.org> (raw)
In-Reply-To: <201209172042.11860.arnd-r2nGTMty4D4@public.gmane.org>

On Mon, Sep 17, 2012 at 08:42:11PM +0000, Arnd Bergmann wrote:
> On Saturday 15 September 2012, Russell King - ARM Linux wrote:
> > 
> > On Fri, Sep 14, 2012 at 05:41:56PM -0500, Jon Hunter wrote:
> > > 3. Supporting legacy devices not using DMA Engine
> > > 
> > >    These devices present a problem, as there may not be a uniform way to easily
> > >    support them with regard to device tree. Ideally, these should be migrated
> > >    to DMA engine. However, if this is not possible, then they should still be
> > >    able to use this binding, the only constaint imposed by this implementation
> > >    is that when requesting a DMA channel via of_dma_request_slave_channel(), it
> > >    will return a type of dma_chan.
> > 
> > As far as devices not using DMA engine, the answer is we don't support
> > their specification in the DT model.  Note that the legacy OMAP DMA
> > API is scheduled for removal next year, so it's not going to be around
> > that much longer.
> 
> There are a few platforms using the ISA DMA API (rpc, h720x, shark, footbridge),
> and I agree that they are unlikely to see OF support, although if they did, it
> wouldn't be unreasonable to encode their DMA channels using the same binding.
> 
> The other ones that are currently around with their own DMA implementation are
> 
> bcmring --> platform is going away
> samsung --> gradually getting moved to dmaengine, already has its own binding
>             that needs to be replaced with this one, so best do it at the same
>             time.
> tegra   --> old dma code gone in 3.7
> pxa/mmp --> dmaengine implementation being worked on, should wait for that.
> msm     --> dma implementation only used by two drivers (serial and mmc). 
> 
> Outside of arch/arm, at least sh, cris, unicore32 and blackfin have their
> own dma APIs based on the ISA interfaces. I don't currently see any of them
> moving towards DT, but it's definitely possible. 
> 
> Among the above MSM seems to be the most likely candidate to use the binding
> before moving to DT. The msm_sdcc driver is (like much of the msm platform
> code) lagging far behind the internel version that qualcomm have, and the
> device tree binding they are using is incompatible with the common MMC
> binding (and of course the DMA binding here) as well. For getting MSM up
> to speed compared with the other platforms, they have to use proper DT
> bindings as well as proper DMA engine support. Between those two, I'd prefer
> fixing the DT binding first, in order to limit the amount of changes that
> have to be done to external device tree files.

There is also a lot of similarity between the mmci hardware and the
msm_sdcc hardware.  Enough so, that it is probably better for us to
make the mmci driver work with our hardware, rather than trying to
keep msm_sdcc going.

There is also an MSM nand device that appears to have not made it in.
It is heavily dependent on the weird features of the DMA hardware.  I
don't have any current plans to support this device, since most boards
using MSMs these days are using mmc/sd instead of bare NAND.

Our DMA hardware is really weird, but should be a bit reasonable.  It
is also being gradually replaced in newer chips with a different DMA
framework.

As far as I'm concerned, I consider making our DMA driver(s) use the
DMA engine API to be part of getting these platforms working with DT.

It is planned, but there are quite a few things that need to be
tackled first.

David

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

WARNING: multiple messages have this Message-ID (diff)
From: davidb@codeaurora.org (David Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V6 1/2] of: Add generic device tree DMA helpers
Date: Mon, 17 Sep 2012 16:06:15 -0700	[thread overview]
Message-ID: <20120917230615.GA26502@codeaurora.org> (raw)
In-Reply-To: <201209172042.11860.arnd@arndb.de>

On Mon, Sep 17, 2012 at 08:42:11PM +0000, Arnd Bergmann wrote:
> On Saturday 15 September 2012, Russell King - ARM Linux wrote:
> > 
> > On Fri, Sep 14, 2012 at 05:41:56PM -0500, Jon Hunter wrote:
> > > 3. Supporting legacy devices not using DMA Engine
> > > 
> > >    These devices present a problem, as there may not be a uniform way to easily
> > >    support them with regard to device tree. Ideally, these should be migrated
> > >    to DMA engine. However, if this is not possible, then they should still be
> > >    able to use this binding, the only constaint imposed by this implementation
> > >    is that when requesting a DMA channel via of_dma_request_slave_channel(), it
> > >    will return a type of dma_chan.
> > 
> > As far as devices not using DMA engine, the answer is we don't support
> > their specification in the DT model.  Note that the legacy OMAP DMA
> > API is scheduled for removal next year, so it's not going to be around
> > that much longer.
> 
> There are a few platforms using the ISA DMA API (rpc, h720x, shark, footbridge),
> and I agree that they are unlikely to see OF support, although if they did, it
> wouldn't be unreasonable to encode their DMA channels using the same binding.
> 
> The other ones that are currently around with their own DMA implementation are
> 
> bcmring --> platform is going away
> samsung --> gradually getting moved to dmaengine, already has its own binding
>             that needs to be replaced with this one, so best do it at the same
>             time.
> tegra   --> old dma code gone in 3.7
> pxa/mmp --> dmaengine implementation being worked on, should wait for that.
> msm     --> dma implementation only used by two drivers (serial and mmc). 
> 
> Outside of arch/arm, at least sh, cris, unicore32 and blackfin have their
> own dma APIs based on the ISA interfaces. I don't currently see any of them
> moving towards DT, but it's definitely possible. 
> 
> Among the above MSM seems to be the most likely candidate to use the binding
> before moving to DT. The msm_sdcc driver is (like much of the msm platform
> code) lagging far behind the internel version that qualcomm have, and the
> device tree binding they are using is incompatible with the common MMC
> binding (and of course the DMA binding here) as well. For getting MSM up
> to speed compared with the other platforms, they have to use proper DT
> bindings as well as proper DMA engine support. Between those two, I'd prefer
> fixing the DT binding first, in order to limit the amount of changes that
> have to be done to external device tree files.

There is also a lot of similarity between the mmci hardware and the
msm_sdcc hardware.  Enough so, that it is probably better for us to
make the mmci driver work with our hardware, rather than trying to
keep msm_sdcc going.

There is also an MSM nand device that appears to have not made it in.
It is heavily dependent on the weird features of the DMA hardware.  I
don't have any current plans to support this device, since most boards
using MSMs these days are using mmc/sd instead of bare NAND.

Our DMA hardware is really weird, but should be a bit reasonable.  It
is also being gradually replaced in newer chips with a different DMA
framework.

As far as I'm concerned, I consider making our DMA driver(s) use the
DMA engine API to be part of getting these platforms working with DT.

It is planned, but there are quite a few things that need to be
tackled first.

David

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

  parent reply	other threads:[~2012-09-17 23:06 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 22:41 [PATCH V6 0/2] of: Add generic device tree DMA helpers Jon Hunter
2012-09-14 22:41 ` Jon Hunter
2012-09-14 22:41 ` [PATCH V6 1/2] " Jon Hunter
2012-09-14 22:41   ` Jon Hunter
2012-09-14 22:46   ` Stephen Warren
2012-09-14 22:46     ` Stephen Warren
2012-09-15  0:14   ` Russell King - ARM Linux
2012-09-15  0:14     ` Russell King - ARM Linux
     [not found]     ` <20120915001431.GB12445-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2012-09-17 20:42       ` Arnd Bergmann
2012-09-17 20:42         ` Arnd Bergmann
     [not found]         ` <201209172042.11860.arnd-r2nGTMty4D4@public.gmane.org>
2012-09-17 23:06           ` David Brown [this message]
2012-09-17 23:06             ` David Brown
     [not found]             ` <20120917230615.GA26502-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2012-09-18 12:50               ` Arnd Bergmann
2012-09-18 12:50                 ` Arnd Bergmann
2012-09-18 22:19         ` Mitch Bradley
2012-09-18 22:19           ` Mitch Bradley
     [not found]           ` <5058F35A.8040702-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-09-18 22:32             ` Russell King - ARM Linux
2012-09-18 22:32               ` Russell King - ARM Linux
2012-09-19 11:09           ` Arnd Bergmann
2012-09-19 11:09             ` Arnd Bergmann
     [not found]             ` <201209191109.16529.arnd-r2nGTMty4D4@public.gmane.org>
2012-09-19 14:40               ` Mitch Bradley
2012-09-19 14:40                 ` Mitch Bradley
2012-09-19 13:52   ` Matt Porter
2012-09-19 13:52     ` Matt Porter
2012-09-19 14:07   ` Matt Porter
2012-09-19 14:07     ` Matt Porter
2012-09-19 14:24     ` Arnd Bergmann
2012-09-19 14:24       ` Arnd Bergmann
2012-09-19 14:36       ` Rob Herring
2012-09-19 14:36         ` Rob Herring
2012-09-19 14:40         ` Matt Porter
2012-09-19 14:40           ` Matt Porter
2012-09-19 14:50           ` Arnd Bergmann
2012-09-19 14:50             ` Arnd Bergmann
2012-09-19 21:25       ` Mitch Bradley
2012-09-19 21:25         ` Mitch Bradley
2012-09-19 14:10   ` Rob Herring
2012-09-19 14:10     ` Rob Herring
     [not found] ` <1347662517-4210-1-git-send-email-jon-hunter-l0cyMroinI0@public.gmane.org>
2012-09-14 22:41   ` [PATCH V6 2/2] dmaengine: add helper function to request a slave DMA channel Jon Hunter
2012-09-14 22:41     ` Jon Hunter
2012-09-17  3:33     ` Vinod Koul
2012-09-17  3:33       ` Vinod Koul
2012-09-17 11:59       ` Arnd Bergmann
2012-09-17 11:59         ` Arnd Bergmann
2012-09-17 22:36         ` Russell King - ARM Linux
2012-09-17 22:36           ` Russell King - ARM Linux
2012-09-18  3:13           ` Vinod Koul
2012-09-18  3:13             ` Vinod Koul
2012-09-18 13:21             ` Matt Porter
2012-09-18 13:21               ` Matt Porter
2012-09-18 15:20               ` Arnd Bergmann
2012-09-18 15:20                 ` Arnd Bergmann
2012-09-18 18:10                 ` Russell King - ARM Linux
2012-09-18 18:10                   ` Russell King - ARM Linux
2012-09-24 22:25             ` Jon Hunter
2012-09-24 22:25               ` Jon Hunter
2012-09-25  4:35               ` Vinod Koul
2012-09-25  4:35                 ` Vinod Koul
2012-10-16  2:43                 ` Shawn Guo
2012-10-16  2:43                   ` Shawn Guo
2012-10-16  2:39                   ` Vinod Koul
2012-10-16  2:39                     ` Vinod Koul
2012-11-09 20:01                     ` Jon Hunter
2012-11-09 20:01                       ` Jon Hunter
2012-11-16  1:37                       ` Vinod Koul
2012-11-16  1:37                         ` Vinod Koul
2012-11-16  8:39                         ` Nicolas Ferre
2012-11-16  8:39                           ` Nicolas Ferre
2012-11-16 15:45                         ` Jon Hunter
2012-11-16 15:45                           ` Jon Hunter
2012-11-28 17:06                           ` Vinod Koul
2012-11-28 17:06                             ` Vinod Koul
2012-12-19 17:12                         ` Jon Hunter
2012-12-19 17:12                           ` Jon Hunter
2012-12-20 14:57                           ` Vinod Koul
2012-12-20 14:57                             ` Vinod Koul
2012-09-18  3:00         ` Vinod Koul
2012-09-18  3:00           ` Vinod Koul

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=20120917230615.GA26502@codeaurora.org \
    --to=davidb-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
    --cc=arnd-r2nGTMty4D4@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=djbw-b10kYP2dOMg@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.