Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling.

2013-03-29 Thread Greg Kroah-Hartman
On Wed, Mar 27, 2013 at 06:38:11PM +0900, Chanho Min wrote: > In DMA support, The received data is not pushed to tty until the DMA buffer > is filled. But some megabyte rate chips such as BT expect fast response and > data should be pushed immediately. In order to fix this issue, We suggest > the u

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-14 Thread Chanho Min
>Looking back at the patch, do you know if we can get rid of >some of the #ifdefs and have this like a runtime switch set in >struct amba_pl011_data or Device Tree? Yes, I know. I'll come back with v2 soon. Thanks, Chanho -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-13 Thread Linus Walleij
On Mon, Jan 14, 2013 at 8:27 AM, Chanho Min wrote: > We just want to use this HW function even if SW support is needed. > Anyway, It was very useful for megabyte rate chips. So RX DMA will not be enabled for things like console, but accelerators etc. OK that's perfectly valid. Looking back at t

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-13 Thread Chanho Min
On Mon, Jan 14, 2013 at 3:46 PM, Linus Walleij wrote: > On Mon, Jan 14, 2013 at 1:26 AM, Russell King - ARM Linux >> What you describe above is exactly the problem I see on the Versatile >> platform with it's PL080 and PL011. I made the comment that this setup >> can't work properly as it stands.

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-13 Thread Linus Walleij
On Mon, Jan 14, 2013 at 1:26 AM, Russell King - ARM Linux wrote: > [Me] >> But it may very well be that the single request can not be >> enabled for the PL011 for it to work properly. > > What you describe above is exactly the problem I see on the Versatile > platform with it's PL080 and PL011. I

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-13 Thread Russell King - ARM Linux
On Mon, Jan 14, 2013 at 01:04:58AM +0100, Linus Walleij wrote: > At some point we reasoned that we may actually be saved > by the reverse phenomena - if single request is *NOT* > connected, there will very often be some characters in the > FIFO, and that's enough to trigger the RTIM IRQ, and we get

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-13 Thread Linus Walleij
On Sat, Jan 12, 2013 at 7:50 AM, Chanho Min wrote: > We tested as follows: > We set baud rate to 3Mbps and transfer 5000 bytes via /dev/tty at > a time. Then 4096 bytes is received by DMA irq. But, There is no way > to get remaining 904 bytes, unless another 3192 bytes are coming, OK clearly cut

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-11 Thread Linus Walleij
On Fri, Jan 11, 2013 at 7:13 AM, Chanho Min wrote: > In DMA support, Received data is not triggered until the DMA buffer is filled. Interesting! As you can see in commits: commit ead76f329f777c7301e0a5456a0a1c7a081570bd "ARM: 6763/1: pl011: add optional RX DMA to PL011 v2" commit 5d7b8467e18b1

Re: [PATCH] ARM: PL011: Add support for Rx DMA buffer polling

2013-01-11 Thread Russell King - ARM Linux
On Fri, Jan 11, 2013 at 03:13:31PM +0900, Chanho Min wrote: > In DMA support, Received data is not triggered until the DMA buffer is filled. > In order to actually use Rx DMA, We would like to suggest the use of the timer > for polling DMA buffer. It makes possible character-level trigger. > In our