Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO
@ 2026-11-27 16:03 Diogo Ivo
  2026-11-27 16:03 ` [PATCH 1/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on T2H Diogo Ivo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Diogo Ivo @ 2026-11-27 16:03 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Thierry Bultel, Lad Prabhakar,
	Geert Uytterhoeven, Wolfram Sang, Biju Das, Cosmin Tanislav
  Cc: linux-kernel, linux-serial, linux-renesas-soc, Diogo Ivo, stable

The RSCI port types ask for a RX FIFO trigger equal to their FIFO size,
which rsci_scif_set_rtrg() clamps to fifosize - 1. RDRF is raised once
the FIFO holds at least RTRG bytes, so the receive interrupt arrives
with a single byte of space left, causing overruns at 1152000 baud on
RZ/T2H, and at 115200 baud on RZ/G3L.

Every other port with a FIFO triggers at half of it, SCIF at 8 of 16 and
HSCIF at 64 of 128. The only exceptions are SCIFA and SCIFB which set it
to 1 because they have no hardware FIFO timeout and a higher trigger
would leave bytes in the FIFO.

Trigger at half the FIFO for RSCI as well, 8 of 16 for RSCI_PORT_SCIF16
and 16 of 32 for the RSCI_PORT_SCIF32 types. The series splits this into
three patches, one for each RSCI port type, in order to make backporting
easier.

For the first patch, adjusting RZ/T2H, some changes are needed in order
to apply it to 6.18 stable since mainline has diverged due to commits
3a3ab10245b6 ("serial: sh-sci: Update rx_trigger size for RZ/T2H RSCI") and
d53f4aa9edaa ("serial: sh-sci: Rename port SCI_PORT_RSCI->RSCI_PORT_SCIF16"). 

Signed-off-by: Diogo Ivo <diogo.ivo.sx@renesas.com>
---
Diogo Ivo (3):
      tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on T2H
      tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on G3E
      tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on G3L

 drivers/tty/serial/sh-sci.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
base-commit: 27fc36c7e3e22d67db77f8076020cb4c5080668e
change-id: 20261127-divo-ssgrlpcsrc-2996-rsci-rx-fixes-371a4751707c

Best regards,
--  
Diogo Ivo <diogo.ivo.sx@renesas.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-27 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 16:03 [PATCH 0/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO Diogo Ivo
2026-11-27 16:03 ` [PATCH 1/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on T2H Diogo Ivo
2026-11-27 16:03 ` [PATCH 2/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on G3E Diogo Ivo
2026-11-27 16:03 ` [PATCH 3/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO on G3L Diogo Ivo
2026-11-27 16:12 ` [PATCH 0/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox