Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp723605imm; Thu, 4 Oct 2018 02:11:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV62sfafUIIZUD15eaE9XIk/v63nCFqASOVYlsgsTk2VCj/hr4ZeSTM0Wq3yxMc4XwGMjs4/R X-Received: by 2002:a63:c20f:: with SMTP id b15-v6mr4921925pgd.13.1538644284238; Thu, 04 Oct 2018 02:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538644284; cv=none; d=google.com; s=arc-20160816; b=Xbp4WZZb+Q2hpvb20mTGf0LQdXWAL9xuOpUtdasTOV5dp4mFmVM+itoorKh9OvVjmK zjUxm6/nG9pXkF7kCHQrQhqcXG4zMhn4RXvCfLY5rU/Aa7nXxyP+ECOacy/nJtZ681jW 6qrplWEI01nCnBgncfB6gAu2aP/DgQyUTDeX30Kcgz6cGmFK/Ika0tzWZzWxKKkeTgZY 3hX0IGElL//sd6SKarbVfdAlzsSw0mw2dRQvi90feLl3HMCFIjO/lm8TvtNiF1RPP+cn G9W7MOCPwx8trzXolB7Z3nZ3hUM0MQsMV0Bhvei+61BgOCe185/WoETK2dxKX++47Fyd uA+A== 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; bh=3Qzg2/1D90gXidnbb0yazRTGVtlBnmLKVbf23ECldTs=; b=Z9MPkogNJrTvgTmD1xlfh35W+ndcvKqWF8+Ka3R1wflksvWDHdNcEKHz7L82eJ+CGJ KZpYA1FJnyj8OHEPjMMtxF16saRKroTH5Dc6eQYmwle528ThG/uI7EUHKaSMVPnJ9boJ B32pPnjgZZU6KghS6d9w4m4kNduvNINfbt7GS6k9wAdCtSyHAF6OjCc63Tje5PGdHMg0 45rkgsOqsk2I9oa07kvJvT3G7dshDx9HdtRmbgqKMrcdWa0QuM8nUPZ2gPdkU4ZMiCKo rIZtbX+pNFHb75zRJhS0RVX/LOHQHGDL6mAmlSboj0rn6B0JbB+T5kXv5nJSOZHAjMVC yIuQ== 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 o2-v6si3994232pgb.438.2018.10.04.02.11.08; Thu, 04 Oct 2018 02:11:24 -0700 (PDT) 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 S1727460AbeJDQDN (ORCPT + 99 others); Thu, 4 Oct 2018 12:03:13 -0400 Received: from foss.arm.com ([217.140.101.70]:32828 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeJDQDN (ORCPT ); Thu, 4 Oct 2018 12:03:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 43F1180D; Thu, 4 Oct 2018 02:10:54 -0700 (PDT) Received: from queper01-lin (queper01-lin.Emea.Arm.com [10.4.13.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1E3943F5D3; Thu, 4 Oct 2018 02:10:49 -0700 (PDT) Date: Thu, 4 Oct 2018 10:10:48 +0100 From: Quentin Perret To: Peter Zijlstra Cc: rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, mingo@redhat.com, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, chris.redpath@arm.com, patrick.bellasi@arm.com, valentin.schneider@arm.com, vincent.guittot@linaro.org, thara.gopinath@linaro.org, viresh.kumar@linaro.org, tkjos@google.com, joel@joelfernandes.org, smuckle@google.com, adharmap@codeaurora.org, skannan@codeaurora.org, pkondeti@codeaurora.org, juri.lelli@redhat.com, edubezval@gmail.com, srinivas.pandruvada@linux.intel.com, currojerez@riseup.net, javi.merino@kernel.org Subject: Re: [PATCH v7 08/14] sched/topology: Disable EAS on inappropriate platforms Message-ID: <20181004091046.7nn2odqrjy7tp5vx@queper01-lin> References: <20180912091309.7551-1-quentin.perret@arm.com> <20180912091309.7551-9-quentin.perret@arm.com> <20181003162719.GB19252@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181003162719.GB19252@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 03 Oct 2018 at 18:27:19 (+0200), Peter Zijlstra wrote: > On Wed, Sep 12, 2018 at 10:13:03AM +0100, Quentin Perret wrote: > > @@ -288,6 +321,21 @@ static void build_perf_domains(const struct cpumask *cpu_map) > > goto free; > > tmp->next = pd; > > pd = tmp; > > + > > + /* > > + * Count performance domains and capacity states for the > > + * complexity check. > > + */ > > + nr_pd++; > > + nr_cs += em_pd_nr_cap_states(pd->obj); > > + } > > + > > + /* Bail out if the Energy Model complexity is too high. */ > > + if (nr_pd * (nr_cs + nr_cpus) > EM_MAX_COMPLEXITY) { > > + if (sched_debug()) > > + pr_info("rd %*pbl: EM complexity is too high\n ", > > + cpumask_pr_args(cpu_map)); > > + goto free; > > } > > I would make than an unconditional WARN, we do not really expect that to > trigger, but then it does, we really don't want to hide it. OTOH that also means that some people with big asymmetric machines can get a WARN message every time they boot, and even if they don't want to use EAS. Now, that shouldn't happen any time soon, so it's maybe a good thing if we get reports when/if people start to hit that one, so why not ... Thanks, Quentin