From: kernel test robot <lkp@intel.com>
To: Konrad Dybcio <konrad.dybcio@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Georgi Djakov <djakov@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Marijn Suijten <marijn.suijten@somainline.org>,
linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: Re: [PATCH 1/4] interconnect: qcom: icc-rpm: Add AB/IB calculations coefficients
Date: Sat, 29 Jul 2023 17:25:10 +0800 [thread overview]
Message-ID: <202307291745.0JcdYvBz-lkp@intel.com> (raw)
In-Reply-To: <20230726-topic-icc_coeff-v1-1-31616960818c@linaro.org>
Hi Konrad,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 1e25dd7772483f477f79986d956028e9f47f990a]
url: https://github.com/intel-lab-lkp/linux/commits/Konrad-Dybcio/interconnect-qcom-icc-rpm-Add-AB-IB-calculations-coefficients/20230727-002710
base: 1e25dd7772483f477f79986d956028e9f47f990a
patch link: https://lore.kernel.org/r/20230726-topic-icc_coeff-v1-1-31616960818c%40linaro.org
patch subject: [PATCH 1/4] interconnect: qcom: icc-rpm: Add AB/IB calculations coefficients
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230729/202307291745.0JcdYvBz-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230729/202307291745.0JcdYvBz-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307291745.0JcdYvBz-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/interconnect/qcom/icc-rpm.c: In function 'qcom_icc_bus_aggregate':
>> drivers/interconnect/qcom/icc-rpm.c:302:27: warning: variable 'agg_peak_rate' set but not used [-Wunused-but-set-variable]
302 | u64 agg_avg_rate, agg_peak_rate, agg_rate;
| ^~~~~~~~~~~~~
vim +/agg_peak_rate +302 drivers/interconnect/qcom/icc-rpm.c
293
294 /**
295 * qcom_icc_bus_aggregate - calculate bus clock rates by traversing all nodes
296 * @provider: generic interconnect provider
297 * @agg_clk_rate: array containing the aggregated clock rates in kHz
298 */
299 static void qcom_icc_bus_aggregate(struct icc_provider *provider, u64 *agg_clk_rate)
300 {
301 struct qcom_icc_provider *qp = to_qcom_provider(provider);
> 302 u64 agg_avg_rate, agg_peak_rate, agg_rate;
303 struct qcom_icc_node *qn;
304 struct icc_node *node;
305 u16 percent;
306 int i;
307
308 /*
309 * Iterate nodes on the provider, aggregate bandwidth requests for
310 * every bucket and convert them into bus clock rates.
311 */
312 list_for_each_entry(node, &provider->nodes, node_list) {
313 qn = node->data;
314 for (i = 0; i < QCOM_SMD_RPM_STATE_NUM; i++) {
315 if (qn->channels)
316 agg_avg_rate = div_u64(qn->sum_avg[i], qn->channels);
317 else
318 agg_avg_rate = qn->sum_avg[i];
319
320 percent = qp->ab_percent ? qp->ab_percent : 100;
321 agg_avg_rate = mult_frac(percent, agg_avg_rate, 100);
322
323 percent = qn->ib_percent ? qn->ib_percent : 100;
324 agg_peak_rate = mult_frac(percent, qn->max_peak[i], 100);
325
326 agg_rate = max_t(u64, agg_avg_rate, qn->max_peak[i]);
327 do_div(agg_rate, qn->buswidth);
328
329 agg_clk_rate[i] = max_t(u64, agg_clk_rate[i], agg_rate);
330 }
331 }
332 }
333
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-07-29 9:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 16:25 [PATCH 0/4] Fix up icc clock rate calculation on some platforms Konrad Dybcio
2023-07-26 16:25 ` [PATCH 1/4] interconnect: qcom: icc-rpm: Add AB/IB calculations coefficients Konrad Dybcio
2023-07-26 17:16 ` Stephan Gerhold
2023-07-26 17:19 ` Konrad Dybcio
2023-07-29 9:25 ` kernel test robot [this message]
2023-07-26 16:25 ` [PATCH 2/4] interconnect: qcom: qcm2290: Set AB coefficients Konrad Dybcio
2023-07-26 17:18 ` Stephan Gerhold
2023-07-26 17:20 ` Konrad Dybcio
2023-07-26 17:26 ` Stephan Gerhold
2023-07-26 17:46 ` Konrad Dybcio
2023-07-26 17:52 ` Konrad Dybcio
2023-07-26 16:25 ` [PATCH 3/4] interconnect: qcom: sdm660: Set AB/IB coefficients Konrad Dybcio
2023-07-26 16:25 ` [PATCH 4/4] interconnect: qcom: msm8996: " Konrad Dybcio
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=202307291745.0JcdYvBz-lkp@intel.com \
--to=lkp@intel.com \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=djakov@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).