From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796006585; b=47CFMiZupQ3ReWloCxnHQ2Td8ywaEa+RCzPexZxe/atT/CNWmcZFXLGSI0SsWoUopYH/ p3rujJijkaW+mowG/8LC/QkpEifSVFL6Kur/F5ef0FPy1LbyMlS2xC2eJo/VV0Hgu+8iL tShTkSsUDdFXQ/kdekrBxGZS8wgR97YzE1IWmUZB44QaEgXhMFHWUEAHDTadlmQcjamj/ thObXuxEflhHhVBKBDn1EJaY1Uai+WBJwnu2EKwMJsX8cjoluFZwuXeng5EM6gTff1pZc CZq+XXi8Mj9f9MKQuhPuHSSV8+xDnzGaPE5ealeYQYKVI9Pt2LMc+xEgKcCqemtO8Bg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796006585; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=1M5ZvMq3ioOpZHBbBrjYotjuGmLJ4vPq5ISTvXes4Ko=; b=dIr29w1+nbWVsUxYOJpqL6Ld1cfmb0VBjGKFbGAPTO1xeAS+7W/oLRCdRPsXQFp1RiCn /pkm4CmSEGGncZy4qiGDx2k3OoWaxVY/20zZbfp/B+fN+090KV218WlwGCwiuC92kh0Ee +GG/QWEPZEfSagv8V9110/yIlm4Hf4yxIrEwQNU0d65gLprhgsGVnP7QnuK1ceEuqatNG 71r+c4SjP7CuuBrrU0QXI3QHZ978boesZtyL374WV9pp3asCSXYpMIm3SXQIv38yQLobf GcomFzavlIk9GqiBjYv1B+RX6UPK/7krjeP8k2INut7sbWXVngfzxHKnu0KDj3oehEw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RzAgGQlT; arc=none smtp.remote-ip=192.198.163.18 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1896606A325 for ; Mon, 30 Nov 2026 02:43:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1896606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RzAgGQlT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796006585; x=1827542585; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vdz6DmV7FYkGrNQtNMpwCh4R9h0A27TY/M3diP4sEBo=; b=RzAgGQlT7haRK7h5jAEFaGpbRHrFPzmVq5GDzzFNhIh0FyW1WtviCA1i xnsROScteLzjksfFHTFwnTZn2Kd1W88FdUginAN78ZzeEnfLuYrkhU/Cd s3q9MXtVu4c110pIXATVNn+738NKDkCbQCiFrK7U87YCxdjjz+6AA31t/ ZZIuz/9hX0kMjMcTZ+CfLNK+hW/y9ZUNDQpjCNp4EU9ePgQsdSTJc3DmA RQGp4/F1UyclbNcVSiHSppbFm3e87jRlsN1saylviCKQbjqY+zpReyLcH qx5ABeFt+bXPIS9l4ulMp6LOUTuHdF74VpRXA6z7cvna3yGlJ9kg8uxAy w==; X-CSE-ConnectionGUID: a3Tj6pCrSrm2kJ4yiFyShA== X-CSE-MsgGUID: bkBCglAPTfSBSZAMr79JQQ== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4833512" X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="4833512" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 18:43:04 -0800 X-CSE-ConnectionGUID: 7S+lPWVRTca3iS/FWWPMjQ== X-CSE-MsgGUID: Jsn1fqJURF+ucn2fq5v+JQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="13174839" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 29 Nov 2026 18:43:01 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xXrM2-00000001Zrx-0N75; Mon, 30 Nov 2026 02:42:58 +0000 Date: Mon, 30 Nov 2026 10:42:48 +0800 From: kernel test robot To: Qais Yousef , Ingo Molnar , Peter Zijlstra , Vincent Guittot Cc: oe-kbuild-all@lists.linux.dev, Christian Loehle , Dietmar Eggemann , Steven Rostedt , John Stultz , linux-kernel@vger.kernel.org, Kayra Cizmeci , Qais Yousef , Wei Wang Subject: Re: [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq Message-ID: <20261130101002.Z9w2mfyr-lkp@intel.com> References: <20261129184052.15594-4-qyousef@layalina.io> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261129184052.15594-4-qyousef@layalina.io> Hi Qais, kernel test robot noticed the following build errors: [auto build test ERROR on tip/sched/core] [also build test ERROR on tip/master peterz-queue/sched/core linus/master v7.4-rc4 next-20261127] [cannot apply to tip/auto-latest] [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/Qais-Yousef/sched-uclamp-Use-wrappers-instead-of-open-coding-UCLAMP_FLAG_IDLE/20261129-184050 base: tip/sched/core patch link: https://lore.kernel.org/r/20261129184052.15594-4-qyousef%40layalina.io patch subject: [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq config: powerpc-randconfig-1001-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130101002.Z9w2mfyr-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130101002.Z9w2mfyr-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 | Closes: https://lore.kernel.org/oe-kbuild-all/20261130101002.Z9w2mfyr-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/sched/core.c: In function 'uclamp_update_active': >> kernel/sched/core.c:1982:13: error: implicit declaration of function 'task_is_throttled'; did you mean 'task_is_traced'? [-Werror=implicit-function-declaration] 1982 | task_is_throttled(p)) { | ^~~~~~~~~~~~~~~~~ | task_is_traced cc1: some warnings being treated as errors vim +1982 kernel/sched/core.c 1951 1952 static inline void 1953 uclamp_update_active(struct task_struct *p) 1954 { 1955 enum uclamp_id clamp_id; 1956 struct rq_flags rf; 1957 struct rq *rq; 1958 1959 /* 1960 * Lock the task and the rq where the task is (or was) queued. 1961 * 1962 * We might lock the (previous) rq of a !RUNNABLE task, but that's the 1963 * price to pay to safely serialize util_{min,max} updates with 1964 * enqueues, dequeues and migration operations. 1965 * This is the same locking schema used by __set_cpus_allowed_ptr(). 1966 */ 1967 rq = task_rq_lock(p, &rf); 1968 1969 /* 1970 * Setting the clamp bucket is serialized by task_rq_lock(). 1971 * If the task is not yet RUNNABLE and its task_struct is not 1972 * affecting a valid clamp bucket, the next time it's enqueued, 1973 * it will already see the updated clamp bucket value. 1974 * 1975 * Skip tasks that are not queued on rq, or have already been 1976 * decremented by delayed dequeue or CFS bandwidth throttling; if a 1977 * task missed uclamp_rq_dec() during the static-key enabling race, 1978 * clear its stale active flag instead of decrementing a potentially 1979 * reset rq. 1980 */ 1981 if (!task_on_rq_queued(p) || p->se.sched_delayed || > 1982 task_is_throttled(p)) { 1983 for_each_clamp_id(clamp_id) 1984 p->uclamp[clamp_id].active = false; 1985 goto unlock; 1986 } 1987 1988 for_each_clamp_id(clamp_id) 1989 uclamp_rq_reinc_id(rq, p, clamp_id); 1990 1991 unlock: 1992 task_rq_unlock(rq, p, &rf); 1993 } 1994 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki