Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1096800ybf; Thu, 27 Feb 2020 05:02:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwiciWQzU1Vx8kobzqENOXJQS4JRte45Fmfk50bodI/1Xu9LwwVY6EVAwRCTt39WhEINngN X-Received: by 2002:a9d:6290:: with SMTP id x16mr3040307otk.343.1582808536308; Thu, 27 Feb 2020 05:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582808536; cv=none; d=google.com; s=arc-20160816; b=FLsJyzmZVcGRShrP5jtcZrLxMhFs8VWurWLRgnB/yAZDMTZJwcXonmro8MNMpQSr81 oylvzEi6WXOzPJHyZwt7mm0N4DewjiX4yUWKDrUdbN+P+BTnfzVPobSQn0SKLgscRQoo X+Xm9vCX79BnZsrHSHhcdbIiKwSN5owTfLnskZojnoFPNjyRr1g8S0UQaTAAuE+ojq0l W4N6Z/uWlsV7xsAk9xAsfrogTHJvxih4PsYeC/rQB+RVFfoQRXC9f7jOj59vpkjV23HO MBAo61OUdKxjKE4k9AzfRXvoSsbQ7litSY1pgswCAaqDOuL+f9UOutOWOYJWAE+rHro3 ExcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lF1WpNMmDIC+u5WUFqN6XI3/wXMvIRCjntbaMdrFGfg=; b=HaQD+IyHyTwaCUDYoIADcTX7WDd99rfmaxIGkadQ1gImOMPqctrnHy8jTMDKMaQLnw /OGtkSKTBCDk3TvStEKI1H5VrNar8o1UOSEAiDKatW/Sd7YTWXyj3BJhfYp58oJJqgm8 eOg+K/LQqIbWkmJRw+DZaYFOxxqVf5kqzahLeqv87aC4Kktq7JPvc7BFyjusEAkzdFvm nnio95wPiqhKPqqKNYDuW2J5+z+aWjjgIX0oyO1KKpygirLO7TlaPpydXc0vaHYMDn95 MFth1NqE7IWetse7pg49u3D1hh+lz8StmphD56WiU/pFqY1X2d/DsVV3GxhlWUEm1PDg qk4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IARaMUZP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si1435053otj.282.2020.02.27.05.01.31; Thu, 27 Feb 2020 05:02:16 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=IARaMUZP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729089AbgB0NAH (ORCPT + 99 others); Thu, 27 Feb 2020 08:00:07 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53357 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728977AbgB0NAH (ORCPT ); Thu, 27 Feb 2020 08:00:07 -0500 Received: by mail-wm1-f67.google.com with SMTP id f15so3459141wml.3 for ; Thu, 27 Feb 2020 05:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lF1WpNMmDIC+u5WUFqN6XI3/wXMvIRCjntbaMdrFGfg=; b=IARaMUZPJiCDFrzzJwyWb6YRob1J06IUMUj73rqLrl3Ppn2wS5eJPgwlML7IHofhy/ 2vf5hO+Nxf4m1l3oC4JUcc7Hycie16A5bdmxyzvR8ybGG19Vv74J/0OdSSzOtXAIAtFm hMdlDcz5qhKEWvM924Bb6wqORS+DdqDMMh0H5v7DlndWs3/uUJKmmlF5c7Pnu8OdtuG1 VApamd3WADlVVWGzYbr2a6BxRq5U34ILOaDQhh/SURP7x9fisOuMZn2MG+h5CFPxnUuh Za4SaJk52aI2JKEpRn4Fpd6QCc2qeQcY9u1+vXWi/UPTVb7jpQ1tclDVVaEd2hmdcgV6 5/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lF1WpNMmDIC+u5WUFqN6XI3/wXMvIRCjntbaMdrFGfg=; b=a6ponZ2+b8rA9VdPJ1tLoAIsj4KT1CnP9Zb9SQR8LZXEq3lfqMOUFteOEjiz2/fhWU MRDjLRhO8LNFxB8AqcstCKgDUGZjrtHXU249RIZbIxd1rh+a3xa+YXkjgPFna2Wk+vM5 OxtzIm2Ac73EBLk/52aQa4jTDxAeEJVlaATHXLajIXw5sM4bn3yaiIDf6BjxeBTwRvYX J/PVploI2cK0WfIf8en7Z0BBAu6VXAqDmd0GqP6yt79tDpbSC0ZlqZHtP9DDuF+PEAvv brALXZFHWuqSxTdSyZl2YIINNOUmj2XbTB6nlR4B61xevqX4Z+PJO5XPMl6JSYteE3cO KOpA== X-Gm-Message-State: APjAAAXfSBAFT7dqdRTwdK4elMc+O9fogilBHroWJT2J/Qq+2Xzmb48P KgyJjubn/9a3MeQUb2Pl00VSaA== X-Received: by 2002:a7b:c119:: with SMTP id w25mr5324707wmi.116.1582808405179; Thu, 27 Feb 2020 05:00:05 -0800 (PST) Received: from google.com ([2a00:79e0:d:110:d6cc:2030:37c1:9964]) by smtp.gmail.com with ESMTPSA id e18sm8033429wrw.70.2020.02.27.05.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 05:00:04 -0800 (PST) Date: Thu, 27 Feb 2020 13:00:01 +0000 From: Quentin Perret To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Zijlstra , Ingo Molnar , Vincent Guittot , Dietmar Eggemann , morten.rasmussen@arm.com, Catalin Marinas , Will Deacon , Mark Rutland , kernel-team@android.com Subject: Re: [PATCH 1/2] sched/topology: Don't enable EAS on SMT systems Message-ID: <20200227130001.GA107011@google.com> References: <20200226164118.6405-1-valentin.schneider@arm.com> <20200226164118.6405-2-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200226164118.6405-2-valentin.schneider@arm.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 26 Feb 2020 at 16:41:17 (+0000), Valentin Schneider wrote: > 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 Acked-by: Quentin Perret Thanks, Quentin > --- > 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 >