Skip to content

Commit 03e3d9c

Browse files
matnymangregkh
authored andcommitted
xhci: dbc: Improve performance by removing delay in transfer event polling.
Queue event polling work with 0 delay in case there are pending transfers queued up. This is part 2 of a 3 part 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 First performance improvement patch was commit 31128e7 ("xhci: dbc: add dbgtty request to end of list once it completes") Cc: Łukasz Bartosik <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d7123c7 commit 03e3d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-dbgcap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ static void xhci_dbc_handle_events(struct work_struct *work)
957957
/* set fast poll rate if there are pending data transfers */
958958
if (!list_empty(&dbc->eps[BULK_OUT].list_pending) ||
959959
!list_empty(&dbc->eps[BULK_IN].list_pending))
960-
poll_interval = 1;
960+
poll_interval = 0;
961961
break;
962962
default:
963963
dev_info(dbc->dev, "stop handling dbc events\n");

0 commit comments

Comments
 (0)