Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp892821ybl; Thu, 23 Jan 2020 09:38:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwJQPQiNCdsCbyigtJ6NBJJ52eMIHfHO+dzwOjIYw9qLujGZzoa4Yu02df4kwRDcCMkl6Ha X-Received: by 2002:a05:6830:14d9:: with SMTP id t25mr12468630otq.258.1579801119086; Thu, 23 Jan 2020 09:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579801119; cv=none; d=google.com; s=arc-20160816; b=hdw2tDC4e4ecXYE4mP29JwTrIP2mqlyIOOtKhLPx0x8a5qz4VQW8SbeE/cJqpOfJSr YVys6p9/Q5PBjVgT4ExjFjRCRmbmjGlyU2trF/rtjw/8usEXul0cHtY12UuhqWxJsKAd F2VAemnga5lHrV7lSvNqlV1vGnvgofexvGklsH6LRBwVogXqc0nwEjtru/mK2cFFUoPM TpA4nVzdy1SXq6UdvveOkHBmMOTltdlTnd0OSJU4MrpaPf5HcL12k9ghivSrug2FbtGP rV+FrGTfkNxMrKcyNOr2d/bq4UtLH6u64U8Ok4ccA7rzv70/Ai+/wxHec2wUPlwLimfQ /U8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=rJBmTog5AKgcvFkyz5K6cmyrVmdGVBSnPFDiTA6cutg=; b=KYC63KEjsFvj3LEsx7AstpPJhWgLRsjFiWV45ugE+8UHBFvL72Q8maALO4fmuNW7Nk I/nT+t4H1aqzMuG+XySn9UKqrEbP0zFJPJOKldqX9vgD9PJlurvvEBhD/TZHM7AWiuL5 yked4EqhJmVtJ5kkTcXW+/zA2PkLnSKZdADPuCR4qIhaJXCYhXiOiYDA47gCe4tiAYZQ xEz5AVGy8zfZ9mX+Wz1dDcT2kj+zxfTHBUpaWC2kFZoxWJ5qV+PbvZmTuwuUbviprzm5 o4rr02yQqvb1E3X+qUfNHuvgY0a1BKNthgETF80zM/l3HsUwFOwLyadzmkyU1HQJGNBm QA/A== 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 n18si1561160otf.285.2020.01.23.09.38.26; Thu, 23 Jan 2020 09:38:39 -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 S1729094AbgAWRhQ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Jan 2020 12:37:16 -0500 Received: from mga12.intel.com ([192.55.52.136]:37819 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbgAWRhP (ORCPT ); Thu, 23 Jan 2020 12:37:15 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2020 09:37:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,354,1574150400"; d="scan'208";a="307888607" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga001.jf.intel.com with ESMTP; 23 Jan 2020 09:37:15 -0800 Received: from orsmsx162.amr.corp.intel.com (10.22.240.85) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jan 2020 09:37:14 -0800 Received: from orsmsx102.amr.corp.intel.com ([169.254.3.100]) by ORSMSX162.amr.corp.intel.com ([169.254.3.134]) with mapi id 14.03.0439.000; Thu, 23 Jan 2020 09:37:14 -0800 From: "Yang, Fei" To: Felipe Balbi , Andrzej Pietrasiewicz , John Stultz , lkml CC: Felipe Balbi , Thinh Nguyen , Tejas Joglekar , "Jack Pham" , Todd Kjos , Greg KH , Linux USB List , stable Subject: RE: [RFC][PATCH 0/2] Avoiding DWC3 transfer stalls/hangs when using adb over f_fs Thread-Topic: [RFC][PATCH 0/2] Avoiding DWC3 transfer stalls/hangs when using adb over f_fs Thread-Index: AQHV0XMMcRoryuKxgUWuu9vXC1fi/6f4daqA///7ALCAAJiOAP//ee5Q Date: Thu, 23 Jan 2020 17:37:14 +0000 Message-ID: <02E7334B1630744CBDC55DA8586225837F9EE335@ORSMSX102.amr.corp.intel.com> References: <20200122222645.38805-1-john.stultz@linaro.org> <02E7334B1630744CBDC55DA8586225837F9EE280@ORSMSX102.amr.corp.intel.com> <87o8uu3wqd.fsf@kernel.org> In-Reply-To: <87o8uu3wqd.fsf@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>> Hey all, >>>> I wanted to send these out for comment and thoughts. >>>> >>>> Since ~4.20, when the functionfs gadget enabled scatter-gather >>>> support, we have seen problems with adb connections stalling and >>>> stopping to function on hardware with dwc3 usb controllers. >>>> Specifically, HiKey960, Dragonboard 845c, and Pixel3 devices. >>> >>> Any chance this: >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/commit/ >>> ?h=testing/next&id=f63333e8e4fd63d8d8ae83b89d2c38cf21d64801 >> This is a different issue. I have tried initializing num_sgs when debugging this adb stall problem, but it didn't help. > > So multiple folks have run through this problem, but not *one* has tracepoints collected from the issue? C'mon guys. Can someone, please, collect tracepoints so we can figure out what's actually going on? > > I'm pretty sure this should be solved at the DMA API level, just want to confirm. I have sent you the tracepoints long time ago. Also my analysis of the problem (BTW, I don't think the tracepoints helped much). It's basically a logic problem in function dwc3_gadget_ep_reclaim_trb_sg(). I can try dig into my old emails and resend, but that is a bit hard to find. -Fei