From: Philip Radford <philip.radford@arm.com>
To: Sudeep Holla <sudeep.holla@kernel.org>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org,
linux-pm@vger.kernel.org, james.quinlan@broadcom.com,
f.fainelli@gmail.com, vincent.guittot@linaro.org,
etienne.carriere@st.com, peng.fan@oss.nxp.com,
michal.simek@amd.com, quic_sibis@quicinc.com,
dan.carpenter@linaro.org, d-gole@ti.com,
souvik.chakravarty@arm.com,
Cristian Marussi <cristian.marussi@arm.com>,
"Rafael J. Wysocki" <rafael@kernel.org>
Subject: Re: [PATCH v9 09/13] powercap: arm_scmi: Enable multiple constraints support
Date: Thu, 15 Oct 2026 15:32:42 +0100 [thread overview]
Message-ID: <atDjzW/XnTVLlR9S@e121740.arm.com> (raw)
In-Reply-To: <20261015-urban-porcelain-smilodon-edbc1d@sudeepholla>
On Thu, Oct 15, 2026 at 02:24:40PM +0100, Sudeep Holla wrote:
> On Wed, Sep 09, 2026 at 10:04:33PM +0000, Philip Radford wrote:
> > From: Cristian Marussi <cristian.marussi@arm.com>
> >
Hi,
> > Initialize the domains with all the discovered available constraints,
> > making available multiple per-domain constraints when the platform has
> > advertised support for multiple concurrent power limits.
> >
> > CC: "Rafael J. Wysocki" <rafael@kernel.org>
> > CC: linux-pm@vger.kernel.org
> > Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
> > [Philip: Amended Copyright]
> > Signed-off-by: Philip Radford <philip.radford@arm.com>
> > ---
> > V8->V9
> > - Added validation check to make sure powercap domain doesn't have too
> > many constraints
> > ---
> > drivers/powercap/arm_scmi_powercap.c | 11 +++++++++--
> > 1 file changed, 9 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/powercap/arm_scmi_powercap.c b/drivers/powercap/arm_scmi_powercap.c
> > index 2d9370aaaf5d..bcd1ba0bde8c 100644
> > --- a/drivers/powercap/arm_scmi_powercap.c
> > +++ b/drivers/powercap/arm_scmi_powercap.c
> > @@ -2,7 +2,7 @@
> > /*
> > * SCMI Powercap support.
> > *
> > - * Copyright (C) 2022 ARM Ltd.
> > + * Copyright (C) 2022-2026 ARM Ltd.
> > */
> >
> > #include <linux/device.h>
> > @@ -491,7 +491,7 @@ static int scmi_powercap_register_zone(struct scmi_powercap_root *pr,
> >
> > z = powercap_register_zone(&spz->zone, scmi_top_pcntrl, spz->info->name,
> > parent ? &parent->zone : NULL,
> > - &zone_ops, 1, &constraint_ops);
> > + &zone_ops, spz->info->num_cpli, &constraint_ops);
> > if (!IS_ERR(z)) {
> > spz->height = scmi_powercap_get_zone_height(spz);
> > spz->registered = true;
> > @@ -649,6 +649,13 @@ static int scmi_powercap_probe(struct scmi_device *sdev)
> > */
> > spz->info = powercap_ops->info_get(ph, i);
> >
> > + if (spz->info->num_cpli > MAX_CONSTRAINTS_PER_ZONE) {
>
> Since MAX_CONSTRAINTS_PER_ZONE = 10 and our SCMI f/w can return upto 15,
> we may have to warn or clamp it to 10 or both.
>
Noted. I will address this in the next version, thank you.
Regards,
Phil
next prev parent reply other threads:[~2026-10-15 14:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 22:04 [PATCH v9 00/13] Add support for SCMIv4.0 Powercap Extensions Philip Radford
2026-09-09 22:04 ` [PATCH v9 01/13] powercap: Add enable disable control-type Philip Radford
2026-09-09 22:04 ` [PATCH v9 02/13] firmware: arm_scmi: Add an optional custom parameter to fastchannel helpers Philip Radford
2026-09-09 22:04 ` [PATCH v9 03/13] firmware: arm_scmi: Refactor powercap domain layout Philip Radford
2026-09-09 22:04 ` [PATCH v9 04/13] firmware: arm_scmi: Add SCMIv4.0 Powercap basic support Philip Radford
2026-10-15 12:57 ` Sudeep Holla
2026-10-15 13:15 ` Philip Radford
2026-09-09 22:04 ` [PATCH v9 05/13] firmware: arm_scmi: Add SCMIv4.0 Powercap FCs support Philip Radford
2026-09-09 22:04 ` [PATCH v9 06/13] firmware: arm_scmi: Add SCMIV4.0 Powercap notifications support Philip Radford
2026-09-09 22:04 ` [PATCH v9 07/13] firmware: arm_scmi: Extend powercap report to include MAI Philip Radford
2026-09-09 22:04 ` [PATCH v9 08/13] include: trace: Add new parameter to trace_scmi_fc_call Philip Radford
2026-09-09 22:04 ` [PATCH v9 09/13] powercap: arm_scmi: Enable multiple constraints support Philip Radford
2026-10-15 13:24 ` Sudeep Holla
2026-10-15 14:32 ` Philip Radford [this message]
2026-09-09 22:04 ` [PATCH v9 10/13] firmware: arm_scmi: add Powercap MAI get/set support Philip Radford
2026-09-09 22:04 ` [PATCH v9 11/13] powercap: arm_scmi: Create synthetic parent node for multi-instance Philip Radford
2026-09-09 22:04 ` [PATCH v9 12/13] powercap: arm_scmi: Add get_power_uw to synthetic node Philip Radford
2026-09-09 22:04 ` [PATCH v9 13/13] powercap: arm_scmi: Synthetic zone enable/disable Philip Radford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=atDjzW/XnTVLlR9S@e121740.arm.com \
--to=philip.radford@arm.com \
--cc=arm-scmi@vger.kernel.org \
--cc=cristian.marussi@arm.com \
--cc=d-gole@ti.com \
--cc=dan.carpenter@linaro.org \
--cc=etienne.carriere@st.com \
--cc=f.fainelli@gmail.com \
--cc=james.quinlan@broadcom.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=peng.fan@oss.nxp.com \
--cc=quic_sibis@quicinc.com \
--cc=rafael@kernel.org \
--cc=souvik.chakravarty@arm.com \
--cc=sudeep.holla@kernel.org \
--cc=vincent.guittot@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox