Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp25286lqe; Tue, 9 Apr 2024 13:14:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVEWPF00XCibtLfFBT9Gp6LYqt2VhtoVPhohkpdggc2EjVNpffvg7FR4IejtACF0/Pwj6nC9LWFLHUZfrV03S3rZvudimF+wDxF23cKA== X-Google-Smtp-Source: AGHT+IG5B/TSvIN6QOoSfrkMrbnAZ7BrqWYRek8O/jW3do1VgiW+4Ft+r55KCLgoXsVe7D148xS6 X-Received: by 2002:a05:620a:6291:b0:78d:7713:af97 with SMTP id ov17-20020a05620a629100b0078d7713af97mr800952qkn.47.1712693654455; Tue, 09 Apr 2024 13:14:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712693654; cv=pass; d=google.com; s=arc-20160816; b=0uGkdoGNFtl192ypsCpKtMthr/whNfYE/d5Ns5PGUHWErE2FDdFkhq20mBqwqXk9ML 8oKXQVuxL2nkSNYkzaEc33wjyalBwGv+kcrVdNqFRpt3hbL/5FOrkquvEtf5hvuiDSLj ZdO3b2A7Vavofs5fuTllyDyaP9kU36UTeU6CLXZjKyAccaCXtfCqFNtg7xTW/zSjLtBR BQdjU03fthNCBf0IzVmE2BpFKig2qXFvtk5G2zPhkoq/jl4HP0CkZXNSNIu+CQGapnHJ q74YRZsEo7LYDk0qi8uan6jfWGWgKu4HPPoak1zfbtj8PvONWaPTP+6E+xSu1jc93JV1 rbHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Rp7/UT+G6vDy/Z86ABagvL96srLf3sJjJMNbRRij4A4=; fh=L17xA1dt/VNzAVLrckMtoC11mskgXmFb5On8ojzAKxU=; b=iG267ZjqeuWpPu+TiYhBA985ZGyoINyUDJxGJDxBMz/7AgCf1fAkz9Ne5rqzGIqeye G3B3OcT604ON4Yh8D3H0aS6h2iAF+Xvz3TgaBQjBbSk2O3AF0HxqW0V9lt9JYGs0fJYU yXIwarPbab1DdVZW/OE43wXiU7Runw7VVR7ZEUT00YmYZLHXKgR1LD+DcCAyv2TNo9el UmGBFm88joOC4/TudP5+Yd+5Zj1M4AhUonvb35oIWyNNWLt+x2AMq6zOuQGuKWoQosso DiK7HIbfxJu9ENm/+82AX1+q/0ayxSiGw6MiX/mnZR3TcHy1Hi3RRBQEH0J/mPs82CwF 11nA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-137579-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v19-20020ae9e313000000b0078d6e3fc74csi2149332qkf.139.2024.04.09.13.14.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 13:14:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137579-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-137579-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2FAC81C2272B for ; Tue, 9 Apr 2024 20:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70191158207; Tue, 9 Apr 2024 20:13:55 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA5F8157E97 for ; Tue, 9 Apr 2024 20:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712693635; cv=none; b=gWE8dXSOOlpNY8GtmlSR+E30vcnaRomUbJZCWugsc6hialIOEYhKi/DUy5Y24AM2SaIl1e7tPrNVlwK/n8p3fB4a3zYTItxeE2gLrqnGaKrLrY2QMWCzDh2CMKCWv1ccqBmRD882Me03sCMIYD+97nKOknPHXSMxAidx6+RnRLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712693635; c=relaxed/simple; bh=zRy5uoeqx+ADNZZXm7y5OqVdQZXE5q7MKz9uc5OtpDE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=CzB62PoGVvLmUuXJAYEhRfat41kStUJnPsyQ69sf6kVA/cHvjz4uXBa3GB1s8+2dWXgSetr5In7EWGDxNRaKdGGg8EsZOzzuGCKFjU5wcvC3QskNZORQb9rP+KQG1xy18DXTxAotf6EHMYiSI1ack+5L4r0vyLVilLEaNK3+VWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0CCDC139F; Tue, 9 Apr 2024 13:14:22 -0700 (PDT) Received: from e130256.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 832293F64C; Tue, 9 Apr 2024 13:13:50 -0700 (PDT) From: Hongyan Xia To: Ingo Molnar , Peter Zijlstra , Vincent Guittot , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider Cc: linux-kernel@vger.kernel.org Subject: [PATCH] sched/fair: Fix wrong flag passed to set_rd_overutilized() Date: Tue, 9 Apr 2024 21:13:44 +0100 Message-Id: <0afb160788a297f8cda63b70385de5f6bddec11e.1712693356.git.hongyan.xia2@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In update_sd_lb_stats(), sg_overloaded is passed to set_rd_overutilized(). This seems to be a typo during refactoring, which breaks many of my local EAS tests because overutilization is mistakenly triggered. This fix makes those EAS tests work again. Signed-off-by: Hongyan Xia --- Hi Ingo, Could you double check if this is the correct fix? Thank you. --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1dd37168da50..bb1ae4ed0d91 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10661,7 +10661,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd set_rd_overloaded(env->dst_rq->rd, sg_overloaded); /* Update over-utilization (tipping point, U >= 0) indicator */ - set_rd_overutilized(env->dst_rq->rd, sg_overloaded); + set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } else if (sg_overutilized) { set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } -- 2.34.1