aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDarwin Dingel <[email protected]>2018-12-10 11:29:09 +1300
committerGreg Kroah-Hartman <[email protected]>2018-12-17 16:02:57 +0100
commit6d7f677a2afa1c82d7fc7af7f9159cbffd5dc010 (patch)
tree2b38e2d830923e12411591436627eed9aa89d339 /scripts
parentbdb48e4c7d0796850d4c1a24fe1386677e8a922c (diff)
serial: 8250: Rate limit serial port rx interrupts during input overruns
When a serial port gets faulty or gets flooded with inputs, its interrupt handler starts to work double time to get the characters to the workqueue for the tty layer to handle them. When this busy time on the serial/tty subsystem happens during boot, where it is also busy on the userspace trying to initialise, some processes can continuously get preempted and will be on hold until the interrupts subside. The fix is to backoff on processing received characters for a specified amount of time when an input overrun is seen (received a new character before the previous one is processed). This only stops receive and will continue to transmit characters to serial port. After the backoff period is done, it receive will be re-enabled. This is optional and will only be enabled by setting 'overrun-throttle-ms' in the dts. Signed-off-by: Darwin Dingel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions