Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2476904pxb; Tue, 21 Sep 2021 00:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN//d1r0tITETGOgPJOINcPZ5Reml26WE+iLK2X0RjgAm/4l6lJIY/vBlnm0YQQVhXuYHB X-Received: by 2002:a05:6e02:ea2:: with SMTP id u2mr20880094ilj.133.1632207989927; Tue, 21 Sep 2021 00:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632207989; cv=none; d=google.com; s=arc-20160816; b=NYCUjcynYSzi6C0KTwMEYCtYg8eKZNwOaEZAWAbL0mn5MNVNJgZjTEbOMoyRZ4G83X Ur36fFy+g12rge7lPlvlLZ0xQGmF7oywN6N+7O6Rz66MCbJymC5nZCXXbtNZCYnIn5f4 cPjo179OauBA4jGyEM2QiwWrsjraajt4HhCExHaiGnNM2Pw3bqzweLBoKc3VKNknHQeW ut8XSeZq4kKTDTFV+FXZu1vfNJ5XDPC+zXIKCu5rMzgorHMOEJ0W3dpoFKj4fy7nl9Ud TeYPiFgVnKtFE9bKLk8Qstktr2ljLFF+RlfF5lY8WtUpDoZ9Qp8g/EgDqgLZtINq/ZYe 3pRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SsmL0WKAVxLfgLjksTlJVpFN2L2RjVwfzK4075Lqx0s=; b=vAzn81GZ5WfDC+geH90Ez97vsUTklG+hYtHs0LHcWMXNFOvjKRHcU/DqkvesdowHue M8WWPbtt31Gt5c8xRJRyV+DKYebOqUM4ZnLaKM1EbKlaq0SshLYFLPfK8tHA19PWugDi weOB9+GsZJx3nT7gmEoH2R1Ss1WdNERF/f13b2UNMqZKMdbLWqmfYZvDn2BI6MIdFEQe KxMarw9kXmYyTFBwR15Doj4wSORYsb2qpoQQTlWhT3xUKQArpQ/EkWSzGGl7ewACnAhY 4SudpIovhiawqF+9SqyByExYZ8wCd5Fv5pBhZA/tViZSKRRqBy2D8CN5KrHcMfW7SUhZ d5aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mi7fqk4x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si18203782jad.86.2021.09.21.00.06.18; Tue, 21 Sep 2021 00:06:29 -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=@linaro.org header.s=google header.b=mi7fqk4x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbhIUHGg (ORCPT + 99 others); Tue, 21 Sep 2021 03:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhIUHGf (ORCPT ); Tue, 21 Sep 2021 03:06:35 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA742C061574 for ; Tue, 21 Sep 2021 00:05:07 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id 134so2029035iou.12 for ; Tue, 21 Sep 2021 00:05:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SsmL0WKAVxLfgLjksTlJVpFN2L2RjVwfzK4075Lqx0s=; b=mi7fqk4xiOvToJcuULnXbnWiI2KzK8En+qASDWqZv4B9alZD447JcHs4k3jPaQKXfF 2SVWmOoyPtRy3Xxj+roWaW+D5GLfDNqh0RmZEprVUtaHGDUYdHD2/96leSue802RNtEP pBIR81JNg3Gu1eVuWvH+D82ujl7v+ZtY46H7/4u0x/QYTsu5EdjAf+mVJ1nnrNolhVXP r65SzuiwmFnilHSQfxmQ31qfb+atSN3EPuItgY35XkgL49P8VGDHOqlziSDH6yGzuz+Y v3wn4dDtCka97QAnD/vQm43fPbU/QTdyMVfQXn+NE8FHd8cdKVRtoRBYuFjK6BvWxJN9 4m+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SsmL0WKAVxLfgLjksTlJVpFN2L2RjVwfzK4075Lqx0s=; b=E+gVGlDHZAfeKZIX5Wm32HAlJlF/Tu/5WSeUo6AgsbZbZKNcyPvZ4gHQ7KHDVtoLn+ 3vlR1ihgLWMqcZBDOKG8BxMZ/JAdX8kELmDOYHriSW0q8DitzQVfywVV7PNyKzWPWubt 50MLntc/Dm+H4R2ZZf8AUg7iKXM+jXaB5Rqp5tsWn2TKQmDJlYCI1UfLaaX/HR0lXEsT oR5RU3gxUbi0lul5Aucdmm4GLakYUva3nEcBDv3sqj4gVwL54tRyf2x48wNGS7tJKZlH OldOel0+nLePKU7eTGP3l7VUkLtYjtc5Dawcmg1gNTawIYrljQi2lXl0LJK/G7/bgQxT q/Aw== X-Gm-Message-State: AOAM533Gz5GAfV8WUlk5XwxkmQaH7bdMT7qIZp1VAXH1qH0Ua1Z5qwkw YC2BXGtdzhXOp3iXSwH50THrlIJ5pCB/WFL38SGO2g== X-Received: by 2002:a5e:d513:: with SMTP id e19mr21113122iom.82.1632207907221; Tue, 21 Sep 2021 00:05:07 -0700 (PDT) MIME-Version: 1.0 References: <64a2a428-8bb1-0078-2403-1ca8e28cf4b1@codeaurora.org> In-Reply-To: <64a2a428-8bb1-0078-2403-1ca8e28cf4b1@codeaurora.org> From: Amit Pundir Date: Tue, 21 Sep 2021 12:34:31 +0530 Message-ID: Subject: Re: dwc3-qcom: tx-fifo-resize regression on Poco F1 (sdm845) with v5.15-rc1 To: Wesley Cheng 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wesley, On Tue, 21 Sept 2021 at 02:44, Wesley Cheng wrote: > > 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? It is a stock phone with no UART access, so I can't get early crash logs unless I'm booted up to adb shell. I can try getting some info using pstore-ramoops but warm reset support for sdm845 was not upstreamed when I tried using that the last time. > > > 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? Yes reverting that change resolves the reboot loop issue. Speaking of which, since no other platform seem to be running into this issue and "tx-fifo-max-num" property is apparently not at fault either, is it reasonable to skip adding "tx-fifo-resize" property for PocoF1 using of_machine_is_compatible("xiaomi,beryllium") as a workaround? > > > 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. Ack. Regards, Amit Pundir > > Thanks > Wesley Cheng > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project