From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97D4233B6EF; Wed, 3 Dec 2025 15:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777457; cv=none; b=fF3mNIeEfQdYDmuAcRnqElfeHsMS/58TTeD63wh5HcdBBmCifYu+DNWK+gVpXHV9/nLBal+exZUgpjUflUOIRKOf93LBgtAXy5/rO5ODFWDvfxxSWZkUlKGFKEoshlB3IsYb3ar9mu0x35Ke2lyLCvFg4YCQxavRxcAYQ9hEnNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777457; c=relaxed/simple; bh=X4YxxkWp4ylpCIsmtmPOzGBluxcCSwpdwqKIPeqY9LQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VSbRpeDmp8EY+R2vWLZ5QacEvJ6BuP05vLLmDjlN0Cy1A1NLap9KeQ3A4QSo7ExAKw7HJDCfbgowB2+X0kw98REllvVoCx05xws81tUmuIssBYx2O3BkH1mki9yGF6H/kLAPj4Wb4ISBkJBavqOtoTRP3Q8WQZbXJ7eXkc9/3do= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CydvwGOj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CydvwGOj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19A1AC4CEF5; Wed, 3 Dec 2025 15:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764777457; bh=X4YxxkWp4ylpCIsmtmPOzGBluxcCSwpdwqKIPeqY9LQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CydvwGOjtUk3bm85XmQwsgIFyNSaeBuallnn55hlzN5YNJeoDAflW02L09BZlYRdl TrT/cwrvW9RfjVm5dh0TloeVmR+Bl9Mw78p1vl7LKfJzBSP1yCyQVSSptksCxPTaBF /yoIGBn6Xa2zDrpcNsQJpWDXQil6Qn40bW1AoiX0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?=C5=81ukasz=20Bartosik?= , Mathias Nyman , Sasha Levin Subject: [PATCH 5.15 043/392] xhci: dbc: Improve performance by removing delay in transfer event polling. Date: Wed, 3 Dec 2025 16:23:13 +0100 Message-ID: <20251203152415.695017816@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152414.082328008@linuxfoundation.org> References: <20251203152414.082328008@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mathias Nyman [ Upstream commit 03e3d9c2bd85cda941b3cf78e895c1498ac05c5f ] 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 Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20241227120142.1035206-2-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman Stable-dep-of: f3d12ec847b9 ("xhci: dbc: fix bogus 1024 byte prefix if ttyDBC read races with stall event") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-dbgcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/host/xhci-dbgcap.c +++ b/drivers/usb/host/xhci-dbgcap.c @@ -987,7 +987,7 @@ static void xhci_dbc_handle_events(struc /* 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");