From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28F9EC282DE for ; Mon, 10 Mar 2025 12:15:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=92OsnugYzwfs4LRYCy1ibvYBmAvoUw8cnVInPPsKcig=; b=zv97rla60z4sn2pcU4CjfzqV6k Zh/fTZbGEe6Aab6BV+pKMFRU1tIEj9gh1lHupmcn4GAewkzQ9BNxn/8DeC3gDiexPyUY3NORdf7o9 UUFbfmK5Shi3ftIh0ZK9b5QGypuWKeJUN6NmXoCyWpoZbDzLcJ8Nwo3SD/I6VtE0QjpmTuZokWh0a CEJpB0uj/snA7U8Ipksz9k+n/ZP56JE3XRiQFAnYGDQIvOts7aXCFVAI6Bqhqk4UZ1ek6GzPelcEa ICTnQXqG4YBCYEYVxH8rOd19Dnkwb4Y9ol4g0ZegU8vuEQwBtvgbXqKgQ2fx/jV18LQt2npy3WIxS nvPSmv5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1trc2L-00000002Z5X-3BrF; Mon, 10 Mar 2025 12:15:13 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1trbnH-00000002VMn-0nX2 for linux-arm-kernel@lists.infradead.org; Mon, 10 Mar 2025 11:59:40 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 481C71516; Mon, 10 Mar 2025 04:59:50 -0700 (PDT) Received: from bogus (e133711.arm.com [10.1.196.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D9B693F5A1; Mon, 10 Mar 2025 04:59:35 -0700 (PDT) Date: Mon, 10 Mar 2025 11:59:33 +0000 From: Sudeep Holla To: Peng Fan Cc: "Peng Fan (OSS)" , Cristian Marussi , Sudeep Holla , Saravana Kannan , Greg Kroah-Hartman , Linus Walleij , Aisheng Dong , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer , "arm-scmi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "imx@lists.linux.dev" Subject: Re: [PATCH 1/4] firmware: arm_scmi: bus: Bypass setting fwnode for scmi cpufreq Message-ID: References: <20250218010949.GB22580@nxa18884-linux> <20250218133619.GA22647@nxa18884-linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250310_045939_316053_90E9CA7A X-CRM114-Status: GOOD ( 29.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 10, 2025 at 10:45:44AM +0000, Peng Fan wrote: > > Subject: Re: [PATCH 1/4] firmware: arm_scmi: bus: Bypass setting > > fwnode for scmi cpufreq > > > > On Thu, Feb 20, 2025 at 08:59:18AM +0800, Peng Fan wrote: > > > > > > Sorry, if I misunderstood. > > > > > > I will give a look on this and propose a RFC. > > > > > > DT maintainers may ask for a patchset including binding change and > > > driver changes to get a whole view on the compatible stuff. > > > > > > BTW, Cristian, Saravana if you have any objections/ideas or would > > take > > > on this effort, please let me know. > > > > > > > Can you point me to the DTS with which you are seeing this issue ? > > I am trying to reproduce the issue but so far not successful. I did move > > to power-domains for CPUFreq on Juno. IIUC all we need is both > > cpufreq and performance genpd drivers in the kernel and then GPU > > using perf genpd fails with probe deferral right ? I need pointers to > > reproduce the issue so that I can check if what I have cooked up as a > > solution really works. > > This is in downstream tree: > https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx95.dtsi#L2971 > https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx95.dtsi#L3043 > https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx95.dtsi#L80 > > we are using "power-domains" property for cpu perf and gpu/vpu perf. > > If cpufreq.off=1 is set in bootargs, the vpu/gpu driver will defer probe. > OK, does the probe of these drivers get called or they don't as the driver core doesn't allow that ? I just have a dummy driver for mali on Juno which just does dev_pm_domain_attach_list() in the probe and it seem to succeed even when cpufreq.off=1 is passed. I see scmi-cpufreq failing with -ENODEV as expected. I need to follow the code and check if I can somehow reproduce. Also are you sure this is not with anything in the downstream code ? Also have you tried this with v6.14-rc* ? Are you sure all the fw_devlink code is backported in the tree you pointed me which is v6.6-stable ? -- Regards, Sudeep