Skip to contentSkip to conversation

serial: 8250_lpss: Use 16B DMA burst with Elkhart Lake

PATCH In review Ilpo Järvinen 2 participants 2 messages Nov 21, 2022 – Nov 22, 2022 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: 8250_lpss: Use 16B DMA burst with Elkhart Lake

commit 7090abd6ad0610a144523ce4ffcb8560909bf2a8 upstream.

Configure DMA to use 16B burst size with Elkhart Lake. This makes the bus use more efficient and works around an issue which occurs with the previously used 1B.

The fix was initially developed by Srikanth Thokala and Aman Kumar. This together with the previous config change is the cleaned up version of the original fix.

Fixes 0a9410b981e9 ("serial: 8250_lpss: Enable DMA on Intel Elkhart Lake")
Cc <[email protected]> # serial: 8250_lpss: Configure DMA also w/o DMA filter
---
 drivers/tty/serial/8250/8250_lpss.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/tty/serial/8250/8250_lpss.c +3 -0
index 49ae73f4d3a0..078f12f856f6 100644
@@ -177,6 +177,9 @@ static int ehl_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
 	 * matching with the registered General Purpose DMA controllers.
 	 */
 	up->dma = dma;
+
+	lpss->dma_maxburst = 16;
+
 	return 0;
 }
 
Signature · 1 line
2.30.2
#1 lore raw
Quoted 17 lines · Ilpo Järvinen

commit 7090abd6ad0610a144523ce4ffcb8560909bf2a8 upstream.

Configure DMA to use 16B burst size with Elkhart Lake. This makes the bus use more efficient and works around an issue which occurs with the previously used 1B.

The fix was initially developed by Srikanth Thokala and Aman Kumar. This together with the previous config change is the cleaned up version of the original fix.

Fixes 0a9410b981e9 ("serial: 8250_lpss: Enable DMA on Intel Elkhart Lake")
Cc <[email protected]> # serial: 8250_lpss: Configure DMA also w/o DMA filter
Quoted 3 lines
---
 drivers/tty/serial/8250/8250_lpss.c | 3 +++
 1 file changed, 3 insertions(+)

Now queued up, thanks.

greg k-h