From: dan.j.williams@intel.com (Dan Williams)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 00/11] ARM: PrimeCell DMA Interface v5
Date: Sat, 1 May 2010 16:28:59 -0700 [thread overview]
Message-ID: <z2ye9c3a7c21005011628r7c0c2b5bq36126db83d3ea5e3@mail.gmail.com> (raw)
In-Reply-To: <x2u63386a3d1005011604kaee33364l880e90a4e2453e0f@mail.gmail.com>
On Sat, May 1, 2010 at 4:04 PM, Linus Walleij
<linus.ml.walleij@gmail.com> wrote:
> 2010/5/2 Russell King - ARM Linux <linux@arm.linux.org.uk>:
>
>> Versatile has some MUXing on three of the DMA signals, so (eg) we
>> really don't want UARTs claiming DMAs just because they're in existence
>> and not in use - that would prevent DMAs from being used for (eg) AACI
>> or MMC.
>
> As long as Versatile doesn't specify any filter function or
> data for the channel allocation function (it currently doesn't and defaults
> to NULL) it won't even try to call the DMA engine to allocate a channel
> for say the UART.
>
> There is nothing blocking some other peripheral from grabbing a
> muxed channel in that case.
>
> But the implementation of the DMA engine would be better of
> handling the muxing dynamically I believe, so when the PL011
> driver (say) requests a DMA channel, it doesn't mean it requests the
> *physical* channel and holds it (unless the driver is very na?vely
> implemented) it nominally means it reserves a placeholder in the
> DMA engine.
>
> When the driver issues a request to perform a DMA transfer, it will pull
> out a physical channel and use that, then return it. If there is too
> much combat about the physical channels, you configure out DMA
> for the least wanted PrimeCells.
>
Could you simulate this by publishing more struct dma_chans than are
physically present, and then handle the muxing internal to the driver?
Or am I misunderstanding the usage model?
next prev parent reply other threads:[~2010-05-01 23:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-07 23:12 [PATCH 00/11] ARM: PrimeCell DMA Interface v5 Linus Walleij
2010-04-07 23:45 ` Dan Williams
2010-04-08 6:35 ` Linus WALLEIJ
2010-04-11 14:13 ` Linus Walleij
2010-04-12 19:23 ` Russell King - ARM Linux
2010-04-15 1:15 ` Dan Williams
2010-04-17 4:58 ` Linus Walleij
[not found] ` <20100422110025.GC20008@n2100.arm.linux.org.uk>
2010-04-30 18:30 ` Linus Walleij
2010-05-01 22:00 ` Dan Williams
2010-05-01 22:27 ` Linus Walleij
2010-05-01 22:44 ` Russell King - ARM Linux
2010-05-01 23:04 ` Linus Walleij
2010-05-01 23:28 ` Russell King - ARM Linux
2010-05-02 0:21 ` Linus Walleij
2010-05-02 8:18 ` Russell King - ARM Linux
2010-05-04 13:05 ` Linus WALLEIJ
2010-05-01 23:28 ` Dan Williams [this message]
2010-05-01 23:48 ` Linus Walleij
2010-05-01 23:25 ` Dan Williams
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=z2ye9c3a7c21005011628r7c0c2b5bq36126db83d3ea5e3@mail.gmail.com \
--to=dan.j.williams@intel.com \
--cc=linux-arm-kernel@lists.infradead.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 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).