Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1947147imu; Fri, 14 Dec 2018 03:25:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/UQzbhnkxBu/i44dDgUyIwaH5jpvJMqqq80blWWyOPdQR7enUlmaejruqcmTVvr4Q7v9w2p X-Received: by 2002:a17:902:6b83:: with SMTP id p3mr2508240plk.118.1544786708247; Fri, 14 Dec 2018 03:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544786708; cv=none; d=google.com; s=arc-20160816; b=hj8GIKtCR83kQsvNRJO6OSjMH+mAgScUshwn5cx62GOgujHVdNi9umc9Dzd+KrGGSe FI2NNgsE4ocFXrcNt5hIC4LdGtjI+4CvxooVVv5VP9PtWY/8IIz4mCUx1YlvAHQDtWF7 BQxLsPAdKVXqx8/4uXdr8OF70gybakWyMmuelR1r3jOIIJr+xbhWfPQ5wpXfkXLsrjxO dNMPEI3KxMx6PH8ZVo4YysctaU2Xq7S8lltlRFNS372AEm1at4hy3naFbEMECOuyUab8 VogUoPEHyMXlXKXymnVMepavlWjr77LCc7Ffq9eqSNLzPH5aLGrkhn0dkFSJu2QErCio ZpMg== 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=1ez8NfLEkO4qeg3zoP996H1FcnLBTRQpIc9rZwbmmOg=; b=KWaD8H3aeK6FoxC2YMKGWBDoBDW+UB2GtNVlah6oXFqa1sjbHgXh8tsF229vsckSHd 4gCwHXt5dzcI6+2z30Pf3sGRb/lc3GbSx+ij1zcZB4sAY1XsSZ+q5+M3PJZw6OD4IvZu 3x1poSjQEivBKbGoUVoN9pnAAcluyIioYwSMntIIgdMg5BLcMApD2f6aBE2u4VLBZ4dd ldWtbByKRSMbQt24IgaU81cG1WbvBUezTSAmrGqS/LHUGdbjiHiTljaac4BbzxKn1vfp Lf9GmKqQu24DfdN29bNb1Ije/PkDVlJc/SiglyRd2sm3N7ABy9H4u6JfStq49EZBgp11 L1gg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v69si3929952pgb.3.2018.12.14.03.24.51; Fri, 14 Dec 2018 03:25:08 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729382AbeLNLX7 (ORCPT + 99 others); Fri, 14 Dec 2018 06:23:59 -0500 Received: from mga11.intel.com ([192.55.52.93]:61428 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728612AbeLNLX7 (ORCPT ); Fri, 14 Dec 2018 06:23:59 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Dec 2018 03:23:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,352,1539673200"; d="asc'?scan'208";a="125901293" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.72.175]) by fmsmga002.fm.intel.com with ESMTP; 14 Dec 2018 03:23:57 -0800 From: Felipe Balbi To: "Zengtao \(B\)" Cc: liangshengjun , Greg Kroah-Hartman , "linux-usb\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" , Thinh Nguyen Subject: RE: [PATCH] usb: dwc3: gadget: fix miss isoc issue introduced by IRQ latency In-Reply-To: <678F3D1BB717D949B966B68EAEB446ED24E20BE5@dggemm526-mbx.china.huawei.com> References: <1544805179-2248-1-git-send-email-prime.zeng@hisilicon.com> <87efaklcd1.fsf@linux.intel.com> <678F3D1BB717D949B966B68EAEB446ED24E20BE5@dggemm526-mbx.china.huawei.com> Date: Fri, 14 Dec 2018 13:23:52 +0200 Message-ID: <878t0sl5br.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:balbi@kernel.org] >>Sent: Friday, December 14, 2018 4:52 PM >>To: Zengtao (B) >>Cc: liangshengjun ; Zengtao (B) >>; Greg Kroah-Hartman >>; linux-usb@vger.kernel.org; >>linux-kernel@vger.kernel.org >>Subject: Re: [PATCH] usb: dwc3: gadget: fix miss isoc issue introduced by >>IRQ latency >> >>* PGP Signed by an unknown key >> >>Zeng Tao writes: >> >>> If it's a busy system, some times when we start an isoc transfer, the >>> framenumber get from the event buffer may be already elasped, in this >>> case, we will get all the packets dropped due to miss isoc. And we >>> turn into transfer nothing, to fix this issue, we need to fix the >>> framenumber to make sure that it's not out of date. >>> >>> Signed-off-by: Liang Shengjun >>> Signed-off-by: Zeng Tao >> >>There's a patch going upstream already doing this: >> >>https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/commit/?h >>=3Dnext&id=3Dd53701067f048b8b11635e964b6d3bd9a248c622 >> > > Sorry, I think I missed to update to the latest version. But I think my=20 > patch is more efficient. Because I just sync the frame from the HW, it > won't fail and there is no need to extra tries. > > What do you think about it? the 14 bits you use for your check is not representative of the actual micro-frame you're currently in. Thinh explained that in the discussion we had until we came to the patch I pointed you to above. Please look at the mailing list archives for details. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlwTksgACgkQzL64meEa mQZJng//XfRK6HOJ2tT9+GNmNvtyo8h1BNhMhEZvXkn4WTvU2ecqq3GLOphr9Fts ux0T2be5pbjJ0xdBCbiMjL9XKDs3BxKTP5kzfjDikGFeZyjwPDqjlOC2HGgiJt40 GXorTFOBfEsGSP9nVNYL1OFPYsTTwZSYypmo5FpRNpq4Ey9izfUvu/NYN1y6l5RA MH6gOdasaMZL98mETXNP8hK4m3pjz5RbcBUJW9uDlw53XjWlQ3L1lbaFCsT8f0lY GCDVVUNYoRr4vxrsZ1WkaHa7BcU4ONLnWhK1S5s0CtMv77nXlzzy6nQ2IOEfZJEJ VQYVBbst02PTQPlACB32Knt367ajrH+Xh0k4vCRvJ6SxgAwMzjwq1QgUGg9hV881 zj9ZNESbNC/+KGIK83w1uKoUZ6S4MELD1tbyD6wTtIOUHJZ5KSUqvk2b0DAqiiqw RWr+UVj54J5mx+viwICw1MJvQS489oh39uLznB+ODXSXkFBQZDXrt/ZTkd7+XKyp zzDbJIyFLCJtSnP1xg8FrHTu99dbQtHwi33xLryP0V5OmbRzkvG7Xsl+zLiRQsuJ gdd2rmy07gAkeN+Qnfa7HE/RSYt1/OD2DBB1OIegBsIgOd2fe34WhfSxov333906 ZfhEjwk7KKchpwIfKvdj66WIJzPF5jhic/jAW4Vr9pKvvFOyeSA= =Sr1X -----END PGP SIGNATURE----- --=-=-=--