Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6185972yba; Tue, 14 May 2019 03:18:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj5/EDwSfK3h7t7pwd2y2JCyZQ7mJ4/iIDqTq7bv7kTvbtqylYbwtRVIUCkqyEyR2EvlMQ X-Received: by 2002:a65:4c07:: with SMTP id u7mr35899787pgq.93.1557829088251; Tue, 14 May 2019 03:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557829088; cv=none; d=google.com; s=arc-20160816; b=w5U3Otg+IvRyrXJCRvp9IApvHgebrxdB6yL8uv9xq+1731Wkbx0z1V5joXZIthmXPD oKfOk/6QWdMahdhoIdj7vaFV/DKK+++FIZ2yJB6yQIpqQS0DEUNE+TreeOVohHuxeH8/ Rj1NWtwRiuJs8QH3V6eaM8JLITDOkwZ3IRoibvugRTCHRHLxAlSU0nRe/BpMFWptWBhK 5VV0sBEvLqVcd9GkCTTyky/Snlpt8TGPmqlLH6Zrzdd8/29SNovxA7ljS80tLKfRtoEo m1wcN72I6hKX8v9RrQRMIofo4EBhnKhlr7iLholMudLHqCN1vJETYrTyFNNGexaYyobY 27vA== 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:from:references:cc:to:subject; bh=k7iJcKYnC3Gv05zoevIswguYGl5nqBoer0CgPeBzasI=; b=Re0aaJKf0+S5VNSb3E288Ss+ZlchRDeJpjvYqB9kosC7RdHaDlq0DwqMAV6E3JBhza DNr07M7BYaH1md7XnHvBs8mIasIwMdqtvO2iNg4oObvZ7J5MGQuaFTrAVJq+E1fGF5+u zoarKvCfEQ3mLT9WnVuCmOMP2S2KqEi3Q55WxHRbjOSdSTwFF1AUnD+V5fx70TNqhxDF EgUbDbM+i0LHu5e6EDO+5dE1QoMyZw01Jetp3eH5dnujr5lntt4ifv6ApPawyTxto6l1 p0Y0lrk4REgVW+nzYfetIOZfpR0ve+6z+3Cv5MviqPGIkTwqaYrxqbSMLk6HOJRQ3EHw Xc0w== 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 u190si19996898pgc.282.2019.05.14.03.17.53; Tue, 14 May 2019 03:18:08 -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 S1726820AbfENKO7 (ORCPT + 99 others); Tue, 14 May 2019 06:14:59 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50834 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbfENKOh (ORCPT ); Tue, 14 May 2019 06:14:37 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 2338D283123 Subject: Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers To: John Stultz Cc: Felipe Balbi , "Yang, Fei" , Bjorn Andersson , Chen Yu , lkml , Linux USB List , Amit Pundir , Marek Szyprowski , "kernel@collabora.com" References: <7caebeb2-ea96-2276-3078-1e53f09ce227@collabora.com> <7ec57c29-d1ab-dc4c-755d-a6009b9132b5@collabora.com> From: Andrzej Pietrasiewicz Message-ID: <36620156-d119-b1b2-989e-0c13b783296e@collabora.com> Date: Tue, 14 May 2019 12:14:32 +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, W dniu 13.05.2019 o 20:09, John Stultz pisze: > On Mon, May 13, 2019 at 7:08 AM Andrzej Pietrasiewicz > wrote: >> >> Do you get "functionfs read size 512 > requested size 24, splitting >> request into multiple reads" message when problems happen? > > Unfortunately no. Actually that's a fortunate outcome :) > >> Is there anything in the kernel log? > > Nope. Just the transfers stall/hang and further attempts at adb > connections fail until the USB cable is unplugged and replugged. > > >> Is there a way to try your adb without building and running the >> whole Android? > > Maybe? I have heard of folks doing it in the past, though I don't > really know a quick path to get there. > > Is there anything else I can try for you? Have you tried compiling FunctionFS with debugging enabled? You do so bu uncommenting: /* #define DEBUG */ /* #define VERBOSE_DEBUG */ at the beginning of drivers/usb/gadget/function/f_fs.c Is there anything suspicious in the kernel log when you run it then? Remote debugging through this mailing list will incur enormous round trip time ;) The most valuable help would be helping in reproducing the problem you encounter. One question that comes to my mind is this: Does the USB transmission stall (e.g. endpoint stall) or not? In other words, is adb connection broken because USB stops transmitting anything, or because the data is transmitted but its integrity is broken during transmission and that causes adb/adbd confusion which results in stopping their operation? Does anything keep happening on FunctionFS when adb connection is broken? Andrzej