Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp397436imi; Thu, 21 Jul 2022 03:19:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSvOCA6mIa31FQfNiAbOA70n6133gKdVWQ2lVV23v52cC4wf0COxqblkw5F2B9ihV1tepl X-Received: by 2002:a17:902:8645:b0:16d:2b60:bc80 with SMTP id y5-20020a170902864500b0016d2b60bc80mr5112120plt.126.1658398789088; Thu, 21 Jul 2022 03:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658398789; cv=none; d=google.com; s=arc-20160816; b=KHa+Lz5SQG92Q/TdfX5AgNHgW1UqeGzAq/CPGDLjJ9BrcTiACBP8j5xU2zdlPeyQ9d hxOW9Eg/ePJBKjL6MimTDtvSOivVqg4gWgje9RoIW8kJVBYZrM6n8eoiiOG7slEKB29w J4BXyk7gix+QO9kPA3nYkEXJWIzteZVkq829jPb8ZagJCH/VbVi2nqQT5GSwQdC4cAhH cDG+3kB6YPwBFi5BcPf8NuWYiHXFfIrYqeQfslpomf56tryTNXDxiRhWoHNQdVJhWiEW YwkuoPoWl1u+/pgGWLAIRYwW251q2x/alNmVduoADclRHlAWU07FZjfxXMMwanSVRbVQ AE4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DjNCRAWqkg7vWXjBdKWRgoc4P/DkY6TDAt+0XOjTU9I=; b=ZysnGJrvjHVrpU4gW6S+Y1bgYbsQAar69CjoFOxvWQK4ozIkLv+xILATK72p04W7Rx 4vrJAmiY800csxFUeV4sj43/14r5w6LoMPtn70wkCb54xK0+6fO9zg/qURtMGErgleMe Tbp+ldZDXyj/KkzieR0wwK8aZgDgpmFHE0OUtJ0AbLKoGkv4ekMmqeKh/VUA6OdkTSY5 xD6+S84jAIis7ZwGDmIZuS6SiWHHmSOZS0f/H4wliChDH309IH/bF3lzz3WfyVeFvUzU 5/SDm0GZaYUZoUXsFK26qLfq0+HETaVcVLNEaZgBn9Fy6+JgmIYPSMQJblgwASqiuu/B 7liQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RHcko4dM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g68-20020a636b47000000b0041a84b02854si928462pgc.420.2022.07.21.03.19.31; Thu, 21 Jul 2022 03:19:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RHcko4dM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbiGUKCD (ORCPT + 99 others); Thu, 21 Jul 2022 06:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232999AbiGUKBx (ORCPT ); Thu, 21 Jul 2022 06:01:53 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E641F2E3; Thu, 21 Jul 2022 03:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658397711; x=1689933711; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eoOdGtjiTIMMoeNULnhdrwS2hhQVIqIHFybGaWhmn4E=; b=RHcko4dMHi8j5zQdiXEh7nP3Ruu8gIzpPZBIi7REr8NjZiP3EP5iq1qw 1z8OdqYj2EHyKWHVEQejyOHEkWM+zbEf29YbjXwkdvpTR/mF3QCS+4TYa 2bfSzFXNroH2oJqjnza1XjqgWyeILsn+5H2zhcAfVV74l0SLh8B/l3hIU BI81fldOHU8PFW9Yw4MIbLqj4JBDeG/X4RggwneZ/0Y4gW49XpKlCrcyX n0xyRKgYCoSRwBu1l2kP2ENLJC8whWUJAbqSNZe8/gif3iDqcEKqZovit VLzIIhcjXo4FbYQiL7VRCGIzkliSq/GWW4STnf4V8j4wje4/LfPtxXjU9 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10414"; a="288170406" X-IronPort-AV: E=Sophos;i="5.92,289,1650956400"; d="scan'208";a="288170406" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 03:01:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,289,1650956400"; d="scan'208";a="740621019" Received: from lkp-server01.sh.intel.com (HELO 7dfbdc7c7900) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 21 Jul 2022 03:01:47 -0700 Received: from kbuild by 7dfbdc7c7900 with local (Exim 4.95) (envelope-from ) id 1oET06-0001hq-UD; Thu, 21 Jul 2022 10:01:46 +0000 Date: Thu, 21 Jul 2022 18:00:47 +0800 From: kernel test robot To: Chengming Zhou , hannes@cmpxchg.org, surenb@google.com, mingo@redhat.com, peterz@infradead.org, tj@kernel.org, corbet@lwn.net, akpm@linux-foundation.org, rdunlap@infradead.org Cc: kbuild-all@lists.01.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com, cgroups@vger.kernel.org, Chengming Zhou Subject: Re: [PATCH 9/9] sched/psi: add PSI_IRQ to track IRQ/SOFTIRQ pressure Message-ID: <202207211726.ilPYe7AO-lkp@intel.com> References: <20220721040439.2651-10-zhouchengming@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220721040439.2651-10-zhouchengming@bytedance.com> X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chengming, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/sched/core] [also build test WARNING on akpm-mm/mm-everything linus/master v5.19-rc7] [cannot apply to tj-cgroup/for-next next-20220720] [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/Chengming-Zhou/sched-psi-some-optimization-and-extension/20220721-120833 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 401e4963bf45c800e3e9ea0d3a0289d738005fd4 config: riscv-randconfig-s032-20220718 (https://download.01.org/0day-ci/archive/20220721/202207211726.ilPYe7AO-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/d14f2a9ff31fefc5b28a16addaa832dc80d84189 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Chengming-Zhou/sched-psi-some-optimization-and-extension/20220721-120833 git checkout d14f2a9ff31fefc5b28a16addaa832dc80d84189 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash kernel/sched/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> kernel/sched/core.c:711:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *task @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:711:31: sparse: expected struct task_struct *task kernel/sched/core.c:711:31: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:1028:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:1028:38: sparse: expected struct task_struct *curr kernel/sched/core.c:1028:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:2192:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:2192:33: sparse: expected struct task_struct *p kernel/sched/core.c:2192:33: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:2192:68: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:2192:68: sparse: expected struct task_struct *tsk kernel/sched/core.c:2192:68: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:3592:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] __rcu *parent @@ kernel/sched/core.c:3592:17: sparse: expected struct sched_domain *[assigned] sd kernel/sched/core.c:3592:17: sparse: got struct sched_domain [noderef] __rcu *parent kernel/sched/core.c:3789:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct const *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:3789:28: sparse: expected struct task_struct const *p kernel/sched/core.c:3789:28: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:9089:43: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *push_task @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:9089:43: sparse: expected struct task_struct *push_task kernel/sched/core.c:9089:43: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:5376:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:5376:38: sparse: expected struct task_struct *curr kernel/sched/core.c:5376:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:6322:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *prev @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:6322:14: sparse: expected struct task_struct *prev kernel/sched/core.c:6322:14: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:6848:17: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/core.c:6848:17: sparse: struct task_struct * kernel/sched/core.c:6848:17: sparse: struct task_struct [noderef] __rcu * kernel/sched/core.c:7064:22: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/core.c:7064:22: sparse: struct task_struct [noderef] __rcu * kernel/sched/core.c:7064:22: sparse: struct task_struct * kernel/sched/core.c:11121:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/core.c:11121:25: sparse: expected struct task_struct *p kernel/sched/core.c:11121:25: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:537:6: sparse: sparse: context imbalance in 'raw_spin_rq_lock_nested' - wrong count at exit kernel/sched/core.c:562:6: sparse: sparse: context imbalance in 'raw_spin_rq_trylock' - wrong count at exit kernel/sched/core.c:586:6: sparse: sparse: context imbalance in 'raw_spin_rq_unlock' - unexpected unlock kernel/sched/core.c: note: in included file: kernel/sched/sched.h:1580:9: sparse: sparse: context imbalance in '__task_rq_lock' - wrong count at exit kernel/sched/sched.h:1580:9: sparse: sparse: context imbalance in 'task_rq_lock' - wrong count at exit kernel/sched/core.c: note: in included file: kernel/sched/pelt.h:97:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct const *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/pelt.h:97:13: sparse: expected struct task_struct const *p kernel/sched/pelt.h:97:13: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/core.c:2183:33: sparse: sparse: dereference of noderef expression kernel/sched/core.c:2184:19: sparse: sparse: dereference of noderef expression kernel/sched/core.c:2185:18: sparse: sparse: dereference of noderef expression kernel/sched/core.c: note: in included file: kernel/sched/sched.h:2053:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2053:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2053:25: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * kernel/sched/core.c:2158:38: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/core.c:2158:38: sparse: struct task_struct [noderef] __rcu * kernel/sched/core.c:2158:38: sparse: struct task_struct const * kernel/sched/sched.h:2053:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2053:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2053:25: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * kernel/sched/sched.h:2053:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2053:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2053:25: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * kernel/sched/sched.h:2053:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2053:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2053:25: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * kernel/sched/sched.h:2053:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2053:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2053:25: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * kernel/sched/sched.h:2053:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2053:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2053:25: sparse: struct task_struct * kernel/sched/sched.h:2210:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2210:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2210:9: sparse: struct task_struct * vim +711 kernel/sched/core.c 675 676 /* 677 * RQ-clock updating methods: 678 */ 679 680 static void update_rq_clock_task(struct rq *rq, s64 delta) 681 { 682 /* 683 * In theory, the compile should just see 0 here, and optimize out the call 684 * to sched_rt_avg_update. But I don't trust it... 685 */ 686 s64 __maybe_unused steal = 0, irq_delta = 0; 687 688 #ifdef CONFIG_IRQ_TIME_ACCOUNTING 689 irq_delta = irq_time_read(cpu_of(rq)) - rq->prev_irq_time; 690 691 /* 692 * Since irq_time is only updated on {soft,}irq_exit, we might run into 693 * this case when a previous update_rq_clock() happened inside a 694 * {soft,}irq region. 695 * 696 * When this happens, we stop ->clock_task and only update the 697 * prev_irq_time stamp to account for the part that fit, so that a next 698 * update will consume the rest. This ensures ->clock_task is 699 * monotonic. 700 * 701 * It does however cause some slight miss-attribution of {soft,}irq 702 * time, a more accurate solution would be to update the irq_time using 703 * the current rq->clock timestamp, except that would require using 704 * atomic ops. 705 */ 706 if (irq_delta > delta) 707 irq_delta = delta; 708 709 rq->prev_irq_time += irq_delta; 710 delta -= irq_delta; > 711 psi_account_irqtime(rq->curr, irq_delta); 712 #endif 713 #ifdef CONFIG_PARAVIRT_TIME_ACCOUNTING 714 if (static_key_false((¶virt_steal_rq_enabled))) { 715 steal = paravirt_steal_clock(cpu_of(rq)); 716 steal -= rq->prev_steal_time_rq; 717 718 if (unlikely(steal > delta)) 719 steal = delta; 720 721 rq->prev_steal_time_rq += steal; 722 delta -= steal; 723 } 724 #endif 725 726 rq->clock_task += delta; 727 -- 0-DAY CI Kernel Test Service https://01.org/lkp