Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1320626ybf; Thu, 27 Feb 2020 08:44:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzBtD3cBLGJY1AdjtZLDI7dOj+Nd/aT3oJWitj9PKB0dU60lDELadgUKQi7uV3hyAigbEl7 X-Received: by 2002:a05:6808:4c2:: with SMTP id a2mr3936971oie.118.1582821896529; Thu, 27 Feb 2020 08:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582821896; cv=none; d=google.com; s=arc-20160816; b=pTd/4+oxVEyyX2G9QYrdjaYI1we28KPxriuJa+BucTIpQse5PgVBA5QYvmOlFYGvJ/ nOOrQPgG91UWEtx+ZYvZaWMw8o98W0FmQTWQ5ep1ASukm93Ngz+dTgEdhTzyNfNPjfyc eFRvREz1EH0YmXjATCGyF2DTldQ340FlpTOOL8zHy0VMsT6iL53/IfLSa74Cr4rMGJ9P LAt09yPpfMPLixF68xGQ1bcN4x5SfRShZhnTE07cpvOj+2rlAUXBP9YQiNueZGCdi/qm md2wCLP+7HF1TNabhTmGzv520z41kPNCdBrdJSSqIFKTTuxSFr1lhkGUyWuqIIPZIVKt TVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=NACdBb9ILJhm9q8ciA5O4wCIj0lUEGyHQ5zh/0NSe3M=; b=LT8ugggpCd0KaIln41OpHd2ROGgnnSVeqAT5JuQ6epIzZ/7LDKTZe3s6B7F2cou+f2 DyS5YOCKkBBm+zFphHoVGo+Y3+lYE2KwuTPCHBin5angfK2Wtj8MmbiQE3/7YDGSSMCf KD9Ba5qnmj/qHqVMzEZLGWLNlBdrodk5S3fvj7COV6H6PXa+NK8rdfyRERnZZxafUhv9 bhUvVLAqWUWxucdl1H04sSBOVxY9IyxpAsGNO6tZ32ofQfm0LpQVygV1SJEd1+8Grry6 BZPDuZnJcAFetzftUZomtV/DvD6em7U4YQIwObSlWgCpc3nj4viz9rlvaf8TFCCszyxc ccTg== 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 110si2013142otj.303.2020.02.27.08.44.44; Thu, 27 Feb 2020 08:44:56 -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 S1730409AbgB0QnA (ORCPT + 99 others); Thu, 27 Feb 2020 11:43:00 -0500 Received: from foss.arm.com ([217.140.110.172]:54616 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729146AbgB0QnA (ORCPT ); Thu, 27 Feb 2020 11:43:00 -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 8D4391FB; Thu, 27 Feb 2020 08:42:59 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 079423F7B4; Thu, 27 Feb 2020 08:42:57 -0800 (PST) References: <20200226164118.6405-1-valentin.schneider@arm.com> <20200226164118.6405-2-valentin.schneider@arm.com> <20200227130001.GA107011@google.com> <7ce12aa2-1925-f991-a85f-5bd81ba668fb@arm.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Dietmar Eggemann Cc: Quentin Perret , 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 Subject: Re: [PATCH 1/2] sched/topology: Don't enable EAS on SMT systems In-reply-to: <7ce12aa2-1925-f991-a85f-5bd81ba668fb@arm.com> Date: Thu, 27 Feb 2020 16:42:55 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27 2020, Dietmar Eggemann wrote: >>> + /* 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. > ;-) Right, the rst doc says "EAS on SMT is not supported" but I think that can be interpreted as "EAS on !asym SMT". I'll add the warning and update the comment.