tree:
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
dev.2020.12.15a
head: 22a5aeecf105617107dc7f8ee4f6cb1231630a15
commit: d9087ff33fe5e724396f7d93e0b4d089dce95601 [117/132] rcu/nocb: De-offloading CB
kthread
:::::: branch date: 3 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-s032-20201215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/com...
git remote add rcu
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
git fetch --no-tags rcu dev.2020.12.15a
git checkout d9087ff33fe5e724396f7d93e0b4d089dce95601
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
kernel/rcu/tree.c: note: in included file:
kernel/rcu/tree_plugin.h:1492:5: sparse: sparse: symbol
'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static?
kernel/rcu/tree.c:1434:9: sparse: sparse: context imbalance in
'rcu_start_this_gp' - different lock contexts for basic block
kernel/rcu/tree.c:1846:9: sparse: sparse: context imbalance in 'rcu_gp_init' -
different lock contexts for basic block
kernel/rcu/tree.c:2626:9: sparse: sparse: context imbalance in 'force_qs_rnp' -
different lock contexts for basic block
kernel/rcu/tree.c:2679:25: sparse: sparse: context imbalance in
'rcu_force_quiescent_state' - unexpected unlock
kernel/rcu/tree.c: note: in included file:
kernel/rcu/tree_stall.h:319:9: sparse: sparse: context imbalance in
'rcu_print_task_stall' - unexpected unlock
kernel/rcu/tree_stall.h:545:9: sparse: sparse: context imbalance in
'print_other_cpu_stall' - different lock contexts for basic block
kernel/rcu/tree_stall.h:826:17: sparse: sparse: context imbalance in
'rcu_check_gp_start_stall' - different lock contexts for basic block
kernel/rcu/tree.c: note: in included file:
kernel/rcu/tree_exp.h:189:9: sparse: sparse: context imbalance in
'__rcu_report_exp_rnp' - different lock contexts for basic block
kernel/rcu/tree.c: note: in included file:
kernel/rcu/tree_plugin.h:1538:16: sparse: sparse: context imbalance in
'rcu_nocb_bypass_trylock' - wrong count at exit
kernel/rcu/tree_plugin.h:1555:13: sparse: sparse: context imbalance in
'rcu_nocb_lock' - wrong count at exit
kernel/rcu/tree_plugin.h:1570:17: sparse: sparse: context imbalance in
'rcu_nocb_unlock' - unexpected unlock
kernel/rcu/tree_plugin.h:1583:17: sparse: sparse: context imbalance in
'rcu_nocb_unlock_irqrestore' - unexpected unlock
kernel/rcu/tree_plugin.h:1630:13: sparse: sparse: context imbalance in
'wake_nocb_gp' - wrong count at exit
kernel/rcu/tree_plugin.h:1694:9: sparse: sparse: context imbalance in
'rcu_nocb_do_flush_bypass' - unexpected unlock
kernel/rcu/tree_plugin.h:1709:13: sparse: sparse: context imbalance in
'rcu_nocb_flush_bypass' - wrong count at exit
kernel/rcu/tree_plugin.h:1860:13: sparse: sparse: context imbalance in
'__call_rcu_nocb_wake' - wrong count at exit
kernel/rcu/tree_plugin.h:1924:9: sparse: sparse: context imbalance in
'do_nocb_bypass_wakeup_timer' - different lock contexts for basic block
kernel/rcu/tree_plugin.h:1954:9: sparse: sparse: context imbalance in
'nocb_gp_wait' - different lock contexts for basic block
kernel/rcu/tree_plugin.h:2146:9: sparse: sparse: context imbalance in
'nocb_cb_wait' - wrong count at exit
kernel/rcu/tree_plugin.h:2182:13: sparse: sparse: context imbalance in
'do_nocb_deferred_wakeup_common' - different lock contexts for basic block
> kernel/rcu/tree_plugin.h:2240:9: sparse: sparse: context
imbalance in '__rcu_nocb_rdp_deoffload' - wrong count at exit
vim +/__rcu_nocb_rdp_deoffload +2240 kernel/rcu/tree_plugin.h
8be6e1b15c54402 Paul E. McKenney 2017-04-29 2216
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2217 static int
__rcu_nocb_rdp_deoffload(struct rcu_data *rdp)
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2218 {
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2219 struct rcu_segcblist *cblist =
&rdp->cblist;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2220 bool wake_cb = false;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2221 unsigned long flags;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2222
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2223 printk("De-offloading
%d\n", rdp->cpu);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2224
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2225 rcu_nocb_lock_irqsave(rdp, flags);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2226 rcu_segcblist_offload(cblist,
false);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2227
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2228 if (rdp->nocb_cb_sleep) {
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2229 rdp->nocb_cb_sleep = false;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2230 wake_cb = true;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2231 }
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2232 rcu_nocb_unlock_irqrestore(rdp,
flags);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2233
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2234 if (wake_cb)
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2235
swake_up_one(&rdp->nocb_cb_wq);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2236
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2237
swait_event_exclusive(rdp->nocb_state_wq,
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2238
!rcu_segcblist_test_flags(cblist, SEGCBLIST_KTHREAD_CB));
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2239
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 @2240 return 0;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2241 }
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 2242
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org