[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240312094726.3438322-2-quic_sibis@quicinc.com>
Date: Tue, 12 Mar 2024 15:17:25 +0530
From: Sibi Sankar <quic_sibis@...cinc.com>
To: <sudeep.holla@....com>, <cristian.marussi@....com>, <rafael@...nel.org>,
<viresh.kumar@...aro.org>, <morten.rasmussen@....com>,
<dietmar.eggemann@....com>, <lukasz.luba@....com>, <sboyd@...nel.org>,
<d-gole@...com>
CC: <linux-arm-kernel@...ts.infradead.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <quic_mdtipton@...cinc.com>,
<linux-arm-msm@...r.kernel.org>, <nm@...com>,
Sibi Sankar
<quic_sibis@...cinc.com>
Subject: [PATCH V4 1/2] firmware: arm_scmi: Add support for marking certain frequencies as turbo
All opps above the sustained frequency are treated as turbo, so mark them
accordingly.
Suggested-by: Sudeep Holla <sudeep.holla@....com>
Reviewed-by: Sudeep Holla <sudeep.holla@....com>
Signed-off-by: Sibi Sankar <quic_sibis@...cinc.com>
---
v4:
* Pickup Rbs
* Use turbo and simplify setting turbo. [Dhruva/Viresh]
drivers/firmware/arm_scmi/perf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c
index 8e832d1ad825..345fff167b52 100644
--- a/drivers/firmware/arm_scmi/perf.c
+++ b/drivers/firmware/arm_scmi/perf.c
@@ -871,6 +871,9 @@ static int scmi_dvfs_device_opps_add(const struct scmi_protocol_handle *ph,
else
freq = dom->opp[idx].indicative_freq * dom->mult_factor;
+ /* All OPPs above the sustained frequency are treated as turbo */
+ data.turbo = freq > dom->sustained_freq_khz * 1000;
+
data.level = dom->opp[idx].perf;
data.freq = freq;
--
2.34.1
Powered by blists - more mailing lists