Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp59381ybf; Wed, 26 Feb 2020 08:48:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxAqsGBC61wlYcpmIlJxNgM1+EbJ58Nkzdb4l9LpPGnspgb0ZJElm5Tt7F1A1Tx+hAoTqhz X-Received: by 2002:a05:6808:b29:: with SMTP id t9mr3890416oij.69.1582735690054; Wed, 26 Feb 2020 08:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582735690; cv=none; d=google.com; s=arc-20160816; b=q4rlfvAywMvp539l9fAF42u+AWW75GqVsD7jee5W+Ae6LlGc22yE6fj2EfDDALYcWH 79JKLgR6ZaQvmveoCYZRfjIrswHDUoD4UwrUfmjHo/JOdXHLT0Ji/svYYkk8QGEO/OSi B7EBVWJMO6IIaWOgV6woIK+hD8kkiEO94Yqu1x/ICPVnh9L0KJSExNAOWeth7MRiXn2D DDW9OjLn/xcjMhNKoNYB8YecrgVqwy6Vw6yCnbmdtGG9mVf11Q0I0m87KmDrTV0osGSE ffQiite54zMamYFvtSfkvSpBuEyt5LtT1VXE3EYN4BdLdKf/ryBaXtXAgCHZFWx0rubW D6Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=af5I5eo5PWsjJNCG5+e3popKkZ8/ieK2Yxh8wjvx4Ow=; b=0z6WFX3AnTRXc0qBFsgrDEWQZsX5wtXYQt+XUtfMZoCvRVM7iAr8cAYo2uRACNZ05u bvEFbq7EIr0OhxyCC4ZD4DxczT3j9s2ffc3IvPDuqMrfoJunLg4CT9SLvhngNz72pZtA v1xXfwfk16wIwokCNhJ+qTHrJSOvABXJfLawxweeqEwYzyYGI3xg2WahqMCUsMJtY5Dh 8WBGwbffeInqoXS8J3UEOswRW9GH+VFbQh4+FHcFaBDMWf5m6dQsj3ttSd3F9UnWFws7 EODq8fG9PhGjCvYEIL61iM9WfkxpCWdvQMX8tZnAf1D/rBXmfFkre+jHCUGLWe2hxLte yLfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si55898otk.171.2020.02.26.08.47.57; Wed, 26 Feb 2020 08:48:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbgBZQm3 (ORCPT + 99 others); Wed, 26 Feb 2020 11:42:29 -0500 Received: from foss.arm.com ([217.140.110.172]:38934 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbgBZQm1 (ORCPT ); Wed, 26 Feb 2020 11:42:27 -0500 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 5332031B; Wed, 26 Feb 2020 08:42:27 -0800 (PST) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BA2343F819; Wed, 26 Feb 2020 08:42:25 -0800 (PST) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Peter Zijlstra , Ingo Molnar , Vincent Guittot , Dietmar Eggemann , morten.rasmussen@arm.com, qperret@google.com, Catalin Marinas , Will Deacon , Mark Rutland Subject: [PATCH 1/2] sched/topology: Don't enable EAS on SMT systems Date: Wed, 26 Feb 2020 16:41:17 +0000 Message-Id: <20200226164118.6405-2-valentin.schneider@arm.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200226164118.6405-1-valentin.schneider@arm.com> References: <20200226164118.6405-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org EAS already requires asymmetric CPU capacities to be enabled, and mixing this with SMT is an aberration, but better be safe than sorry. Signed-off-by: Valentin Schneider --- kernel/sched/topology.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 00911884b7e7..76cd0a370b9a 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -360,6 +360,10 @@ static bool build_perf_domains(const struct cpumask *cpu_map) goto free; } + /* EAS definitely does *not* handle SMT */ + if (sched_smt_active()) + goto free; + for_each_cpu(i, cpu_map) { /* Skip already covered CPUs. */ if (find_pd(pd, i)) -- 2.24.0