From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org,
"Mathias Nyman" <mathias.nyman@linux.intel.com>,
"Łukasz Bartosik" <ukaszb@chromium.org>
Subject: [PATCH 1/5] xhci: dbc: Improve performance by removing delay in transfer event polling.
Date: Fri, 27 Dec 2024 14:01:38 +0200 [thread overview]
Message-ID: <20241227120142.1035206-2-mathias.nyman@linux.intel.com> (raw)
In-Reply-To: <20241227120142.1035206-1-mathias.nyman@linux.intel.com>
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 31128e7492dc
("xhci: dbc: add dbgtty request to end of list once it completes")
Cc: Łukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
---
drivers/usb/host/xhci-dbgcap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-dbgcap.c b/drivers/usb/host/xhci-dbgcap.c
index 227e513867dd..fd7895b24367 100644
--- a/drivers/usb/host/xhci-dbgcap.c
+++ b/drivers/usb/host/xhci-dbgcap.c
@@ -957,7 +957,7 @@ static void xhci_dbc_handle_events(struct work_struct *work)
/* set fast poll rate if there are pending data transfers */
if (!list_empty(&dbc->eps[BULK_OUT].list_pending) ||
!list_empty(&dbc->eps[BULK_IN].list_pending))
- poll_interval = 1;
+ poll_interval = 0;
break;
default:
dev_info(dbc->dev, "stop handling dbc events\n");
--
2.25.1
next prev parent reply other threads:[~2024-12-27 12:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-27 12:01 [PATCH 0/5] xhci features for usb-next Mathias Nyman
2024-12-27 12:01 ` Mathias Nyman [this message]
2024-12-27 12:01 ` [PATCH 2/5] xhci: dbgtty: Improve performance by handling received data immediately Mathias Nyman
2024-12-27 12:01 ` [PATCH 3/5] usb: xhci: Fix NULL pointer dereference on certain command aborts Mathias Nyman
2024-12-27 12:01 ` [PATCH 4/5] xhci: Add command completion parameter support Mathias Nyman
2024-12-27 12:01 ` [PATCH 5/5] xhci: Add missing capability definition bits Mathias Nyman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241227120142.1035206-2-mathias.nyman@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=ukaszb@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.