Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3411791rwb; Tue, 16 Aug 2022 02:29:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5+NjXSS7mOgBFx0JCGp0cRNvFHP+3907vHkFXDn23YzSnXX9E7yz/Ou3NZ2ZLagCJBeQYq X-Received: by 2002:a05:6402:2755:b0:43d:7568:c78e with SMTP id z21-20020a056402275500b0043d7568c78emr18089200edd.104.1660642186488; Tue, 16 Aug 2022 02:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660642186; cv=none; d=google.com; s=arc-20160816; b=iPr9GVjIk2qlInLoHL8A8RIMx1Bpzxnm6Wl/gzF/Xw+ngNiuHWyuGNRz1BPojhXpXi L0zM06/S7dBeS3cHOVhvzN5JmW1Ek47xKD3fajFyD3xNamA4Z3mK5zVeD7vuhZk8xtrx 1quDo9CBTTlE/MLvVygE3qdSltJp8fNSIcQKRVFzMs5rPTxAMvmzlPiglJW0oIG2Rsrv YNIEL3vZSPCHUdFzJ61kpmIxQ/Hoe2cAINMwdKHEfGHnUus4DUOhy9uEYCvgTxUHpRAw iZZkTUH19OUPzMt6/uQC5CXk7M8HMjGZ8v2eTRWnHAaj05LYB9EFMHQvwFTAgcRP8uba 0XwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=dkehMmxOl1c1Zf5GC4wXoMM0vyQ0XwwrYepcrwTs+5Y=; b=JshaMmIff4NU/jeKn8ooe6HMBjFVPPZNOQxX0iSRSBKszAdYOJJDdsFtkIaiDOzznY ujNSNY/Xkc+ldeuvm88er3vxm16ThhU8uBmSF30mpyIFrpATugieADZvcacX/NiGVRtg RXFDy0jFsgFPafBDW1WgxU6EKr+jIIJkihzfr0nL4O5z2rrD9ousVN/fW9he0yGAWDQ1 ibVJvIrSrcbpLw2uO2wtgymEUNZLylv3AY+1AWZrtoQJgub0ZQicuhDcV6XJvglXebdS RIAMwrTD+ILDtIr1TJvivyjJKQroOXqt2L99nJf0zhjomTOalkSz2OVT6l4+7PR6tBa0 j0yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=Zk4Do33s; dkim=pass header.i=@tq-group.com header.s=key1 header.b=FCrbwVk5; 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=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp39-20020a1709073e2700b007262c51b07dsi11013279ejc.724.2022.08.16.02.29.20; Tue, 16 Aug 2022 02:29:46 -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=@tq-group.com header.s=key1 header.b=Zk4Do33s; dkim=pass header.i=@tq-group.com header.s=key1 header.b=FCrbwVk5; 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=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233264AbiHPJEs (ORCPT + 99 others); Tue, 16 Aug 2022 05:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbiHPJD7 (ORCPT ); Tue, 16 Aug 2022 05:03:59 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 040156747E; Tue, 16 Aug 2022 00:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1660634266; x=1692170266; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dkehMmxOl1c1Zf5GC4wXoMM0vyQ0XwwrYepcrwTs+5Y=; b=Zk4Do33sAFQbB5oajX5te5BTq/mHS8n3UnYF6Nbs2CUgMXA1cBVdPMZm DLAlg0oJ3NT0UyHzlej9PKpQY1BAUcd+9w1e0+c785yqww/jZp5l67Tqi VU7wb8rqCtbXzUIdmq49ZiAZl4Hyv4lC2RFM4RgOCrbSBvqlkVq5eqpZK 0mN1Pv2JgXxzNT1xOJ5Xey0K8AMIGIArIQo1cPLwP7sBT0gT7oXqIJBpd 5eYxj4B4Ri/cz4RW/yJMna4+NDo0+GQjPrpkolEiwAK056eKAJrhPcZh2 byjKF5h01eVsOcdVckeQdJABfH2rrdgqS/aqbnDUlmms/6VwMDQ+QaPDW Q==; X-IronPort-AV: E=Sophos;i="5.93,240,1654552800"; d="scan'208";a="25618691" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 16 Aug 2022 09:17:41 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 16 Aug 2022 09:17:42 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 16 Aug 2022 09:17:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1660634261; x=1692170261; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dkehMmxOl1c1Zf5GC4wXoMM0vyQ0XwwrYepcrwTs+5Y=; b=FCrbwVk5lgSncxDTBANc0cchHXvN3F+CKbipHx60d4RfkW9l1J49Nn2L BK0pUkBuSMbjE8frUo0Bj0xfPLdD62JkcsemvsgQl9lXf4YXbFxzGl2tT 47WqZYoqxeths67hQ/E3pPnpgmRVisp/f7eVQvAFf+nXI3EzlFZS3lqIo pA7wZyPgq3fQdq3H3mWP+l8MdnPQd0Q2mRuwAFvHnr7Ey48/ccdWpSakF iAicp4/8yDonkUuQ5bPJgWY5uoF+Jz9rzqRHF1S5WhXWH8tRM7M4PyajQ SzDJPsMuj0sh5wS+ZSaiVJHdI5YBuy/uJjN/qW702KPmUFMOM4RsA/YR+ Q==; X-IronPort-AV: E=Sophos;i="5.93,240,1654552800"; d="scan'208";a="25618664" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 Aug 2022 09:17:37 +0200 Received: from steina-w.localnet (unknown [10.123.49.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 3EE2E280056; Tue, 16 Aug 2022 09:17:37 +0200 (CEST) From: Alexander Stein To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Linus Walleij , Bartosz Golaszewski , Rob Herring , Frank Rowand , Geert Uytterhoeven , Magnus Damm , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown , Abel Vesa , Tony Lindgren , Sudeep Holla , Geert Uytterhoeven , John Stultz , Doug Anderson , Guenter Roeck , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v1 0/9] fw_devlink improvements Date: Tue, 16 Aug 2022 09:17:34 +0200 Message-ID: <1888231.VLH7GnMWUR@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <20220810060040.321697-1-saravanak@google.com> <3601760.iIbC2pHGDl@steina-w> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello Saravana, Am Montag, 15. August 2022, 21:17:36 CEST schrieb Saravana Kannan: > On Mon, Aug 15, 2022 at 5:39 AM Alexander Stein > > wrote: > > Hello Saravana, > > > > Am Mittwoch, 10. August 2022, 08:00:29 CEST schrieb Saravana Kannan: > > > Alexander, > > > > > > This should fix your issue where the power domain device not having a > > > compatible property. Can you give it a shot please? > > > > thanks for the update. Unfortunately this does not work: > > > [ 0.774838] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@0 > > > > > [ 0.775100] imx-pgc imx-pgc-domain.1: __genpd_dev_pm_attach() failed > > > to > > > > find PM domain: -2 > > > > > [ 0.775324] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@2 > > > > > [ 0.775601] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@3 > > > > > [ 0.775842] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@4 > > > > > [ 0.776642] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@7 > > > > > [ 0.776897] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@8 > > > > > [ 0.777158] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@9 > > > > > [ 0.777405] PM: Added domain provider from /soc@0/bus@30000000/ > > > > gpc@303a0000/pgc/power-domain@a > > > > > [ 0.779342] genpd genpd:0:38320000.blk-ctrl: __genpd_dev_pm_attach() > > > > failed to find PM domain: -2 > > > > > [ 0.779422] imx8m-blk-ctrl 38320000.blk-ctrl: error -ENODEV: failed > > > to > > > > attach power domain "bus" > > > > > [ 0.848785] etnaviv-gpu 38000000.gpu: __genpd_dev_pm_attach() failed > > > to > > > > find PM domain: -2 > > > > > [ 1.114220] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1 > > > [ 1.122267] pfuze100-regulator 0-0008: FAB: 0, FIN: 0 > > > [ 1.132970] pfuze100-regulator 0-0008: pfuze100 found. > > > [ 1.157011] imx-gpcv2 303a0000.gpc: Failed to create device link with > > > > 0-0008 > > > > > [ 1.164094] imx-gpcv2 303a0000.gpc: Failed to create device link with > > > > 0-0008 > > > > The required power-supply for the power domains is still not yet > > available. > > Does this series require some other patches as well? > > Ah sorry, yeah, this needs additional patches. The one I gave in the > other thread when I debugged this and I also noticed another issue. > Here's the combined diff of what's needed. Can you add this on top of > the series and test it? > > diff --git a/drivers/irqchip/irq-imx-gpcv2.c > b/drivers/irqchip/irq-imx-gpcv2.c index b9c22f764b4d..8a0e82067924 100644 > --- a/drivers/irqchip/irq-imx-gpcv2.c > +++ b/drivers/irqchip/irq-imx-gpcv2.c > @@ -283,6 +283,7 @@ static int __init imx_gpcv2_irqchip_init(struct > device_node *node, > * later the GPC power domain driver will not be skipped. > */ > of_node_clear_flag(node, OF_POPULATED); > + fwnode_dev_initialized(domain->fwnode, false); > return 0; > } > > diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c > index 6383a4edc360..181fbfe5bd4d 100644 > --- a/drivers/soc/imx/gpcv2.c > +++ b/drivers/soc/imx/gpcv2.c > @@ -1513,6 +1513,7 @@ static int imx_gpcv2_probe(struct platform_device > *pdev) > > pd_pdev->dev.parent = dev; > pd_pdev->dev.of_node = np; > + pd_pdev->dev.fwnode = of_fwnode_handle(np); > > ret = platform_device_add(pd_pdev); > if (ret) { > > With this patch, I'd really expect the power domain dependency to be > handled correctly. I was out of office so I didn't keep track of any dependencies, sorry. With these 2 changes above my power domain problem is fixed! Thanks Alexander