Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp861812yba; Thu, 9 May 2019 07:06:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzcMbZ5DY+fDMUEqLRUwbZ8zkhvIKJtEm0/5wp5A+MSfaqQgEN1EgYEbpl0Ssg8nuJ7otO X-Received: by 2002:aa7:8392:: with SMTP id u18mr5554178pfm.217.1557410812697; Thu, 09 May 2019 07:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557410812; cv=none; d=google.com; s=arc-20160816; b=QegTyG6SNcXlmjguBQtc02xUWBLOML37lxEAHFDpAj1SkUaHyqyGVEdzT+IpzXGGjv C+UoEbqefL871mygndoimv9inBdNCITrcECkuOOdHzpvdm6IpqcB8BsXVsRTapA0h0pA 00QczFTYlljcLbyXgSRdbJNNLs94OTQ7vK8WrKnqkFRZXQMa/o7GSJThDNu/gGjM+NKZ wZUiGcd9mOaT/wUfCse8je8wKnY93AS+G+aTzgGljkCJ4jrZvMBqnjqbbJp3P9ro4hy3 LEeBNzW/+be1nXIFw9BnZ0ml6zS3Nwau3hgEhQFvj0/sjdJjJmtcsR0ByMCdc80jgcoj a/BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=xA3lr1PWe9a12d3+4oKRZNoEhp8ZLloTVvzxi2dpSeM=; b=bAZrCYfvhmx1HNucxqmXgsRPaP2NZjrkPQ3Rm1iV6ngde5iRlcFQM6M1EX3592REeg SO3CWlTA5rsS/zPuW8wkWn9QbF3GKTOk6OOP38ZmdxZrpRoFfvzSJiXRplxInysvV9+i Z9qqpxZ4cn/KyPMWCct7n+K8YiSPohQ+1X/LVueRJosLmqBd7Bld7tn599emLQAQY08E oTuOgkxiY9KpOMyQBytgNOszd4i6FG/Ead0kdZxu7K5HS8SMttJSIfOR7THessr/gEsO 75zwGwGnG5Z+88cb6mtRrxhWXL4so7XBOlAcDVFvwYQPUras9lmK88D73mNqXantlx42 54Gw== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si2645837plt.133.2019.05.09.07.06.20; Thu, 09 May 2019 07:06:52 -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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbfEIOCt (ORCPT + 99 others); Thu, 9 May 2019 10:02:49 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54690 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbfEIOCt (ORCPT ); Thu, 9 May 2019 10:02:49 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 0F2BF260253 From: Andrzej Pietrasiewicz Subject: Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers To: John Stultz , Felipe Balbi Cc: "Yang, Fei" , Bjorn Andersson , Chen Yu , lkml , Linux USB List , Amit Pundir , Marek Szyprowski , "kernel@collabora.com" References: Message-ID: <7caebeb2-ea96-2276-3078-1e53f09ce227@collabora.com> Date: Thu, 9 May 2019 16:02:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, W dniu 08.05.2019 o 04:18, John Stultz pisze: > 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) So the thread says there are problems at boot, but here you mention about adb transfers, which must obviously be happening after the board has booted. Do you experience problems at boot or not? If a crash happens, what is in the log? Andrzej