* [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
@ 2025-02-24 12:18 John Keeping
2025-02-24 12:36 ` Wentao Guan
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: John Keeping @ 2025-02-24 12:18 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: John Keeping, Wentao Guan, Jiri Slaby, Ferry Toth,
Ilpo Järvinen, linux-kernel, linux-serial
When flushing transmit side DMA, it is the transmit channel that should
be terminated, not the receive channel.
Fixes: 9e512eaaf8f40 ("serial: 8250: Fix fifo underflow on flush")
Reported-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
---
drivers/tty/serial/8250/8250_dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index f245a84f4a508..bdd26c9f34bdf 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -162,7 +162,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
*/
dma->tx_size = 0;
- dmaengine_terminate_async(dma->rxchan);
+ dmaengine_terminate_async(dma->txchan);
}
int serial8250_rx_dma(struct uart_8250_port *p)
--
2.48.1
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re:[PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 12:18 [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush() John Keeping
@ 2025-02-24 12:36 ` Wentao Guan
2025-02-24 12:48 ` [PATCH] " Greg KH
2025-02-24 12:48 ` Greg KH
2025-03-19 6:14 ` Wentao Guan
2025-03-19 12:21 ` Ilpo Järvinen
2 siblings, 2 replies; 12+ messages in thread
From: Wentao Guan @ 2025-02-24 12:36 UTC (permalink / raw)
To: John Keeping, Greg KH
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial, stable
Hello,
Thanks for reply.
+ Cc: stable@vger.kernel.org
BRs
Wentao Guan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 12:36 ` Wentao Guan
@ 2025-02-24 12:48 ` Greg KH
2025-02-24 12:48 ` Greg KH
1 sibling, 0 replies; 12+ messages in thread
From: Greg KH @ 2025-02-24 12:48 UTC (permalink / raw)
To: Wentao Guan
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial, stable
On Mon, Feb 24, 2025 at 08:36:20PM +0800, Wentao Guan wrote:
> Hello,
> Thanks for reply.
> + Cc: stable@vger.kernel.org
I have no context at all here, sorry. What am I supposed to do?
confused,
greg k-h
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 12:36 ` Wentao Guan
2025-02-24 12:48 ` [PATCH] " Greg KH
@ 2025-02-24 12:48 ` Greg KH
2025-02-24 13:13 ` Wentao Guan
1 sibling, 1 reply; 12+ messages in thread
From: Greg KH @ 2025-02-24 12:48 UTC (permalink / raw)
To: Wentao Guan
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial, stable
On Mon, Feb 24, 2025 at 08:36:20PM +0800, Wentao Guan wrote:
> Hello,
> Thanks for reply.
> + Cc: stable@vger.kernel.org
>
> BRs
> Wentao Guan
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 12:48 ` Greg KH
@ 2025-02-24 13:13 ` Wentao Guan
2025-02-24 13:34 ` Greg KH
2025-02-24 16:51 ` Slade Watkins
0 siblings, 2 replies; 12+ messages in thread
From: Wentao Guan @ 2025-02-24 13:13 UTC (permalink / raw)
To: Greg KH
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial, stable
Hello Greg,
Sorry for my HTML format past.
It is means that 'Fixes xxxxxx' tag point commit will auto be backport to those stable tree with
xxxxxx commit without cc stable, correct ?
BRs
Wentao Guan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 13:13 ` Wentao Guan
@ 2025-02-24 13:34 ` Greg KH
2025-02-24 16:51 ` Slade Watkins
1 sibling, 0 replies; 12+ messages in thread
From: Greg KH @ 2025-02-24 13:34 UTC (permalink / raw)
To: Wentao Guan
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial, stable
On Mon, Feb 24, 2025 at 09:13:29PM +0800, Wentao Guan wrote:
> Hello Greg,
> Sorry for my HTML format past.
> It is means that 'Fixes xxxxxx' tag point commit will auto be backport to those stable tree with
> xxxxxx commit without cc stable, correct ?
I am sorry, again, I have no context at all as to what you are asking :(
remember, some of us get 1000+ emails a day to handle. Always quote
context properly so we know what is going on.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 13:13 ` Wentao Guan
2025-02-24 13:34 ` Greg KH
@ 2025-02-24 16:51 ` Slade Watkins
2025-02-25 11:37 ` Wentao Guan
1 sibling, 1 reply; 12+ messages in thread
From: Slade Watkins @ 2025-02-24 16:51 UTC (permalink / raw)
To: Wentao Guan, Greg KH
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial, stable
On 2/24/2025 8:13 AM, Wentao Guan wrote:
> It is means that 'Fixes xxxxxx' tag point commit will auto be backport
> to those stable tree with xxxxxx commit without cc stable, correct ?
If you mean that it will be "automatically backported to stable," then
no. Ask for it to be backported, or submit it as a patch the proper way:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
Otherwise, I have no idea what you're talking about either. :-/
-slade
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re:[PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 12:18 [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush() John Keeping
2025-02-24 12:36 ` Wentao Guan
@ 2025-03-19 6:14 ` Wentao Guan
2025-03-19 11:20 ` [PATCH] " Greg KH
2025-03-19 12:21 ` Ilpo Järvinen
2 siblings, 1 reply; 12+ messages in thread
From: Wentao Guan @ 2025-03-19 6:14 UTC (permalink / raw)
To: John Keeping, Greg KH
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial
Ping?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-03-19 6:14 ` Wentao Guan
@ 2025-03-19 11:20 ` Greg KH
2025-03-19 12:15 ` Wentao Guan
0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2025-03-19 11:20 UTC (permalink / raw)
To: Wentao Guan
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial
On Wed, Mar 19, 2025 at 02:14:40PM +0800, Wentao Guan wrote:
> Ping?
Context-less pings help no one :(
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-03-19 11:20 ` [PATCH] " Greg KH
@ 2025-03-19 12:15 ` Wentao Guan
0 siblings, 0 replies; 12+ messages in thread
From: Wentao Guan @ 2025-03-19 12:15 UTC (permalink / raw)
To: Greg KH
Cc: John Keeping, Jiri Slaby, Ferry Toth, Ilpo Järvinen,
linux-kernel, linux-serial
Hello,
The ping query the patch state:
[PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
When flushing transmit side DMA, it is the transmit channel that should
be terminated, not the receive channel.
Fixes: 9e512eaaf8f40 ("serial: 8250: Fix fifo underflow on flush")
Reported-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
---
drivers/tty/serial/8250/8250_dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index f245a84f4a508..bdd26c9f34bdf 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -162,7 +162,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
*/
dma->tx_size = 0;
- dmaengine_terminate_async(dma->rxchan);
+ dmaengine_terminate_async(dma->txchan);
}
int serial8250_rx_dma(struct uart_8250_port *p)
--
2.48.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
2025-02-24 12:18 [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush() John Keeping
2025-02-24 12:36 ` Wentao Guan
2025-03-19 6:14 ` Wentao Guan
@ 2025-03-19 12:21 ` Ilpo Järvinen
2 siblings, 0 replies; 12+ messages in thread
From: Ilpo Järvinen @ 2025-03-19 12:21 UTC (permalink / raw)
To: John Keeping
Cc: Greg Kroah-Hartman, Wentao Guan, Jiri Slaby, Ferry Toth,
Ilpo Järvinen, LKML, linux-serial
[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]
On Mon, 24 Feb 2025, John Keeping wrote:
> When flushing transmit side DMA, it is the transmit channel that should
> be terminated, not the receive channel.
>
> Fixes: 9e512eaaf8f40 ("serial: 8250: Fix fifo underflow on flush")
> Reported-by: Wentao Guan <guanwentao@uniontech.com>
> Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
> ---
> drivers/tty/serial/8250/8250_dma.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
> index f245a84f4a508..bdd26c9f34bdf 100644
> --- a/drivers/tty/serial/8250/8250_dma.c
> +++ b/drivers/tty/serial/8250/8250_dma.c
> @@ -162,7 +162,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
> */
> dma->tx_size = 0;
>
> - dmaengine_terminate_async(dma->rxchan);
> + dmaengine_terminate_async(dma->txchan);
> }
>
> int serial8250_rx_dma(struct uart_8250_port *p)
>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
--
i.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2025-03-19 12:21 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 12:18 [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush() John Keeping
2025-02-24 12:36 ` Wentao Guan
2025-02-24 12:48 ` [PATCH] " Greg KH
2025-02-24 12:48 ` Greg KH
2025-02-24 13:13 ` Wentao Guan
2025-02-24 13:34 ` Greg KH
2025-02-24 16:51 ` Slade Watkins
2025-02-25 11:37 ` Wentao Guan
2025-03-19 6:14 ` Wentao Guan
2025-03-19 11:20 ` [PATCH] " Greg KH
2025-03-19 12:15 ` Wentao Guan
2025-03-19 12:21 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox