Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 1/4] interconnect: qcom: rpm: Don't set QoS params before non-zero bw is requested
@ 2023-01-03 17:30 Konrad Dybcio
  2023-01-03 17:30 ` [PATCH 2/4] interconnect: qcom: rpm: Set QoS parameters regardless of RPM bw setting Konrad Dybcio
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Konrad Dybcio @ 2023-01-03 17:30 UTC (permalink / raw)
  To: linux-arm-msm, andersson, agross, krzysztof.kozlowski
  Cc: marijn.suijten, Konrad Dybcio, Georgi Djakov, linux-pm,
	linux-kernel

Until now, the icc-rpm driver unconditionally set QoS params, even on
empty requests. This is superfluous and the downstream counterpart does
not do it. Follow it by doing the same.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 drivers/interconnect/qcom/icc-rpm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c
index 43b9ce0dcb6a..06e0fee547ab 100644
--- a/drivers/interconnect/qcom/icc-rpm.c
+++ b/drivers/interconnect/qcom/icc-rpm.c
@@ -193,6 +193,12 @@ static int qcom_icc_qos_set(struct icc_node *node, u64 sum_bw)
 	struct qcom_icc_provider *qp = to_qcom_provider(node->provider);
 	struct qcom_icc_node *qn = node->data;
 
+	/* Defer setting QoS until the first non-zero bandwidth request. */
+	if (!(node->avg_bw || node->peak_bw)) {
+		dev_dbg(node->provider->dev, "NOT Setting QoS for %s\n", qn->name);
+		return 0;
+	}
+
 	dev_dbg(node->provider->dev, "Setting QoS for %s\n", qn->name);
 
 	switch (qp->type) {
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-01-04  1:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 17:30 [PATCH 1/4] interconnect: qcom: rpm: Don't set QoS params before non-zero bw is requested Konrad Dybcio
2023-01-03 17:30 ` [PATCH 2/4] interconnect: qcom: rpm: Set QoS parameters regardless of RPM bw setting Konrad Dybcio
2023-01-03 23:43   ` Bryan O'Donoghue
2023-01-03 23:48     ` Bryan O'Donoghue
2023-01-04  0:39     ` Konrad Dybcio
2023-01-04  1:10       ` Bryan O'Donoghue
2023-01-04  0:48     ` Konrad Dybcio
2023-01-03 17:30 ` [PATCH 3/4] interconnect: qcom: rpm: make QoS INVALID default, separate out driver data Konrad Dybcio
2023-01-03 17:30 ` [PATCH 4/4] interconnect: qcom: rpm: Add support for specifying channel num Konrad Dybcio
2023-01-03 23:07 ` [PATCH 1/4] interconnect: qcom: rpm: Don't set QoS params before non-zero bw is requested Bryan O'Donoghue
2023-01-04  0:25   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox