RFC serial,dma: use DMA cyclic for IMX UART driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dma: imx-sdma - reduce transfer latency for DMA cyclic clientsdrivers/ | +16 | 4 replies | |
| 1/4 | dmaengine: imx-sdma - reduce transfer latency for DMA cyclic clientsdrivers/ | +16 | 0 replies | |
| 2/4 | dma: imx-sdma - update the residue calculation for cyclic channelsdrivers/ | +18 | 0 replies | |
| 2/4 | dmaengine: imx-sdma - update the residue calculation for cyclic channelsdrivers/ | +18 | 0 replies | |
| 3/4 | serial: imx-serial - update UART IMX driver to use cyclic DMAdrivers/ | +78 | 0 replies | |
| 3/4 | serial: imx-serial - update UART IMX driver to use cyclic DMAdrivers/ | +78 | 0 replies | |
| 4/4 | serial: imx-serial - update RX error counters when DMA is useddrivers/ | +32 | 0 replies | |
| 4/4 | serial: imx-serial - update RX error counters when DMA is useddrivers/ | +32 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Peter Senna Tschudin | Vinod Koul |
|---|---|---|
| 1/4 | T-b A-b T-b A-b | R-b |
| 1/4 | T-b A-b T-b A-b | R-b |
| 2/4 | T-b A-b | R-b |
| 2/4 | T-b A-b | R-b |
| 3/4 | T-b A-b | |
| 3/4 | T-b A-b | |
| 4/4 | T-b A-b | |
| 4/4 | T-b A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 0/4] serial,dma: use DMA cyclic for IMX UART driver
Update the IMX UART driver to use cyclic DMA in order to avoid losing serial data because of DMA start latency.
Support variable data length transfers for cyclic channels in IMX SDMA(Smart DMA) driver and, as specified in "Documentation/dmaengine/provider.txt" section "General Design Notes", run the SDMA channel callback directly from the SDMA interrupt context.
Every commit message will explain the changes.
Impacted devices:
IMX6i,IMX53 CPU:
- clients of the IMX UART that have DMA enabled.
- cyclic SDMA clients
(Note:Not able to find others than IMX UART driver)
Functionality tested by connecting the m53evk to my laptop using a USB-serial converter and start sending, from my laptop 800 bytes long packets at 8ms interval.
On the m53evk with interrupt load, generated by connecting/disconnecting at 3s interval a USB HUB having some devices connected (~4), I receive serial data in a loop and check that no overruns are created using command:
watch -n1 cat /proc/tty/driver/IMX-uart
Also done tests were I check how the data is received when sending packets bigger than a buffer descriptor size (1024). In my tests I have sent 4 packets (1028, 2048, 2048, 2048) and check that 7172 bytes were received using the command:
watch -n1 cat /proc/tty/driver/IMX-uart
Result:
serinfo:1.0 driver revision:
2: uart:IMX mmio:0x5000C000 irq:49 tx:0 rx:7172 RTS|CTS|DTR|DSR|CD
Nandor Han (4):
dma: imx-sdma - reduce transfer latency for DMA cyclic clients
dma: imx-sdma - update the residue calculation for cyclic channels
serial: imx-serial - update UART IMX driver to use cyclic DMA
serial: imx-serial - update RX error counters when DMA is used
drivers/dma/imx-sdma.c | 56 +++++++++------ drivers/tty/serial/imx.c | 173 ++++++++++++++++++++++++++++++----------------- 2 files changed, 144 insertions(+), 85 deletions(-)
Signature · 1 line
2.8.3