Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5996558imu; Mon, 21 Jan 2019 01:07:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Yif7aa4X2Q4JYYG4mYDb6A4FHVEkD2R8HUW4ROU/Qup1LKXArb17vUnRd3grm/248HGqk X-Received: by 2002:a62:68c5:: with SMTP id d188mr29813883pfc.194.1548061646798; Mon, 21 Jan 2019 01:07:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548061646; cv=none; d=google.com; s=arc-20160816; b=tKmNtwW53c6+km/OcMVZ1MSMVU3++J4GLLnG39Zf3eQ9afKDlPA1fwuz3FMM9Bi6LV q5cqgDEbwejPTyPZLWgXVM9cHZ5fxzPNU30NkmpnphfNp+nnOEkhNWdAEfL26gtjB+EV cg9lrVSfwW07lwVALMI3IWQfMx9jWBYXFa2c6b5WaQNjB033Eh7IO/yKqeTu00UxTPLc CRfY0SOU4D2Gtsu75Oo6UE9Q5EqMRPBZcPU8sOjRKSUrLFA3Cmccyjb2oAn7pS3HRMDB FC7Zqw53nyrHISGBg/FkL+67m4RcNyNW3U07lfu9hxBfJ2cgj5GLaAZiDUtuZpT/5IVF cauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=XgDEuP8FyxTxptzUx+cM90VfX+dzJD6C3nLEqSfZ2Xc=; b=Z0EzcQhk/KLc2cFtQtWYHninHM8sjA/rE0CokljCFF8bVq/+5+fVSgL6gy1IhUX+6P zoDkoYXSxx6Ih0lwTW/KqNpxjTBd8ATzEW4lGQ2M3v/ubb7r9b1M4+lb3uyrkbMbZIST kiO4uc1UmEmud5E9W9IBW1015vhbrJi5SK8odjQ3C2L1/kp5E5HCfwzNoTjhs0h9s4p3 ZxpBV9OWoh+rcRWFOCnWFEAqoCl1cbKvlpJoqJpV+S9hMb0b6K0E/sXezxgTgjcOYoTk SSVk9d8fP620DfbauWvumn9SrdNy2j3nV3dgA45v8HtixollTwwbMsEQHyDULoYxRC0f qDIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si8612165pgj.59.2019.01.21.01.07.10; Mon, 21 Jan 2019 01:07:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726063AbfAUJDq (ORCPT + 99 others); Mon, 21 Jan 2019 04:03:46 -0500 Received: from mga12.intel.com ([192.55.52.136]:35092 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbfAUJDq (ORCPT ); Mon, 21 Jan 2019 04:03:46 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2019 01:03:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,502,1539673200"; d="asc'?scan'208";a="293125500" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.72.175]) by orsmga005.jf.intel.com with ESMTP; 21 Jan 2019 01:03:44 -0800 From: Felipe Balbi To: "Zengtao \(B\)" Cc: Greg Kroah-Hartman , "linux-usb\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: RE: [PATCH] usb: dwc3: gadget: don't remove the request if bus-expired In-Reply-To: <678F3D1BB717D949B966B68EAEB446ED24E49C55@dggemm526-mbx.china.huawei.com> References: <1545339230-10520-1-git-send-email-prime.zeng@hisilicon.com> <87won7mzcn.fsf@linux.intel.com> <678F3D1BB717D949B966B68EAEB446ED24E49C55@dggemm526-mbx.china.huawei.com> Date: Mon, 21 Jan 2019 11:03:40 +0200 Message-ID: <87lg3ejsb7.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, "Zengtao (B)" writes: >>-----Original Message----- >>From: Felipe Balbi [mailto:felipe.balbi@linux.intel.com] >>Sent: Monday, January 14, 2019 4:13 PM >>To: Zengtao (B) >>Cc: Zengtao (B) ; Greg Kroah-Hartman >>; linux-usb@vger.kernel.org; >>linux-kernel@vger.kernel.org >>Subject: Re: [PATCH] usb: dwc3: gadget: don't remove the request if >>bus-expired >> >>* PGP Signed by an unknown key >> >> >>Hi, >> >>Zeng Tao writes: >>> We have already returned EAGAIN for bus-expiry, and it's designed to >>> start with a future Frame number and start the transfer again. So we >>> should not remove the request for that case. >>> >>> Signed-off-by: Zeng Tao >> >>Do we need a Fixes tag here? How about Cc stable? Can you share >>tracepoints exposing the problem? >> > > I am not sure that we need to Fixes tag, it's not related to any single p= atch, but > there is definitely something wrong, after rethinking it again, I found t= hat there > are still some problems for this patch, for the reties inside the driver,= we should not > remove the request, but if we return -EAGAIN to the gadget layer, we shou= ld because > the gadget will requeue the request again if we return -EAGAIN. > > Any suggestions.=20 Well, that needs to be patched, sure. I'm just saying that we need to blame a patch that was incomplete so we know which stable releases need this. Perhaps the patch at fault here was my patch adding the retry method for isoc transfers. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlxFiuwACgkQzL64meEa mQYn/RAAqPwza0sGcY5jJToQVdfYQj9Lf2kCljL1TmZdu2CZt5g6NSlILiPOJ204 NCF2dJjIUckNELLUR9E9HS/PWpDzdVvRJq9GIpb0xycANvBHDEhcI5h53lZ6vKlA epD3/OB2H2jQJvNdMmMk7GgWZPxSw63h9uARg9/guKQosjM8ypul7igToTAvWGL7 O9Kp20mVIRK7MrQeAcNaXD9X8+b4bYoc/t8c9Q+n6xxPB6varnN92tvh4HBrzOIJ 0Oa6gIqQ+gMroQ130poK9lLvPuAzZzuZhMtqBXVRPSW7Zcc4pof2UnY9k8SZDKik /RWIQ1JC/J1RxCCT5TVApeCMyCPKURJ4tvl9CpW6DR80USbKmiStaEhuv+Ufg6xj fETEW6HEkC/VlnHOq9BR2HpK/mEeABtqYUUsJc+celd5ac5eqq4sIZRSGmDHrCcU E4ElvOhd9q+I8vZ9fVk0VWkJRzb7F4pat0CKU/TpAk5Aaepgv+ro62bnKXddHBvf qR+0RXg/8u8/cfHN6+VBUIpE2sIVBd6Mcjzbfhw1WnMlmM5LjFtewIUbaX8taW91 4KjyE7KYlbZ2EeO4vyLV+2m13qUY9lCS9dsNpzKp0neAeV4pdINXxXlKyYyjJPbF dvT+IpexpDqnPFPh7DSGdmvmbcVN7O294Q9p/NM9y6y9qMH4jdE= =CPIk -----END PGP SIGNATURE----- --=-=-=--