Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2357530pxb; Mon, 20 Sep 2021 20:00:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz2zriYu75Ztm1HdSFvop1/87gg6XTJwHcZRVaLsekgsr9FVA2118GPQf0LvBNVg8yDFji X-Received: by 2002:a05:6402:134d:: with SMTP id y13mr32022009edw.264.1632193233205; Mon, 20 Sep 2021 20:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632193233; cv=none; d=google.com; s=arc-20160816; b=Wk97qPW6wUiL3Np5BnpHj2ExZQrokiOpOxTK331SBX4PpF+3rIlpopeHxnQoYsU9M6 EUShK1ggGLC9k8VkSvhoxG27E3aawP7txZz/ypdd77CgPDsInlMD+1w40SOgHY1asWqd 19OQcRPPy+H1zDVYT5CCr3hzjlbGXBHVVGins6YksZtATkKNMkkm35IlIP/YlYJFzniv gXsX38QWAk9jNVG8bLtAuRPRrBD2UMjwz8vVqwRk5kzrjnNVcTBSDtXtosAmwQy7416y 7Jtmlhav3JFrMGxBX4SBQnYMDMDgpf/Jm2/MQ+floy3BpbGD9avB4y9BrBp5bhlW/x/p 8qZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=4ijXYlmqoMPuqo2n4/kMk/32yQvABM55JAadYGLqsTw=; b=G82huPdvEbsMk3D34o8DPkcnev3GARornEGyynGP3ssMfla45BilptvYpdB874cYFP BlZPsG7ygatg4Kw4B67ZvcyH+/sd8gJYpaZDwfSwYtP0mh9IJl9F2d4pnh4tRFmxdntK oLfochU4t/BaL7o32LW5ip0UIRVXL5/1Q7oS9/6yfKFcEd/WCfmK1LfggM2wJRdGYEwt Tpx6ExWVIeDqs1C2B/aXwxJP+gj/SKe8iySJY0eWcfCrs+8MhnBbpjQ/cpW7UqMUFcUD ZxjdD1yn2KfNBpB1mNOPArv4monwYFc+QuC4ntJIJ4Vox7x0kvdSm+VG+L6YCKzjhX6u aRPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="S8We6wO/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si3888410ejk.388.2021.09.20.20.00.09; Mon, 20 Sep 2021 20:00:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="S8We6wO/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237427AbhITVRZ (ORCPT + 99 others); Mon, 20 Sep 2021 17:17:25 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:27852 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235204AbhITVPZ (ORCPT ); Mon, 20 Sep 2021 17:15:25 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632172438; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=4ijXYlmqoMPuqo2n4/kMk/32yQvABM55JAadYGLqsTw=; b=S8We6wO/2PVGYxxzMyPWcX3DhcnhZvhbmwpjEgRXE4clYguYWdHaicaHiRvBVzvbQYQITRSD j+jQbj76SUICXzrujoKaWGBtJR2iOpJGDciL6DxgEgm7NyQ6pqKj38HPz2Jl8t+cMgDDUGs6 qH70yjCSnrrBPCaMjQE8GGNR4JY= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 6148f99565c3cc8c63e8b31b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 20 Sep 2021 21:13:57 GMT Sender: wcheng=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 07FD0C43460; Mon, 20 Sep 2021 21:13:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.26] (075-140-094-099.biz.spectrum.com [75.140.94.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wcheng) by smtp.codeaurora.org (Postfix) with ESMTPSA id 835BAC43460; Mon, 20 Sep 2021 21:13:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 835BAC43460 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Subject: Re: dwc3-qcom: tx-fifo-resize regression on Poco F1 (sdm845) with v5.15-rc1 To: Amit Pundir Cc: Felipe Balbi , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Rob Herring , Jack Pham , Thinh Nguyen , John Stultz , linux-usb@vger.kernel.org, lkml , linux-arm-msm , dt References: From: Wesley Cheng Message-ID: <64a2a428-8bb1-0078-2403-1ca8e28cf4b1@codeaurora.org> Date: Mon, 20 Sep 2021 14:13:54 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amit, On 9/20/2021 1:45 PM, Amit Pundir wrote: > Hi Wesley, All, > > I see a reboot loop on Xiaomi Pocophone F1 (sdm845) with TX FIFO > resize patches which landed in v5.15-rc1. Upstream commit cefdd52fa045 > "usb: dwc3: dwc3-qcom: Enable tx-fifo-resize property by default" to > be specific, which switched on this feature by default. > > At times the phone crashes into the fastboot mode after the reboot > loop, but mostly end up booting to UI after a while. This is what it > looks like https://people.linaro.org/~amit.pundir/beryllium-userdebug/PXL_20210920_162749483.mp4. > I believe Android will attempt a number of bootup sequences and if it fails, it falls back to fastboot mode. Are there any available logs you might be able to collect to see where the issue is? > PocoF1 does support TX fifo resizing as I can see that in the > downstream dts. So maybe it is the tx-fifo-max-num which need to be > adjusted for the device? I couldn't find the tx-fifo-max-num > equivalent in the downstream tree though > https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/dipper-q-oss/ > I assume that you've already confirmed reverting that change resolves the constant reboots? > Curious if you had any ideas what might be going wrong? For now I'll > keep digging around tx-fifo-max-num, but I figured I'd ask just in > case it's obvious to you. > The tx-fifo-max-num parameter should still be set to 6 for SDM845, which would be the same for more recent targets as well. Thanks Wesley Cheng -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project