[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202410161955.CsmEsAy8-lkp@intel.com>
Date: Wed, 16 Oct 2024 20:26:07 +0800
From: kernel test robot <lkp@...el.com>
To: Andrea Righi <andrea.righi@...ux.dev>, Tejun Heo <tj@...nel.org>,
David Vernet <void@...ifault.com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>
Cc: oe-kbuild-all@...ts.linux.dev,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>,
Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
Valentin Schneider <vschneid@...hat.com>,
linux-kernel@...r.kernel.org, bpf@...r.kernel.org
Subject: Re: [PATCH v4] sched_ext: Trigger ops.update_idle() from
pick_task_idle()
Hi Andrea,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tip/sched/core]
[also build test WARNING on linus/master v6.12-rc3 next-20241016]
[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/Andrea-Righi/sched_ext-Trigger-ops-update_idle-from-pick_task_idle/20241015-191701
base: tip/sched/core
patch link: https://lore.kernel.org/r/20241015111539.12136-1-andrea.righi%40linux.dev
patch subject: [PATCH v4] sched_ext: Trigger ops.update_idle() from pick_task_idle()
config: x86_64-randconfig-122-20241016 (https://download.01.org/0day-ci/archive/20241016/202410161955.CsmEsAy8-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241016/202410161955.CsmEsAy8-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/202410161955.CsmEsAy8-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/sched/build_policy.c: note: in included file:
>> kernel/sched/idle.c:481:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/idle.c:481:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/idle.c:481:22: sparse: struct task_struct *
kernel/sched/build_policy.c: note: in included file:
kernel/sched/rt.c:991:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/rt.c:991:38: sparse: expected struct task_struct *curr
kernel/sched/rt.c:991:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:1529:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/rt.c:1529:31: sparse: expected struct task_struct *p
kernel/sched/rt.c:1529:31: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/build_policy.c: note: in included file:
kernel/sched/deadline.c:2341:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity const *b @@ got struct sched_dl_entity [noderef] __rcu * @@
kernel/sched/deadline.c:2341:42: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:2341:42: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:1242:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/deadline.c:1242:39: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1242:39: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1242:85: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity const *b @@ got struct sched_dl_entity [noderef] __rcu * @@
kernel/sched/deadline.c:1242:85: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:1242:85: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:1342:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/deadline.c:1342:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1342:23: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1651:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/deadline.c:1651:31: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1651:31: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1651:70: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity const *b @@ got struct sched_dl_entity [noderef] __rcu * @@
kernel/sched/deadline.c:1651:70: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:1651:70: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:1739:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/deadline.c:1739:38: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:1739:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:3054:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:3054:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:3054:22: sparse: struct task_struct *
kernel/sched/build_policy.c: note: in included file:
kernel/sched/syscalls.c:206:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/syscalls.c:206:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/syscalls.c:206:22: sparse: struct task_struct *
kernel/sched/build_policy.c: note: in included file (through include/linux/smp.h, include/linux/sched/clock.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
kernel/sched/build_policy.c: note: in included file:
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
kernel/sched/sched.h:2451:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2451:9: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2451:9: sparse: struct task_struct *
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
kernel/sched/sched.h:2451:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2451:9: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2451:9: sparse: struct task_struct *
kernel/sched/build_policy.c: note: in included file:
kernel/sched/syscalls.c:1331:6: sparse: sparse: context imbalance in 'sched_getaffinity' - different lock contexts for basic block
kernel/sched/build_policy.c: note: in included file:
kernel/sched/sched.h:2265:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2265:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2265:25: sparse: struct task_struct *
vim +481 kernel/sched/idle.c
466
467 struct task_struct *pick_task_idle(struct rq *rq)
468 {
469 /*
470 * When switching from a non-idle to the idle class, .set_next_task()
471 * is called only once during the transition.
472 *
473 * However, the CPU may remain active for multiple rounds running the
474 * idle task (e.g., by calling scx_bpf_kick_cpu() from the
475 * ops.update_idle() callback).
476 *
477 * In such cases, we need to keep updating the scx idle state to
478 * properly re-trigger the ops.update_idle() callback and ensure
479 * correct handling of scx idle state transitions.
480 */
> 481 if (rq->curr == rq->idle)
482 scx_update_idle(rq, true);
483 return rq->idle;
484 }
485
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists