Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2345609lqz; Tue, 2 Apr 2024 14:46:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXg9aLGbpeQdToS+3owELF2AcSNATj63lAS+zAQ6sacdcnR4bu7t9cUUKfPXBluhnDE3Z2t4F3F0jNPTHHJm4Bj7BV8umH5L/aZdgZjYQ== X-Google-Smtp-Source: AGHT+IHKvn2fl6ihdvh9U9bWFMdli1Zgy5J3aEL/z4wsu97Nt82hx9FgyRCWzsZzENeNUM4tZ6+V X-Received: by 2002:a17:902:f68e:b0:1e0:26ac:8234 with SMTP id l14-20020a170902f68e00b001e026ac8234mr13956923plg.18.1712094371327; Tue, 02 Apr 2024 14:46:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712094371; cv=pass; d=google.com; s=arc-20160816; b=KmdEC/l1LIqInHjYcscb2qaWw71t2gRD6QPwSo0PvsxsjMYsDEzV/AAJttRuvWWNYz zEI+j2HZzpHj+hVnoK9+zHuKZq+9q9D5YHIGbLSt+E3YwmPKybuB8FII2eHtqNc0YzmF EsBT3GTS2xcQMEwLMNSHw/EXpzHIY9UHKzUQvqcu5WlaS2E3rp5GzWgadG9m0EVHDfh7 SBsKBxipQcMNL7YYTq/KtqjeEOrO2WhYWpiqs83hwWxtC1FBej3OvtxFnAwbyhbtTrm+ OZkze1qspDqTdWhHTRU9gZ9b0qhpognyJN9Y3HnXSL5KyYny82gmIZY5RdwQow7uzEj1 Gudw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=4LJVl/+RxtERjdJ2LoJVux4qmv2UHffp76YyRUCvzwc=; fh=vo14NhicYp2C5q8eZJ8osVrnfIJeD333NQJOdx5owTw=; b=mxt8LRcV/Rp1WZYkZDOZG2f7x3beFJWs8PBJ6H/aucJUdhHndWnIS57HYaQ209CQ+Q JeUA2VtxyrDu0qnbBX+HRqfuj4xgOUBx/EDLKOpzzVTcgKZVUiejX5hLTAneBFRI1Jz4 POI6VXOyfT1FDL2HkkLn71GXEecry2VkEzQrJGKOX4yHjPiGCQrzlgpk/wj+O6g7MwTf BLtJ4DJrJS0iRukPMCxutQshc8gFDHA+XzPMUIFSG5Iykhg+K3UjY5czAF2QjnZMbPsf Fy85pYKUilGsj4v7NwD/eEyHdXfBiYb9/hnLY9IYNbrTuPeaC0QiGhvsyPjkxL/twl2p cI9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128743-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128743-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l6-20020a170903120600b001e098ad43d7si12256592plh.216.2024.04.02.14.46.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:46:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128743-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128743-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128743-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9002B289BFF for ; Tue, 2 Apr 2024 21:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C0F815E814; Tue, 2 Apr 2024 21:46:00 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 5C36115AAA7 for ; Tue, 2 Apr 2024 21:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712094360; cv=none; b=THnXLf/k3el7mV4jYkicKRbzeEhiOapYV47hWnFq/y+kyJcQLvhZXga1mkS06AYb6/eLJdFRge2vlCfesSUuhZjYDuJP0eG/4H2DPsW6zD+Q87sY02GCF1ir16lu3RuF51F9Ie/Xb3NFNsd5ukJZaCj4HpPGoqhISV4W9Iw7r5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712094360; c=relaxed/simple; bh=ocxDqJuKRDai7rPDRIaTxB1XkMPaImpG6NfuIj5DBO4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ro7wjNh37C/m3BQ3V2encEh7Wjt5W9cLfMaYUOexGAx72SEnn6OidxqUS/rmpO58Cpe0nH4LNZmAsbmKIweD2lMZb9gPMe6zSRLXfOwEOilHq3f/E5ptsfZgFELU9ezF2trB8YQBrRe2k8ux1rOsnLYfoojSl9GqvJMMDomjHDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rrlx1-00009Z-B1; Tue, 02 Apr 2024 23:45:51 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrlx0-00A3Xa-3M; Tue, 02 Apr 2024 23:45:50 +0200 Received: from mgr by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rrlx0-00Aws9-04; Tue, 02 Apr 2024 23:45:50 +0200 Date: Tue, 2 Apr 2024 23:45:50 +0200 From: Michael Grzeschik To: Thinh Nguyen , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] usb: dwc3: gadget: improve abbort transfer abort by adding more conditions Message-ID: References: <20240307-dwc3-gadget-complete-irq-v1-0-4fe9ac0ba2b7@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tWQpvqhZ3A9Ayrjv" Content-Disposition: inline In-Reply-To: <20240307-dwc3-gadget-complete-irq-v1-0-4fe9ac0ba2b7@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mgr@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --tWQpvqhZ3A9Ayrjv Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 07, 2024 at 04:22:02PM +0100, Michael Grzeschik wrote: >The dwc3 gadget driver is correctly checking the prepare and started >request lists for potential underruns and will stop the running transfer >in that case. However it is possible that the running pipeline will lead >into more underrun scenarios, which can be avoided and be detected. This >series is adding the corresponding code to ensure that an underrun >transfer will be handled properly. > >Signed-off-by: Michael Grzeschik >--- >Michael Grzeschik (3): > usb: dwc3: gadget: reclaim the whole started list when request was m= issed > usb: dwc3: gadget: check drained isoc ep > usb: dwc3: gadget: check the whole started queue for missed requests= in complete > > drivers/usb/dwc3/gadget.c | 38 ++++++++++++++++++++++++++++++++++++-- > 1 file changed, 36 insertions(+), 2 deletions(-) >--- >base-commit: dfea18989aa7beb42c2cb6344fe8787de35d9471 >change-id: 20240307-dwc3-gadget-complete-irq-1a8ffa347fd1 > >Best regards, Since it is not right to fully stop the ep after one missed transfer was detected, this series is not correct anymore. We solve the overall issue in the upper layer now. Besides the patch "usb: dwc3: gadget: check drained isoc ep" is not completely wrong, I will resend that one in another veriant. mgr --=20 Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --tWQpvqhZ3A9Ayrjv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElXvEUs6VPX6mDPT8C+njFXoeLGQFAmYMfIsACgkQC+njFXoe LGTZFhAAv0rquu74k9lZ78qiepcQVo6Qoq8z3Awh2HIvs28vVvJ5GlRD19yeoWnF FupjFur3kFfw+xAa1CU3zNJtDnlKiW+t9klJ/MipLhRPR9GpAjkCVXVriJGNEfpS Y7hhB7iOZjr0nGJ/b/Wld4OZroDCjFPoF3BGxm/tISucusCuoswjLwewJF3tmAGf q8yeOq6MQKHbbPpFQlNFEMibMWMqacgjWsKdC8ngrwcfUgF87pbxqdunF6TXwwYf Xu+2iZUn87SiwlueUf21RjXMC498rh3hZ1qzbvDpNwjCRJIyypIK60YubHOasSsF +uFkleYZpfJCZbENlsDBvvYpP6LqP47oFIjBsWDHYGTNuJVA+78iV26mw/Ayjdor gY5QW79O8wnP0IjbYEuQE5w7KeMP09clWEM2s2k/hj17c3eIoqvp882iaCVXJBne CRjNVy/WPIh4TV4jHY1vc4dk1ezX+2hJlaQtwHvoiiwMGiRv3vFSEga29ITywqpX 4zexzC05NR70ARWHrddKF32BhYgLIHuiksPUeWpnmRq3UCEfp1yFm2ka9D3HCUAL fYpnebv/npQ0rWPmV+0r4QPPypPzSXBOLsyObeEj/AM83eonUNy+zY9YvWpIft+z yjSNKZfc8gUSjhIQ/vsVEIKIXxY0UVVCYEB1bS/JeaGLk2IAmzc= =P9jq -----END PGP SIGNATURE----- --tWQpvqhZ3A9Ayrjv--