tree:
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
mpam/resctrl_merge_cdp/v2
head: e37b40a07b6b4fbcf573c03dcdf303a82edceeb1
commit: 675bc0dd2e66e0e4ff54ac72a5d020a94ad9931e [20/24] x86/resctrl: Apply offset
correction when config is staged
config: x86_64-randconfig-a003-20210312 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
7b153b43d3a14d76975039408c4b922beb576735)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?i...
git remote add morse
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/resctrl_merge_cdp/v2
git checkout 675bc0dd2e66e0e4ff54ac72a5d020a94ad9931e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/x86/kernel/cpu/resctrl/ctrlmondata.c:315:17: warning: use of
unary operator that may be intended as compound assignment (+=)
msr_param.high =+ 1;
^~
1 warning generated.
vim +315 arch/x86/kernel/cpu/resctrl/ctrlmondata.c
273
274 int resctrl_arch_update_domains(struct rdt_resource *r, u32 closid)
275 {
276 struct resctrl_staged_config *cfg;
277 struct rdt_hw_domain *hw_dom;
278 bool msr_param_init = false;
279 struct msr_param msr_param;
280 enum resctrl_conf_type t;
281 cpumask_var_t cpu_mask;
282 struct rdt_domain *d;
283 bool mba_sc;
284 int cpu;
285 u32 idx;
286
287 if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL))
288 return -ENOMEM;
289
290 msr_param.res = r;
291
292 mba_sc = is_mba_sc(r);
293 list_for_each_entry(d, &r->domains, list) {
294 hw_dom = resctrl_to_arch_dom(d);
295 for (t = 0; t < CDP_NUM_TYPES; t++) {
296 cfg = &hw_dom->resctrl.staged_config[t];
297 if (!cfg->have_new_ctrl)
298 continue;
299
300 idx = cbm_idx(r, closid);
301 if (!apply_config(hw_dom, cfg, idx, cpu_mask, mba_sc))
302 continue;
303
304 if (!msr_param_init) {
305 msr_param.low = idx;
306 msr_param.high = idx;
307 msr_param_init = true;
308 } else {
309 msr_param.low = min(msr_param.low, idx);
310 msr_param.high = max(msr_param.high, idx);
311 }
312 }
313 }
314
315 msr_param.high =+ 1;
316
317 /*
318 * Avoid writing the control msr with control values when
319 * MBA software controller is enabled
320 */
321 if (cpumask_empty(cpu_mask) || mba_sc)
322 goto done;
323 cpu = get_cpu();
324 /* Update resource control msr on this CPU if it's in cpu_mask. */
325 if (cpumask_test_cpu(cpu, cpu_mask))
326 rdt_ctrl_update(&msr_param);
327 /* Update resource control msr on other CPUs. */
328 smp_call_function_many(cpu_mask, rdt_ctrl_update, &msr_param, 1);
329 put_cpu();
330
331 done:
332 free_cpumask_var(cpu_mask);
333
334 return 0;
335 }
336
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org