public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vincent Donnefort <vincent.donnefort@arm.com>,
	peterz@infradead.org, mingo@redhat.com,
	vincent.guittot@linaro.org
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	dietmar.eggemann@arm.com, morten.rasmussen@arm.com,
	chris.redpath@arm.com, qperret@google.com,
	Vincent Donnefort <vincent.donnefort@arm.com>
Subject: Re: [PATCH v5 2/7] sched/fair: Decay task PELT values during wakeup migration
Date: Tue, 26 Apr 2022 10:13:16 +0800	[thread overview]
Message-ID: <202204260942.XMp7WXYD-lkp@intel.com> (raw)
In-Reply-To: <20220425151612.3322972-3-vincent.donnefort@arm.com>

Hi Vincent,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/sched/core]
[also build test ERROR on rafael-pm/linux-next rafael-pm/thermal v5.18-rc4 next-20220422]
[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]

url:    https://github.com/intel-lab-lkp/linux/commits/Vincent-Donnefort/feec-energy-margin-removal/20220425-231901
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a658353167bf2ea6052cee071dbcc13e0f229dc9
config: arc-randconfig-r043-20220425 (https://download.01.org/0day-ci/archive/20220426/202204260942.XMp7WXYD-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.0
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
        # https://github.com/intel-lab-lkp/linux/commit/fb13cca8f6e7998f6e526a9b35f33c85d7570ab2
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Vincent-Donnefort/feec-energy-margin-removal/20220425-231901
        git checkout fb13cca8f6e7998f6e526a9b35f33c85d7570ab2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/sched/fair.c: In function 'dequeue_entity':
>> kernel/sched/fair.c:4476:17: error: implicit declaration of function 'update_idle_cfs_rq_clock_pelt'; did you mean 'update_idle_rq_clock_pelt'? [-Werror=implicit-function-declaration]
    4476 |                 update_idle_cfs_rq_clock_pelt(cfs_rq);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                 update_idle_rq_clock_pelt
   cc1: some warnings being treated as errors


vim +4476 kernel/sched/fair.c

  4423	
  4424	static void
  4425	dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
  4426	{
  4427		/*
  4428		 * Update run-time statistics of the 'current'.
  4429		 */
  4430		update_curr(cfs_rq);
  4431	
  4432		/*
  4433		 * When dequeuing a sched_entity, we must:
  4434		 *   - Update loads to have both entity and cfs_rq synced with now.
  4435		 *   - Subtract its load from the cfs_rq->runnable_avg.
  4436		 *   - Subtract its previous weight from cfs_rq->load.weight.
  4437		 *   - For group entity, update its weight to reflect the new share
  4438		 *     of its group cfs_rq.
  4439		 */
  4440		update_load_avg(cfs_rq, se, UPDATE_TG);
  4441		se_update_runnable(se);
  4442	
  4443		update_stats_dequeue_fair(cfs_rq, se, flags);
  4444	
  4445		clear_buddies(cfs_rq, se);
  4446	
  4447		if (se != cfs_rq->curr)
  4448			__dequeue_entity(cfs_rq, se);
  4449		se->on_rq = 0;
  4450		account_entity_dequeue(cfs_rq, se);
  4451	
  4452		/*
  4453		 * Normalize after update_curr(); which will also have moved
  4454		 * min_vruntime if @se is the one holding it back. But before doing
  4455		 * update_min_vruntime() again, which will discount @se's position and
  4456		 * can move min_vruntime forward still more.
  4457		 */
  4458		if (!(flags & DEQUEUE_SLEEP))
  4459			se->vruntime -= cfs_rq->min_vruntime;
  4460	
  4461		/* return excess runtime on last dequeue */
  4462		return_cfs_rq_runtime(cfs_rq);
  4463	
  4464		update_cfs_group(se);
  4465	
  4466		/*
  4467		 * Now advance min_vruntime if @se was the entity holding it back,
  4468		 * except when: DEQUEUE_SAVE && !DEQUEUE_MOVE, in this case we'll be
  4469		 * put back on, and if we advance min_vruntime, we'll be placed back
  4470		 * further than we started -- ie. we'll be penalized.
  4471		 */
  4472		if ((flags & (DEQUEUE_SAVE | DEQUEUE_MOVE)) != DEQUEUE_SAVE)
  4473			update_min_vruntime(cfs_rq);
  4474	
  4475		if (cfs_rq->nr_running == 0)
> 4476			update_idle_cfs_rq_clock_pelt(cfs_rq);
  4477	}
  4478	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

  reply	other threads:[~2022-04-26  2:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-25 15:16 [PATCH v5 0/7] feec() energy margin removal Vincent Donnefort
2022-04-25 15:16 ` [PATCH v5 1/7] sched/fair: Provide u64 read for 32-bits arch helper Vincent Donnefort
2022-04-25 15:16 ` [PATCH v5 2/7] sched/fair: Decay task PELT values during wakeup migration Vincent Donnefort
2022-04-26  2:13   ` kernel test robot [this message]
2022-04-25 15:16 ` [PATCH v5 3/7] sched, drivers: Remove max param from effective_cpu_util()/sched_cpu_util() Vincent Donnefort
2022-04-25 15:16 ` [PATCH v5 4/7] sched/fair: Rename select_idle_mask to select_rq_mask Vincent Donnefort
2022-04-25 15:16 ` [PATCH v5 5/7] sched/fair: Use the same cpumask per-PD throughout find_energy_efficient_cpu() Vincent Donnefort
2022-04-25 15:16 ` [PATCH v5 6/7] sched/fair: Remove task_util from effective utilization in feec() Vincent Donnefort
2022-04-25 15:16 ` [PATCH v5 7/7] sched/fair: Remove the energy margin " Vincent Donnefort

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=202204260942.XMp7WXYD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chris.redpath@arm.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=morten.rasmussen@arm.com \
    --cc=peterz@infradead.org \
    --cc=qperret@google.com \
    --cc=vincent.donnefort@arm.com \
    --cc=vincent.guittot@linaro.org \
    /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