From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [Q] PL011 DMA Rx, using ste_dma40
Date: Wed, 27 Nov 2013 20:30:42 +0000 [thread overview]
Message-ID: <20131127203042.GS16735@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.64.1311271646070.8821@axis700.grange>
On Wed, Nov 27, 2013 at 05:38:43PM +0100, Guennadi Liakhovetski wrote:
> I'm trying to get a PL011 UART to work in DMA mode with an alternative
> DMAC. Transmission works, reception is more problematic. I can receive a
> complete page of data (4096 bytes), but nothing below that triggers a
> reception. Is this expected if no polling is used, as configured by the
> dma_rx_poll_timeout platform parameter, or should it work, triggered by
> the Rx timeout UART interrupt?
Yes, there's a very basic hardware design error here.
The PL011 does, as you've noticed, have a Rx timeout interrupt. This
timeout interrupt only fires if you leave data in the Rx FIFO.
This means that when you use DMA, for the hardware to operate correctly,
you must _not_ have the DMA engine fully empty the Rx FIFO, otherwise
interactive use is impossible.
I wrote about this when I looked at DMA on the ARM Realview boards.
I came to the conclusion that was just better to completely ignore the
hardware DMA side of PL011 and just use PIO.
next prev parent reply other threads:[~2013-11-27 20:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 16:38 [Q] PL011 DMA Rx, using ste_dma40 Guennadi Liakhovetski
2013-11-27 20:30 ` Russell King - ARM Linux [this message]
2013-11-27 20:45 ` Guennadi Liakhovetski
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=20131127203042.GS16735@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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