Mathias Nyman d157a2bcf9 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>
2024-12-27 13:06:10 +01:00
..
2024-11-04 01:27:52 +01:00
2024-10-14 08:03:44 +02:00
2023-03-21 14:06:11 +01:00
2024-10-14 08:03:44 +02:00
2024-10-14 08:03:44 +02:00
2023-05-28 15:25:53 +01:00
2024-10-14 08:03:44 +02:00
2024-10-21 08:53:43 +02:00