Commit 5f0aee44 authored by Mathias Nyman's avatar Mathias Nyman Committed by Treehugger Robot
Browse files

UPSTREAM: 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: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20241227120142.1035206-3-mathias.nyman@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit d157a2bc)

BUG=b:350022600
TEST=Verified adb push/pull performance is >100 MB/s
Change-Id: I977fff4126682d7767660a88abc660edf4167610
Signed-off-by: default avatarŁukasz Bartosik <ukaszb@google.com>
parent 09d84618
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment