Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2275416rwl; Fri, 6 Jan 2023 04:27:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXv6kZNIUuReVQnqs8S5QFEMLBPXRwqQZglA7aozgy0HaWXxhmt7tKKmKzNxvgaHghtXWpD3 X-Received: by 2002:a17:906:2349:b0:7c1:65f7:18d8 with SMTP id m9-20020a170906234900b007c165f718d8mr44488578eja.60.1673008023412; Fri, 06 Jan 2023 04:27:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673008023; cv=none; d=google.com; s=arc-20160816; b=AvH/thnQKE1gk1aCbPHtNhapSKw/cQyQBINqg2ZEt9a9HCGfgf78u2qZtaF0lyadmR 5FJi80/7l1CDWY65gdpozFHLMnMmZ5BspWGCQ43F8Ce0BfjIqwB+4MBoil1/NTHXAaO9 xErkimxYYfmVHSEOZKDqk4KsQXkelyJW4Gr5DFy3JN20IEKn8NXSa7fCDOSgRkCrd5eJ +EppzlGMyOnBipZUO58zcqGaAYkH7VgPdQUmcYT4tROMRqz6ovceUAHehjAe0yEmv44k LJMpZkn2GBFaXGUoleAL9Nn1URAD4G5NWTlfkDT8kmV9yRksQaBKfYJhDe2a6D07FaPd FE0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=uwuQylzZOiP2Zwrr5mgUiVqP73+AyValzB+8bHlfOqY=; b=LnOyIjsOPn/EOlDbhUBHV9CxOv94OkBAshr8/gRQmRoGyecp3DzE9zASdU2tVPduju CAWp609HJXYPWpdSlxvZt3Za2wjqMl19jKrzOyYYsXnW83/DIMICuFzwoYl1vs+ZtuP0 2t4rKDkgCP38eSyw9s1luOvxxp1l9XxE4za+sFsDJrnG0pADS1iJwg+irgZJMtjX5ygk shBmGiSbEY2TZ+IQNbV9QIIW4AYHrUdEFYd6E00PU5zRR2AbXReOXzPuJUvhNPMXkTww 1X5zajLKKfpqurL6u40Hv/pWKSuEjB6cSgI0CkPQJ412zeFx/CSKPluV2sl+Aayyq4ji cFdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae1-20020a17090725c100b008432fa22567si1138566ejc.649.2023.01.06.04.26.48; Fri, 06 Jan 2023 04:27:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbjAFMFk (ORCPT + 54 others); Fri, 6 Jan 2023 07:05:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjAFMFj (ORCPT ); Fri, 6 Jan 2023 07:05:39 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E3069B13 for ; Fri, 6 Jan 2023 04:05:37 -0800 (PST) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1pDlTc-0001Yv-13; Fri, 06 Jan 2023 13:05:36 +0100 Message-ID: Date: Fri, 6 Jan 2023 13:05:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: commit 3497b9a5 (usb: dwc3: add power down scale setting) breaks imx8mp Content-Language: en-US, de-DE To: Rasmus Villemoes , Greg Kroah-Hartman , Li Jun Cc: LKML , "regressions@lists.linux.dev" References: <5ae757aa-5b0e-be81-e87c-134e2ba5205d@prevas.dk> From: "Linux kernel regression tracking (#adding)" Reply-To: Thorsten Leemhuis In-Reply-To: <5ae757aa-5b0e-be81-e87c-134e2ba5205d@prevas.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1673006737;ac45e655; X-HE-SMSGID: 1pDlTc-0001Yv-13 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; all text you find below is based on a few templates paragraphs you might have encountered already already in similar form. See link in footer if these mails annoy you.] On 06.01.23 12:54, Rasmus Villemoes wrote: > We have an imx8mp board with a lan7801 usb ethernet chip hardwired on > the PCB, which is used as the host port for a Microchip KSZ9567 switch. > > While trying to update the kernel to 6.1.y, I found something quite > weird: When the switch was being probed for the second time (the first > ends with a standard -EPROBE_DEFER), the board would spontaneously reset. > > Now when I disable the switch driver in .config just to see how far I > could otherwise get, the lan7801 device didn't appear until about 47 > seconds after boot. Bisecting unambiguously points at 3497b9a5, and > digging in, it's pretty obvious why that is bogus at least for imx8mp. > > The .dtsi file lists IMX8MP_CLK_USB_ROOT as the "suspend" clk, and > clk_get_rate() of that returns 500000000 ; divided by 16000 that's > 31250, which certainly doesn't fit in the 13-bit field GCTL_PWRDNSCALE. > But I assume the .dtsi file is wrong, because imx8mq.dtsi has > 74bd5951dd3 (arm64: dts: imx8mq: correct usb controller clocks), and it > seems likely from the commit log of 3497b9a5 that it was at least tested > on imx8mq. > > Now I have no idea if the right clock for imx8mp is also some 32kHz clk, > but it would certainly make sense; unlike what the reference manual > claims, it seems that the reset value of the GCTL register is > 0x00112004, amounting to a pwrdwnscale value of 0x00100000>>19 == 2 == > 32kHz/16kHz, and that could explain why things worked just fine without > 3497b9a5. > > Li Jun, please either revert 3497b9a5 or figure out if imx8mp.dtsi is > broken and needs a fix similar to 74bd5951dd3. Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced 3497b9a5c8c #regzbot title usb: dwc3: imx8mp broken #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Reminder for developers: When fixing the issue, add 'Link:' tags pointing to the report (see page linked in footer for details). Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.