Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2517009rwl; Mon, 27 Mar 2023 01:01:52 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIbdOY+KaqL78pGkMNQVZG0+z4VKRHkub2H0UcDn+C8JmqSMz3rPhYfXUeIpZl5LgmgTzA X-Received: by 2002:aa7:d8ce:0:b0:4fd:2127:a8bc with SMTP id k14-20020aa7d8ce000000b004fd2127a8bcmr11795095eds.29.1679904112748; Mon, 27 Mar 2023 01:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679904112; cv=none; d=google.com; s=arc-20160816; b=SuWBBIWipSV7I/rhOSjI4dTNbi2N/RoSo54DAFl1c/5tujmiEwnd74jDJL8cXLTHXA UiYhKUXlH9Ti9AT4J54O1UK02T8rsRAcm0KLVQ5D1c/22nKljh7Ysw1eOz/lypuP64ee yaxocaMpdDc1FZeg0s8baN+AvX6+cDQ+g9y47Bh79tnAb+HJxfjZA95pg/rBWvcJTt+I uBY0YHpFOeffRUtS6rOBGzbD8FsdAh2oaVIiERrDoO9H1KWTY5jKFaOp62funPHxm9M1 1ZoqtwCNsQT04A+MAaiQ1aZPNsDHpJ7fvb9ZAJ1EgrrOlJ5tMGOpMu45Qfok8txmOmKQ fEqg== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=J2Cs/NxWhFucdAY3ed9OEwPr9DTjzVHjMmkGniSiHEQ=; b=vanyrBBHr/9EW2OT4txpXYdn/ifEm0CSFXaT2xQSS59DcHRkW4IJt49dIkdmixk6sw WvzLf/iecznru4GFdqr7+0UW2Bvee31rCp7Bgs7NybymrhStJkV8h5Za4q/zHNA/8VZH mZ5QY/jMi4n6heqBS82omnmenVx/2SOjYyeb5/8LorAT/7oCdHVZTdx70xrwp+A3Syrl egsaX6FemfZA2+nrD0QpFFpa5UFG6D8L4WwgrhHcCDcSryAhZatLA2Bv3k9EDI01J02h INPAfsZgjqW0kI9uhDxKX0v+/nFpOLB1xF/SybQqxZLrT4+lb/LPIqxBhQcMbXWgP/Ji pLLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jZnSQq0i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020aa7dad1000000b004a18f2ffb81si28452549eds.321.2023.03.27.01.01.27; Mon, 27 Mar 2023 01:01:52 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jZnSQq0i; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232904AbjC0Hvy (ORCPT + 99 others); Mon, 27 Mar 2023 03:51:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232827AbjC0Hvh (ORCPT ); Mon, 27 Mar 2023 03:51:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DFDA4EE4; Mon, 27 Mar 2023 00:51:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B646C61026; Mon, 27 Mar 2023 07:51:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDA1FC433D2; Mon, 27 Mar 2023 07:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679903490; bh=Yrfn9JBqEbsNPhoK5Plt1kgfkiwmSVtr9zSj8w0sHFU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jZnSQq0ikND1O8MiISARjlYQLf0kLdxPyonFUeMeSjAqOVXtAvEFPIXHYhUe3sZhy Jh+rc5OpvFrn6FNvIumQp2is/jibEcDefI2WiR/1dc+oSvGEjt+3xSF10Rkp2W2Cva mTFlL3cq7EFefBg87jfAZliLNynUkKJfdJ/V83nucWSN13WJWBD51fB+ok5534c4ZB OoHM+zVBuAcuJqsEsCoaMn7hB6XVVk3qEu6mNuCOOGZsOCE0cFd8x364HuTaopTLlA Q/iZhjKS8oOvmQsMAg1c30SdVU6tgO2jJspQ4Dba2yNVqJzpVGKo3YHZBtXvC/amRc 0NeXhtGBuUWtg== Message-ID: <06d76233-df72-b4c2-851a-c251dcd7fd23@kernel.org> Date: Mon, 27 Mar 2023 17:51:23 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH V3 7/7] arm64: dts: imx8mp: add interconnect for hsio blk ctrl Content-Language: en-US To: Alexander Stein , peng.fan@oss.nxp.com, linux-arm-kernel@lists.infradead.org Cc: Markus.Niebel@ew.tq-group.com, abailon@baylibre.com, abelvesa@kernel.org, aford173@gmail.com, devicetree@vger.kernel.org, djakov@kernel.org, festevam@gmail.com, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, l.stach@pengutronix.de, laurent.pinchart@ideasonboard.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, marex@denx.de, paul.elder@ideasonboard.com, peng.fan@nxp.com, robh+dt@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org, Greg Ungerer References: <20220703091451.1416264-8-peng.fan@oss.nxp.com> <20230327045037.593326-1-gerg@linux-m68k.org> <2678294.mvXUDI8C0e@steina-w> From: Greg Ungerer In-Reply-To: <2678294.mvXUDI8C0e@steina-w> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi Alexander, On 27/3/23 16:27, Alexander Stein wrote: > Hi Greg, > > Am Montag, 27. März 2023, 06:50:37 CEST schrieb Greg Ungerer: >> On 2/3/22 17:13, Peng Fan wrote: >>> From: Peng Fan >>> >>> Add interconnect property for hsio blk ctrl >>> >>> Signed-off-by: Peng Fan >>> --- >>> >> > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 5 +++++ >> > 1 file changed, 5 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi >>> b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index >>> 08bd57742294..9cceeeeb26be 100644 >>> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi >>> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi >>> @@ -1109,6 +1109,11 @@ hsio_blk_ctrl: blk-ctrl@32f10000 { >>> >>> <&pgc_hsiomix>, > <&pgc_pcie_phy>; >>> >>> power-domain-names = "bus", "usb", > "usb-phy1", >>> >>> "usb-phy2", > "pcie", "pcie-phy"; >>> >>> + interconnects = <&noc > IMX8MP_ICM_NOC_PCIE &noc IMX8MP_ICN_HSIO>, >>> + <&noc > IMX8MP_ICM_USB1 &noc IMX8MP_ICN_HSIO>, >>> + <&noc > IMX8MP_ICM_USB2 &noc IMX8MP_ICN_HSIO>, >>> + <&noc > IMX8MP_ICM_PCIE &noc IMX8MP_ICN_HSIO>; >>> + interconnect-names = "noc-pcie", > "usb1", "usb2", "pcie"; >>> >>> #power-domain-cells = <1>; >>> >>> }; >>> >>> }; >> >> This change completely breaks USB for me on a new iMX8mp platform I am >> working with. Before this change normal USB probe looks good: >> >> xhci-hcd xhci-hcd.0.auto: xHCI Host Controller >> xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 >> xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6d hci version 0x110 quirks >> 0x0000000000010010 xhci-hcd xhci-hcd.0.auto: irq 206, io mem 0x38100000 >> xhci-hcd xhci-hcd.0.auto: xHCI Host Controller >> xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 >> xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed >> usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, >> bcdDevice= 6.03 usb usb1: New USB device strings: Mfr=3, Product=2, >> SerialNumber=1 usb usb1: Product: xHCI Host Controller >> usb usb1: Manufacturer: Linux 6.3.0-rc4-dirty xhci-hcd >> .... >> >> But after this commit is applied, no USB probe messages at all. >> >> USB worked fine in 6.0 for me, but when I switched up to 6.1 USB was broken, >> I bisected to this as being the offending commit. This is still broken for >> me in todays 6.3-rc4. If I revert this change (and only this change) USB >> works again. >> >> Any thoughts on why this breaks USB? > > Maybe you are missing CONFIG_INTERCONNECT_IMX8MP? No, it is enabled. From my config: CONFIG_INTERCONNECT=y CONFIG_INTERCONNECT_IMX=y # CONFIG_INTERCONNECT_IMX8MM is not set # CONFIG_INTERCONNECT_IMX8MN is not set # CONFIG_INTERCONNECT_IMX8MQ is not set CONFIG_INTERCONNECT_IMX8MP=y Regards Greg