[PATCH 0/3] tty: serial: sh-sci: set the RSCI RX FIFO trigger to half the FIFO
From: Diogo Ivo
Date: Fri Nov 27 2026 - 11:03:43 EST
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@xxxxxxxxxxx>
---
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@xxxxxxxxxxx>