From nobody Tue Sep 29 11:19:32 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75FD93C4168; Sat, 8 Aug 2026 09:44:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786182299; cv=none; b=O/hWrirV9/tsjwUq1T1+wzKj5K2MQRvatqqKH/F69BRkFY6Cb4KPwwUDUziMdZDCc4rCyFtI1aKu5GR53AlWgtOXzbPHUvgbZGlr5lmseaznI9mW/4ImHqQyGbgIO/GCRb1Zd3aeuyDXAYoGp5mjQLP+dXvZDlaqTIKpyfcEBYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786182299; c=relaxed/simple; bh=NX9fYpgPf77alAIqQUYdcjZeCQbjw3lU2vfReovOfGg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=jZxPyi6HmRA5ODiIrqzxOFnQm+Vcv8rARZNMOIRV3vntrFElaGxr+oulBi8BhHyljCjSgyeV+0RkT0ug8lAAaLBNPiG9mx98zA6cVioFCGKtFbDNhoO6meJhWRVk2PbG6k9307QXi4QLvBimr2SjmUBXRjKmWE4pBgylOJFlL6Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=WZhyboSH; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=oTM5QeuA; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WZhyboSH"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="oTM5QeuA" Date: Sat, 08 Aug 2026 09:44:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786182292; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kjqQWLbFNW1qJzRljNCya8qEIS3EqXKOoLE+4R3ZZ9Y=; b=WZhyboSHrkaHX2vHZmb3bQtroRxhZAJfY+mppoyvfsvVKjYdurxBh5ANcNC/rbKc2p7Bpw cZi7S75frpI/SvN4hgO48xROp16ztvlDin12T7lJDTSdgg/r2my5mGbkNGRaN/qlTlsLch Gg3lQiJxa/46cCcB/QwkZa16SmhIYvWxUN8I9lKbXNr2cfnyTokFoOWbWWE61K5ceoEmIf ExH0152aK3aiweuTkZRLRlZd4Tmm7hCy+gudL1o7xXzHvCAPJf/DBX/TWJ9hThf+9N5z73 I1bje3va7CncmboPepXU++mMEQ+DM6eb3mWgq/iQSzrNd1Vy2HxqpcSESYZe0A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786182292; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kjqQWLbFNW1qJzRljNCya8qEIS3EqXKOoLE+4R3ZZ9Y=; b=oTM5QeuAyB20spGeBzvDd7sRYj0uDCe2NbgXb+KM64rzom2364nR+EtNTkiOXi+n3odhUI /XulsYZ+NJAO/3AQ== From: "tip-bot2 for Ricardo Neri" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Also gate overloaded status update for SD_ASYM_CPUCAPACITY Cc: Chen Yu , Ricardo Neri , "Peter Zijlstra (Intel)" , Vincent Guittot , Christian Loehle , Andrea Righi , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260720-rneri-fix-cas-clusters-v6-2-bb500bf4afd4@linux.intel.com> References: <20260720-rneri-fix-cas-clusters-v6-2-bb500bf4afd4@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178618229127.442315.10238844425610475218.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: 6060d61d13a10da8c90da4eadf4a421825149883 Gitweb: https://git.kernel.org/tip/6060d61d13a10da8c90da4eadf4a42182= 5149883 Author: Ricardo Neri AuthorDate: Mon, 20 Jul 2026 19:43:18 -07:00 Committer: Peter Zijlstra CommitterDate: Fri, 07 Aug 2026 18:27:10 +02:00 sched/fair: Also gate overloaded status update for SD_ASYM_CPUCAPACITY The argument sg_overloaded of update_sg_lb_stats() is only consumed when balancing at the root domain. It only makes sense to update it in such a case. Commit 3229adbe7875 ("sched/fair: Do not compute overloaded status unnecessarily during lb") updated the logic accordingly but missed the case in which the root domain has the SD_ASYM_CPUCAPACITY flag. Fix this. Fixes: 3229adbe7875 ("sched/fair: Do not compute overloaded status unnecess= arily during lb") Reported-by: Chen Yu Signed-off-by: Ricardo Neri Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Vincent Guittot Tested-by: Christian Loehle Tested-by: Andrea Righi Link: https://patch.msgid.link/20260720-rneri-fix-cas-clusters-v6-2-bb500bf= 4afd4@linux.intel.com --- kernel/sched/fair.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 974e091..2c5cfec 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -11973,7 +11973,9 @@ static inline void update_sg_lb_stats(struct lb_env= *env, /* Check for a misfit task on the cpu */ if (sgs->group_misfit_task_load < rq->misfit_task_load) { sgs->group_misfit_task_load =3D rq->misfit_task_load; - *sg_overloaded =3D 1; + + if (balancing_at_rd) + *sg_overloaded =3D 1; } } else if (env->idle && sched_reduced_capacity(rq, env->sd)) { /* Check for a task running on a CPU with reduced capacity */