Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4413156rwl; Tue, 28 Mar 2023 06:53:28 -0700 (PDT) X-Google-Smtp-Source: AKy350bEBIgsphMkZV8Cc3ezqskY+PyeQF+9ehHdyICZoNxD1JawIxVHf6YFu7e2mAbL1s+pcTwY X-Received: by 2002:a05:6402:1a:b0:4fc:9329:bd0c with SMTP id d26-20020a056402001a00b004fc9329bd0cmr14375617edu.12.1680011608347; Tue, 28 Mar 2023 06:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011608; cv=none; d=google.com; s=arc-20160816; b=LOe8X9Ww9JitIyfBxwlIgbgIJCI1dX9MeV0Y5gyfrtluGulgb9ME1Kjl6xtyjIcXvd 6HZO+qOrYqeHo6Sn72D48IyAycU7N1LRES4Uyir+aaPPQlUyULiULRqWbcGXjmY1SUy8 yb2DGCXAoCSsApKw8C4+9Q+4SkJLePoR8uILrSkBoXPJZMl1/dvVMwz7dhV6PFVpbswP K+IL1L9k3muQ5HaQCwIPqNQxZ6QYHxtsXAZJPcr8U0bJDXBNNgHazJ1PZPu0LCr20n8B 98Uc+oMJJZ1WTN1/0ilqcTC/48F5tRNH52FC6RPDYJw3jmNtgvXSW6i01pH1CiHeR4lw O/zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RD48C6Ds77GqOni0BD+4uLzJGA3IeIoeXHPAiKnljCo=; b=EdEOoJiltY4onMNNlRAm7JamshkgG36yy2S74nU8kN2n+eDibPSHSQ5+1Cc/KHAIMT P7/OPWQ9ozPYQpz5Jekc98wrPfgwyGjR2gz6tb4leHdd/iiucQIV9rFwKS4htIENxa2I iJlMB5FL8/T4kB6wLfNN0GcpjqmcHMg+poVD5Q+lt9C0EOXRzD56+DTLcSvJ5AUYdh8e K7RTWi4ZrdSBTUzJjUDHkI2RkPWsp4MPopuxM00DBVj7unV5xNlR7F2jV0yaQ6P6d4wg SSZ++Wvylhbo2DKpSeJYPmr5QTa0BtY0w8JpuLNTUIA5QWm7nPU1rliASXMq6ajYwvwI +pbQ== 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 d10-20020aa7ce0a000000b004fd3ad97e48si29459515edv.55.2023.03.28.06.53.03; Tue, 28 Mar 2023 06:53:28 -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; 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 S231779AbjC1NvS (ORCPT + 99 others); Tue, 28 Mar 2023 09:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231435AbjC1NvN (ORCPT ); Tue, 28 Mar 2023 09:51:13 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44BF140EE for ; Tue, 28 Mar 2023 06:51:12 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ph9j4-0006rX-Iq; Tue, 28 Mar 2023 15:51:02 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ph9j2-0002cQ-JR; Tue, 28 Mar 2023 15:51:00 +0200 Date: Tue, 28 Mar 2023 15:51:00 +0200 From: Marco Felsch To: Greg Ungerer Cc: peng.fan@nxp.com, Alexander Stein , abailon@baylibre.com, krzysztof.kozlowski+dt@linaro.org, festevam@gmail.com, abelvesa@kernel.org, marex@denx.de, Markus.Niebel@ew.tq-group.com, Ahmad Fatoum , paul.elder@ideasonboard.com, gerg@kernel.org, linux-imx@nxp.com, devicetree@vger.kernel.org, "Peng Fan (OSS)" , linux-pm@vger.kernel.org, s.hauer@pengutronix.de, robh+dt@kernel.org, aford173@gmail.com, "linux-arm-kernel@lists.infradead.org" , laurent.pinchart@ideasonboard.com, linux-kernel@vger.kernel.org, kernel@pengutronix.de, djakov@kernel.org, shawnguo@kernel.org, l.stach@pengutronix.de Subject: Re: [PATCH V3 7/7] arm64: dts: imx8mp: add interconnect for hsio blk ctrl Message-ID: <20230328135100.rbmnfelphe7juhxo@pengutronix.de> References: <20220703091451.1416264-8-peng.fan@oss.nxp.com> <20230327045037.593326-1-gerg@linux-m68k.org> <2678294.mvXUDI8C0e@steina-w> <20230328073302.jj64u5hvdpc6axa5@pengutronix.de> <426b4776-104c-cb47-c8cc-c26515fcb6e3@linux-m68k.org> <20230328134201.yaxrdtetjygkgkmz@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230328134201.yaxrdtetjygkgkmz@pengutronix.de> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, 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 On 23-03-28, Marco Felsch wrote: > Hi Greg, > > On 23-03-28, Greg Ungerer wrote: > > Hi Marco, > > > > On 28/3/23 17:33, Marco Felsch wrote: > > > Hi Greg, > > > > > > On 23-03-27, Greg Ungerer wrote: > > > > Hi Ahmad, > > > > > > > > On 27/3/23 17:16, Ahmad Fatoum wrote: > > > > > On 27.03.23 08:27, Alexander Stein wrote: > > > > > > Am Montag, 27. M?rz 2023, 06:50:37 CEST schrieb Greg Ungerer: > > > > > > > Any thoughts on why this breaks USB? > > > > > > > > > > > > Maybe you are missing CONFIG_INTERCONNECT_IMX8MP? > > > > > > > > > > And if that's the case, did you check /sys/kernel/debug/devices_deferred > > > > > to see if there was any indication that this is the reason? > > > > > > > > Yeah, it does: > > > > > > > > # cat /sys/kernel/debug/devices_deferred > > > > 32f10100.usb platform: supplier 32f10000.blk-ctrl not ready > > > > 32f10108.usb platform: supplier 32f10000.blk-ctrl not ready > > > > 32ec0000.blk-ctrl imx8m-blk-ctrl: failed to get noc entries > > > > 381f0040.usb-phy platform: supplier 32f10000.blk-ctrl not ready > > > > 382f0040.usb-phy platform: supplier 32f10000.blk-ctrl not ready > > > > imx-pgc-domain.11 > > > > imx-pgc-domain.12 > > > > imx-pgc-domain.13 > > > > 38330000.blk-ctrl platform: supplier imx-pgc-domain.11 not ready > > > > 32f10000.blk-ctrl imx8mp-blk-ctrl: failed to get noc entries > > > > > > > > As far as I can tell blk-ctrl should be good: > > > > > > > > # > > > > # i.MX SoC drivers > > > > # > > > > CONFIG_IMX_GPCV2_PM_DOMAINS=y > > > > CONFIG_SOC_IMX8M=y > > > > # CONFIG_SOC_IMX9 is not set > > > > CONFIG_IMX8M_BLK_CTRL=y > > > > # end of i.MX SoC drivers > > > > > > > > > > > > > If you didn't find any hint there, you might want to place a > > > > > dev_err_probe with a suitable message at the place where -EPROBE_DEFER > > > > > was returned. > > > > > > > > I will try that. > > > > > > Can you check that CONFIG_ARM_IMX_BUS_DEVFREQ is enabled? This is the > > > noc/interconnect driver. This could also the problem for you vpu issue. > > > > I do not have that enabled. Enabling that fixes the USB probing. > > So that is good, thanks. > > > > It doesn't fix the other problem I mentioned with the vpu pgc nodes though. > > I do get some extra messages now with this enabled and the 6.1 kernel: > > > > imx-pgc imx-pgc-domain.8: failed to command PGC > > imx-pgc imx-pgc-domain.8: failed to command PGC > > imx8m-blk-ctrl 38330000.blk-ctrl: deferred probe timeout, ignoring dependency > > imx8m-blk-ctrl 38330000.blk-ctrl: error -110: failed to attach power domain "g1" > > imx8m-blk-ctrl: probe of 38330000.blk-ctrl failed with error -110 > > Okay, this seems more like a "real" issue not related to some missing > drivers. I followed the code and found a poll within the > imx_pgc_power_up() in gpcv2.c. Power-domain 8 is the vpumix domain which > is used as power-domain for the g1 power-domain. My assumption is that > this poll does run into the timeout. Maybe Peng can support you here > since I didn't had the time for to test the VPUs yet and he did the > integration patches. > > Just ignore the errors if you don't use the VPUs or disable the > blk-ctrl@38330000 node via status = "disabled". I forgot to ask: Does your i.MX8MP have a VPU? There are i.MX8MP devices (don't know the name) which don't have support for certain IPs. If this is the case the bootloader will fixup your devicetree by disable the corresponding nodes, we call this feature-controller: https://elixir.bootlin.com/barebox/latest/source/arch/arm/dts/imx8mp.dtsi As you can see the imx8mp.dtsi is missing the feature bits for the VPU but you can check the i.mx8mm.dtsi. Here you can see that barebox will check the availability of the vpu: https://elixir.bootlin.com/barebox/latest/source/arch/arm/dts/imx8mm.dtsi Regards, Marco