From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77CC3229B17; Mon, 10 Mar 2025 11:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741607981; cv=none; b=mjDFw74DxkUguXWI/pW0Z/VTzHwOGHihW1Fg8EHi0ZExgR1wBgc6I2pQcL/Yq4cXjbgjmgE3A87ur7gTzC5zpRxxV5wARCCOVXQAkl7TW5ilpv3OoURkDDYuEAZi9rLsONuhJdMvWUOo5eOBRRrfzWSdh9NIyDyRLr9IZuQ6doQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741607981; c=relaxed/simple; bh=JdTtNW4KV9x3208UN40VO7s75L7zCHPjuhDtsTLEx4Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ekknl8N/WZiOo+i32/7AltwtW13qtZswqg4/YDGgM4pV2HdNHN+DjYk/aa7OOjbosRfD9xTlMmoXaT9IkpDFSpx5uTj2ocSM0zja/a/HvSBcZKkaKObMFithq+MaMOmxbI+5Pvxe8oR8x8hvIgJP4AEjwgKSxcW4V8GYgLElJbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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