[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202508200857.4KUgmreB-lkp@intel.com>
Date: Wed, 20 Aug 2025 08:27:33 +0800
From: kernel test robot <lkp@...el.com>
To: Tio Zhang <tiozhang@...iglobal.com>, akpm@...ux-foundation.org,
wang.yaxin@....com.cn, fan.yu9@....com.cn, corbet@....net,
bsingharora@...il.com, yang.yang29@....com.cn
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, mingo@...hat.com, peterz@...radead.org,
juri.lelli@...hat.com, vincent.guittot@...aro.org,
dietmar.eggemann@....com, rostedt@...dmis.org, bsegall@...gle.com,
mgorman@...e.de, vschneid@...hat.com, jiang.kun2@....com.cn,
xu.xin16@....com.cn, wang.yong12@....com.cn,
tiozhang@...iglobal.com, zyhtheonly@...il.com, zyhtheonly@...h.net
Subject: Re: [PATCH] delayacct/sched: add SOFTIRQ delay
Hi Tio,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master v6.17-rc2 next-20250819]
[cannot apply to tip/sched/core peterz-queue/sched/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Tio-Zhang/delayacct-sched-add-SOFTIRQ-delay/20250819-173756
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250819092739.GA31177%40didi-ThinkCentre-M930t-N000
patch subject: [PATCH] delayacct/sched: add SOFTIRQ delay
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20250820/202508200857.4KUgmreB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250820/202508200857.4KUgmreB-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508200857.4KUgmreB-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/build_utility.c:93:
kernel/sched/psi.c: In function 'psi_account_irqtime':
>> kernel/sched/psi.c:1024:15: error: too few arguments to function 'irq_time_read'
1024 | irq = irq_time_read(cpu);
| ^~~~~~~~~~~~~
In file included from kernel/sched/build_utility.c:52:
kernel/sched/sched.h:3159:19: note: declared here
3159 | static inline u64 irq_time_read(int cpu, u64 *total_soft)
| ^~~~~~~~~~~~~
vim +/irq_time_read +1024 kernel/sched/psi.c
eb414681d5a07d Johannes Weiner 2018-10-26 1004
52b1364ba0b105 Chengming Zhou 2022-08-26 1005 #ifdef CONFIG_IRQ_TIME_ACCOUNTING
ddae0ca2a8fe12 John Stultz 2024-06-18 1006 void psi_account_irqtime(struct rq *rq, struct task_struct *curr, struct task_struct *prev)
52b1364ba0b105 Chengming Zhou 2022-08-26 1007 {
ddae0ca2a8fe12 John Stultz 2024-06-18 1008 int cpu = task_cpu(curr);
52b1364ba0b105 Chengming Zhou 2022-08-26 1009 struct psi_group_cpu *groupc;
ddae0ca2a8fe12 John Stultz 2024-06-18 1010 s64 delta;
3840cbe24cf060 Johannes Weiner 2024-10-03 1011 u64 irq;
570c8efd5eb79c Peter Zijlstra 2025-05-23 1012 u64 now;
52b1364ba0b105 Chengming Zhou 2022-08-26 1013
a6fd16148fdd7e Yafang Shao 2025-01-03 1014 if (static_branch_likely(&psi_disabled) || !irqtime_enabled())
0c2924079f5a83 Haifeng Xu 2023-09-26 1015 return;
0c2924079f5a83 Haifeng Xu 2023-09-26 1016
ddae0ca2a8fe12 John Stultz 2024-06-18 1017 if (!curr->pid)
ddae0ca2a8fe12 John Stultz 2024-06-18 1018 return;
ddae0ca2a8fe12 John Stultz 2024-06-18 1019
ddae0ca2a8fe12 John Stultz 2024-06-18 1020 lockdep_assert_rq_held(rq);
570c8efd5eb79c Peter Zijlstra 2025-05-23 1021 if (prev && task_psi_group(prev) == task_psi_group(curr))
52b1364ba0b105 Chengming Zhou 2022-08-26 1022 return;
52b1364ba0b105 Chengming Zhou 2022-08-26 1023
ddae0ca2a8fe12 John Stultz 2024-06-18 @1024 irq = irq_time_read(cpu);
ddae0ca2a8fe12 John Stultz 2024-06-18 1025 delta = (s64)(irq - rq->psi_irq_time);
ddae0ca2a8fe12 John Stultz 2024-06-18 1026 if (delta < 0)
ddae0ca2a8fe12 John Stultz 2024-06-18 1027 return;
ddae0ca2a8fe12 John Stultz 2024-06-18 1028 rq->psi_irq_time = irq;
52b1364ba0b105 Chengming Zhou 2022-08-26 1029
570c8efd5eb79c Peter Zijlstra 2025-05-23 1030 psi_write_begin(cpu);
570c8efd5eb79c Peter Zijlstra 2025-05-23 1031 now = cpu_clock(cpu);
3840cbe24cf060 Johannes Weiner 2024-10-03 1032
570c8efd5eb79c Peter Zijlstra 2025-05-23 1033 for_each_group(group, task_psi_group(curr)) {
34f26a15611afb Chengming Zhou 2022-09-07 1034 if (!group->enabled)
34f26a15611afb Chengming Zhou 2022-09-07 1035 continue;
34f26a15611afb Chengming Zhou 2022-09-07 1036
52b1364ba0b105 Chengming Zhou 2022-08-26 1037 groupc = per_cpu_ptr(group->pcpu, cpu);
52b1364ba0b105 Chengming Zhou 2022-08-26 1038
52b1364ba0b105 Chengming Zhou 2022-08-26 1039 record_times(groupc, now);
52b1364ba0b105 Chengming Zhou 2022-08-26 1040 groupc->times[PSI_IRQ_FULL] += delta;
52b1364ba0b105 Chengming Zhou 2022-08-26 1041
65457b74aa9437 Domenico Cerasuolo 2023-03-30 1042 if (group->rtpoll_states & (1 << PSI_IRQ_FULL))
65457b74aa9437 Domenico Cerasuolo 2023-03-30 1043 psi_schedule_rtpoll_work(group, 1, false);
570c8efd5eb79c Peter Zijlstra 2025-05-23 1044 }
570c8efd5eb79c Peter Zijlstra 2025-05-23 1045 psi_write_end(cpu);
52b1364ba0b105 Chengming Zhou 2022-08-26 1046 }
fd3db705f7496c Ingo Molnar 2025-05-28 1047 #endif /* CONFIG_IRQ_TIME_ACCOUNTING */
52b1364ba0b105 Chengming Zhou 2022-08-26 1048
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists