Skip to contentSkip to conversation

low_latency flag has gone missing

DISCUSSION Grant Edwards 2 participants 2 messages Mar 3, 2021 – Mar 4, 2021 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Some of the serial drivers that I maintain can make a tradeoff between CPU usage, throughput, and rx data latency. For the past 20 years, I've based that tradeoff on the tty struct's "low_latency" flag. This allowed the user to choose between high-throughput with low CPU usage, or higher CPU usage with lower latency and lower total throughput.

That low_latency flag appears to have "gone away" in v5.12.

How are users now supposed to indicate their desire for low-latency operation for a serial port?

--
Grant

maintainer
#1 lore raw
Quoted 10 lines · Grant Edwards

Some of the serial drivers that I maintain can make a tradeoff between CPU usage, throughput, and rx data latency. For the past 20 years, I've based that tradeoff on the tty struct's "low_latency" flag. This allowed the user to choose between high-throughput with low CPU usage, or higher CPU usage with lower latency and lower total throughput.

That low_latency flag appears to have "gone away" in v5.12.

How are users now supposed to indicate their desire for low-latency operation for a serial port?

Given that there are no in-kernel users of this "option", perhaps hardware has caught up to the fact that it really wasn't doing anything :)

Do you have proof that it was working as expected somehow?

thanks,

greg k-h