Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4458707yba; Tue, 7 May 2019 19:20:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqycH6wmyQU37uU0Fh2WoqVqQCcA54IXkibxT84mDVfTqune9e96EdTqvtvFe2ENPRFKEp97 X-Received: by 2002:a62:6f87:: with SMTP id k129mr29884591pfc.53.1557282001981; Tue, 07 May 2019 19:20:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557282001; cv=none; d=google.com; s=arc-20160816; b=fjVpwGqAAtGA2F9KdfZyJCy+ggUXDaL8V3kU1EPtdM7aU68iYz9pkyd78GVcWrHbVi ebLnfJ4GqBTsepwF38Njz8VfJWjGnS6QWrQLOmQuD0gn7pO6zQEnOmz1Vc+AiFT9gTVx uk2CNmhO6Ajq/Uvbk2qKbMhF0N80Il0xEFFE8O/p57gDFQFABkqIyAr7QeaeyNpIjNkm QYojwDTMrG1vSfhmKm3+h6uFb4qHPLUHK5hRY89IN7FEKmuxGzTUkL1rNRSsx15TDCwr 9nBTrmo0qBG0BGkFb37y8Wxr9sg/wz2MyVm0DeLPMQA9xeLZzbpJdgRIpxm59AvidEtY KfCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=2VQYmcOhfKzkM0UugtZ6mKBvbFSRbfp3capv5V8nMNw=; b=RrGmX1brDIui/n1Pq7dtPMWBgWev4CBdv+s8qjEL2D6mXHEiSO+9FxVsdD26v3yJYc lrDvIslq5E4oovcg4RNEe5cbe9xdKCBovu9fx5gU6u5D7yGvuBQPNLFFldZEl8o5ZyIa o4O5a8adDukaUbvdyVPfQvZxowPgym+/98vjHOeMFzXKlSx8bc59lkiXT1Zw6Uompuzv fQFC4YXHgmQTEpBliyrsfMzSeoN5dwtJq5/sy0vieRrktuBSwU3k4gXeq5IS3DVdX9zh YrtHJOvSg56ualHR6tSgSD2DTh5aX3TkATxHm0sTFPKYSSAeC1URYNWYl0uiYJiTq1jt gl6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xzb1Bg7B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si13444996pgt.474.2019.05.07.19.19.44; Tue, 07 May 2019 19:20:01 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=Xzb1Bg7B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbfEHCSv (ORCPT + 99 others); Tue, 7 May 2019 22:18:51 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34099 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbfEHCSu (ORCPT ); Tue, 7 May 2019 22:18:50 -0400 Received: by mail-wm1-f65.google.com with SMTP id m20so820367wmg.1 for ; Tue, 07 May 2019 19:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=2VQYmcOhfKzkM0UugtZ6mKBvbFSRbfp3capv5V8nMNw=; b=Xzb1Bg7BQV7IlwuVho+Y2FAzS7+4V/AblssRM+CZs1Q6GtbB2f3dDtLYt6344mfRrr 1lY7KOT8XsEDplUFVBKcgJ/GOBz1C6oWAN33mepUNA4gBj1gEcjBqelBA4coWfwv55RQ CTxT1ixJianc5C/PwzTAxgf3ykxLPTzmpS6ihRcJ0Kenf+B3tU3qV3RzuBQ4BisncGRK yexLD40nG3Db8ePlVgikd1XuYCVmvRVu8PY/eRFyY8u5cWowYuOhLf5ZHn4mk151yXho D7YyiadnfxqSb1UMIxkeH7MQ906jiqrjuMj2noJ/NjBIDq+P/LBOXMqY6ik3cwAWpdAs dH9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=2VQYmcOhfKzkM0UugtZ6mKBvbFSRbfp3capv5V8nMNw=; b=kK7lsWBmAnqIx0e/sZmzET1902URaBXO0UKHxwKJkcWEwAVLVLONSnvjM3SHG9IOUb AmqyNL/54hYtVdf18mO5xfnoL7OOZqU7jILofZszhaZURualVeOR6g+FYkd6E2sCZ3eW 6wuvDE7a/wCfFOVCdohppJ20NJktVXnhvr2RcyWys7+CnIB+YrcYccn+/KGr6Ar69BCO PsJx4hTws6o4tyrT2uCAuQ+4ouXiji4ShTB72j9Kvzr9LchtD9CSCfombJFlUQUBtPYD mwErY76GNhGLIRx5VkfG2ihQtkaYKou6xW+qPOBVZgdq8R2/IwEM6JnAmx7oQD/2wbJ7 jxKQ== X-Gm-Message-State: APjAAAW3X+RO2RvT0AS0dC+CuHJT/3e3Dtx+AY6lLoal7mBqFJymnIUI HHF06QDx656/kwze4gFNKp98eVyNv2FruXSVxuoIqw== X-Received: by 2002:a1c:a751:: with SMTP id q78mr929450wme.64.1557281928986; Tue, 07 May 2019 19:18:48 -0700 (PDT) MIME-Version: 1.0 From: John Stultz Date: Tue, 7 May 2019 19:18:36 -0700 Message-ID: Subject: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers To: Felipe Balbi , Andrzej Pietrasiewicz Cc: "Yang, Fei" , Bjorn Andersson , Chen Yu , lkml , Linux USB List , Amit Pundir Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 772a7a724f69 ("usb: gadget: f_fs: Allow scatter-gather buffers"), I've been seeing trouble with adb transfers in Android on HiKey960, HiKey and now Dragonboard 845c. Sometimes things crash, but often the transfers just stop w/o any obvious error messages. Initially I thought it was an issue with the HiKey960 dwc3 usb patches being upstreamed, and was using the following hack workaround: https://git.linaro.org/people/john.stultz/android-dev.git/commit/?h=dev/hikey960-5.1&id=dcdadaaec9db7a7b78ea9b838dd1453359a2f388 Then dwc2 added sg support, and I ended up having to revert it to get by on HiKey: https://git.linaro.org/people/john.stultz/android-dev.git/commit/?h=dev/hikey-5.1&id=6e91b4c7bd1e94bdd835263403c53e85a677b848 (See thread here: https://lkml.org/lkml/2019/3/8/765) And now I've reproduced the same issue (with the same dwc3 workaround) on the already upstream code for Dragonboard 845c. Fei Yang has also reached out and mentioned he was seeing similar problems with the f_fs sg support. Andrzej: Do you have any ideas or suggestions on this? I'm happy to test or run any debug patches, if it would help narrow the issue down. If not, should we consider reverting the f_fs sg support? thanks -john