Bug 198889 - imx6: DMA transaction errors on serial ports
Summary: imx6: DMA transaction errors on serial ports
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Serial (show other bugs)
Hardware: ARM Linux
: P1 normal
Assignee: Russell King
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-22 16:30 UTC by Koen Vandeputte
Modified: 2019-10-30 12:46 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.14.20
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Full Bootlog (25.62 KB, text/plain)
2018-02-22 16:30 UTC, Koen Vandeputte
Details

Description Koen Vandeputte 2018-02-22 16:30:05 UTC
Created attachment 274363 [details]
Full Bootlog

Using a Gateworks Ventana board, powered by an i.MX6 board,
following errors were notice upon boot:


[   22.617622] imx-uart 2020000.serial: DMA transaction error.
[   22.623228] imx-uart 2020000.serial: DMA transaction error.
[   22.628826] imx-uart 2020000.serial: DMA transaction error.
[   22.632611] A link change request failed with some changes committed already. Interface wlan0 may have been left with an inconsistent configuration, please check.
[   22.648951] imx-uart 2020000.serial: DMA transaction error.
[   22.654558] imx-uart 2020000.serial: DMA transaction error.
[   22.660156] imx-uart 2020000.serial: DMA transaction error.


within OpenWrt, we are circumventing the errors currently by disabling DMA on UART:


--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -1268,10 +1268,6 @@ static int imx_startup(struct uart_port
 
 	writel(temp & ~UCR4_DREN, sport->port.membase + UCR4);
 
-	/* Can we enable the DMA support? */
-	if (!uart_console(port) && !sport->dma_is_inited)
-		imx_uart_dma_init(sport);
-
 	spin_lock_irqsave(&sport->port.lock, flags);
 	/* Reset fifo's and state machines */
 	i = 100;


Full bootlog attached.

This issue has been present since at least kernel 4.9

Note You need to log in before you can comment on or make changes to this bug.