Re: omap-serial RX DMA polling?

2012-02-04 Thread Paul Walmsley
On Tue, 24 Jan 2012, Paul Walmsley wrote: We (meaning the people working on OMAP) also need to figure out here what the OMAP UART RX timeout would theoretically be, since it doesn't appear to be documented. Correction. The UART RX timeout is documented in section 17.4.4.1.3.7.1 Time-out

Re: omap-serial RX DMA polling?

2012-01-24 Thread Russell King - ARM Linux
On Tue, Jan 24, 2012 at 12:58:57AM -0700, Paul Walmsley wrote: On Tue, 24 Jan 2012, Govindraj wrote: On Tue, Jan 24, 2012 at 1:18 AM, Paul Walmsley p...@pwsan.com wrote: On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley p...@pwsan.com wrote: The

Re: omap-serial RX DMA polling?

2012-01-24 Thread Paul Walmsley
On Tue, 24 Jan 2012, Russell King - ARM Linux wrote: On Tue, Jan 24, 2012 at 12:58:57AM -0700, Paul Walmsley wrote: In a correctly-working RX PIO path, the driver is going to receive an interrupt the moment the data is ready to be transferred from the FIFO. That's hellishly

Re: omap-serial RX DMA polling?

2012-01-23 Thread Govindraj
On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley p...@pwsan.com wrote: Hello Govindraj while trying to track down some of the serial-related PM issues in v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 microsecond polling timer when DMA is enabled (uart_dma.rx_timer) (!)  This seems

Re: omap-serial RX DMA polling?

2012-01-23 Thread Paul Walmsley
On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley p...@pwsan.com wrote: while trying to track down some of the serial-related PM issues in v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 microsecond polling timer when DMA is enabled

Re: omap-serial RX DMA polling?

2012-01-23 Thread Govindraj
On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley p...@pwsan.com wrote: On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley p...@pwsan.com wrote: while trying to track down some of the serial-related PM issues in v3.3-rc1, I noticed that the omap-serial.c

Re: omap-serial RX DMA polling?

2012-01-23 Thread Paul Walmsley
On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley p...@pwsan.com wrote: On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley p...@pwsan.com wrote: while trying to track down some of the serial-related PM issues in

Re: omap-serial RX DMA polling?

2012-01-23 Thread Govindraj
On Tue, Jan 24, 2012 at 1:18 AM, Paul Walmsley p...@pwsan.com wrote: On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley p...@pwsan.com wrote: On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 6:03 AM, Paul Walmsley p...@pwsan.com wrote:

Re: omap-serial RX DMA polling?

2012-01-23 Thread Paul Walmsley
On Tue, 24 Jan 2012, Govindraj wrote: On Tue, Jan 24, 2012 at 1:18 AM, Paul Walmsley p...@pwsan.com wrote: On Mon, 23 Jan 2012, Govindraj wrote: On Mon, Jan 23, 2012 at 4:17 PM, Paul Walmsley p...@pwsan.com wrote: The point is that if you want tty_insert_flip_string() to be called after

omap-serial RX DMA polling?

2012-01-22 Thread Paul Walmsley
Hello Govindraj while trying to track down some of the serial-related PM issues in v3.3-rc1, I noticed that the omap-serial.c driver sets a 1 microsecond polling timer when DMA is enabled (uart_dma.rx_timer) (!) This seems quite broken from both the DMA and PM points of view. From a DMA