[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aBllHt7A2nP/9x3N@hu-mdtipton-lv.qualcomm.com>
Date: Mon, 5 May 2025 18:25:50 -0700
From: Mike Tipton <quic_mdtipton@...cinc.com>
To: Sudeep Holla <sudeep.holla@....com>,
Cristian Marussi
<cristian.marussi@....com>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Viresh
Kumar <viresh.kumar@...aro.org>
CC: <arm-scmi@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Peng Fan
<peng.fan@....nxp.com>, Peng Fan <peng.fan@....com>
Subject: Re: [PATCH v3] cpufreq: scmi: Skip SCMI devices that aren't used by
the CPUs
On Mon, Apr 28, 2025 at 07:47:28AM -0700, Mike Tipton wrote:
> Currently, all SCMI devices with performance domains attempt to register
> a cpufreq driver, even if their performance domains aren't used to
> control the CPUs. The cpufreq framework only supports registering a
> single driver, so only the first device will succeed. And if that device
> isn't used for the CPUs, then cpufreq will scale the wrong domains.
>
> To avoid this, return early from scmi_cpufreq_probe() if the probing
> SCMI device isn't referenced by the CPU device phandles.
>
> This keeps the existing assumption that all CPUs are controlled by a
> single SCMI device.
>
> Signed-off-by: Mike Tipton <quic_mdtipton@...cinc.com>
> Reviewed-by: Peng Fan <peng.fan@....com>
> ---
Hi Sudeep / Viresh,
Any thoughts on this?
Thanks,
Mike
Powered by blists - more mailing lists