Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1305436ybf; Thu, 27 Feb 2020 08:28:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxdA0dz2bX4R2OYJovlwQZX1BAQa4reOPALO4RM0F9p2xGuHziPTJwGh/pRRa10JV27T1i1 X-Received: by 2002:a05:6830:1e2b:: with SMTP id t11mr427478otr.81.1582820906429; Thu, 27 Feb 2020 08:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582820906; cv=none; d=google.com; s=arc-20160816; b=FTLIS8KMBmCxRIwzG3Wf4uGlC5dSjCMAvCXxoh7JSnok8Mr1Tf+/UdO8yWiCNJt8Zk S+LkKf+VkRDZVMjbJxYzQchKZMRx/YihWOGBDaIdNDtH7L3C6oIC1ovDdlbosawG6LfQ APshXmPhb3tRbFsR2AdDnAPkkm+ZTGPJDOIjk8I8afwJzy5uOD/SRu6xBgkYpb8exwpQ Gbxs6T3Z/yb/0p0cp0BFH20C9gV6ElPycKq6U738z8v74R6BSxW/ySf7WD6CuIbSArtI RQ5riYRQcgYSuRUS2lYvxAUDsENo1/JSlZiA+yO332X600x7FK8TGFayI+8gyo/SFh2J gA9g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DBdYu890qeK9KS7sGrFe7Ao5p7EWXPlUgQrFY9q8WMc=; b=OJideRn2+77yRVqmeHhuOKxsyb3r9XLgsCWiCVSQ9x7gg+Qyfuymlt3b6wYficUh8s dkqd5RfQKPxCVJBcHjPst6+CkX5x9BuPflaeF+dkoWukiDHuPKAxumspAvvP3ZEeJ6Ym Iumgtd5YwPNlGN0jOqba/AN/L2qQp1rFkma/b6PMSHGUCNK1kj3WdZGyIL9jZrg6NK3T rV4+IDsTLhD+CCSn7qknQu/Yw2o5tXEfQuJGml0F7AGzJmNGKxQ7W9F2O8JV6mtZ2Xtt DMuhc3uJ+XOSqHMRFd8hIBSD3bzIwIFZ+lslZ5PgCDA6co/UlXnuSID8HxHYdus+iUYH HbWg== 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 q19si1882586otm.221.2020.02.27.08.28.14; Thu, 27 Feb 2020 08:28:26 -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 S1729987AbgB0Q2E (ORCPT + 99 others); Thu, 27 Feb 2020 11:28:04 -0500 Received: from foss.arm.com ([217.140.110.172]:54360 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729263AbgB0Q2E (ORCPT ); Thu, 27 Feb 2020 11:28:04 -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 2DCD61FB; Thu, 27 Feb 2020 08:28:04 -0800 (PST) Received: from [10.0.8.126] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C6DF3F7B4; Thu, 27 Feb 2020 08:28:02 -0800 (PST) Subject: Re: [PATCH 1/2] sched/topology: Don't enable EAS on SMT systems To: Quentin Perret , Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Zijlstra , Ingo Molnar , Vincent Guittot , morten.rasmussen@arm.com, Catalin Marinas , Will Deacon , Mark Rutland , kernel-team@android.com References: <20200226164118.6405-1-valentin.schneider@arm.com> <20200226164118.6405-2-valentin.schneider@arm.com> <20200227130001.GA107011@google.com> From: Dietmar Eggemann Message-ID: <7ce12aa2-1925-f991-a85f-5bd81ba668fb@arm.com> Date: Thu, 27 Feb 2020 16:28:01 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200227130001.GA107011@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.02.20 13:00, Quentin Perret wrote: > 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()) Can you add a pr_warn() and use the current comment as the warning message? Since we have one for !Asym CPU capacity and !schedutil. >> + goto free; >> + [...] There is this 'EAS can be used ...' list of currently 4 items in the build_perf_domains() function header. You could include 'X. No SMT support' there. ;-)