]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xhci: dbgtty: Improve performance by handling received data immediately.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 27 Dec 2024 12:01:39 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 12:06:10 +0000 (13:06 +0100)
commitd157a2bcf99c028b134e1e6b53d8af64d0396c66
treeb8ba5504cff5653907631379721d24162206a86e
parent03e3d9c2bd85cda941b3cf78e895c1498ac05c5f
xhci: dbgtty: Improve performance by handling received data immediately.

Improve dbc transfer rate performance by copying the received data to
the tty buffer directly in the request complete callback function if
possible.
Only defer it in case there is already pending deferred work, tty is
throttled, or we fail copy the data to the tty buffer

The request complete callback is already called by a workqueue.

This is part 3/3 of a dbc performance improvement series that roughly
triples dbc performace when using adb push and pull over dbc.

Max/min push rate after patches is 210/118 MB/s, pull rate 171/133 MB/s,
tested with large files (300MB-9GB) by Łukasz Bartosik

Cc: Łukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20241227120142.1035206-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgtty.c