Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp748008imm; Thu, 4 Oct 2018 02:40:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV60HZ4UF06eR2CP6IXScsluYnEdhp1QKa0tyEfCO01n5SSi1W8IBGqPlCCMdNi/gIlywq3gj X-Received: by 2002:a63:306:: with SMTP id 6-v6mr4972888pgd.393.1538646016478; Thu, 04 Oct 2018 02:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538646016; cv=none; d=google.com; s=arc-20160816; b=Tnq2JNg/Jk+Ypq1g2tQF++CclGymx8j1Jj1wnK5u6emTVjLmxT9iaKW0IofQ9sbZW2 kY81gy6GayerVA0AdlbRjmuHUUxlQTdvtmnvSqVqpP1QcCX4j9I3DxGY3kbnS0fb+Zc6 o5Ht82Vpxv2XLC/d6KXVn3/9GI7E5iqAgEY+Qk/VW9AZkkr5tB9XawZynFoUi8Z99yFJ WO9OPU6zeCUmKyhGe+y0Us98Q2zDseuu7bgBjMEHQS/s3AeFzZtc9Xzfju4PePKLmezZ gwa64yhxiMnGvBZ8FBhwLUsUu4BkxbP2r0Buim1KNjXooXJMArCfXTWVSG4lhuGtm5Ou uExg== 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=u7sC124KIfJt5Z3yO1gC336nP2Cq0NjjiL+U5osnltA=; b=S/d6yTzUyj8o/AOLg4Aawns6o03/ORO89ipsv24F8i/BdWWVd46/yiZ0bB6xIQkG/T TY2r1/W/jGGcJfezpLeN3ZRsunWKKZf4MKmhM2yA8KddV28v5eYmau9WwWTMznbU8ipZ I4gNBzKrqsmlfyOazzN9uhUwubspUwG/Di75jiiPl0fLbAqSXFoAND1dNTJj0SZzlnsY s6SvCwzB3MejyWJmtJ0LZYWSPFmoWplKYN2ihmoX9mxV50/zd54QKRm7cCVzbkzN/ea6 MNm0jMeNmxoe6KCX1NGr8YuaCAoSNfFdPk5hSMrnL+bTUIxMhCQ8m3f2+UUtJPVV0olk YrIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XwsHl+Oi; 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 t79-v6si4697931pfa.170.2018.10.04.02.40.00; Thu, 04 Oct 2018 02:40:16 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XwsHl+Oi; 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 S1728103AbeJDQb1 (ORCPT + 99 others); Thu, 4 Oct 2018 12:31:27 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60194 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbeJDQb1 (ORCPT ); Thu, 4 Oct 2018 12:31:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=u7sC124KIfJt5Z3yO1gC336nP2Cq0NjjiL+U5osnltA=; b=XwsHl+OiIHPfqlr8/vFiqL0j1 xp4cHtbBlqGx1g0nETkV2rlNQPF1WX/RLbEydIcW5ZXptl3m9OR4RJxD5F1tKsfYb9pGNwAznFuHA 7uiyxdymXfol8TeHbsZhZniTnr94mWwhQ9UCeJ9WTb3qS51x3JS24f/u4zkitCztXBZ97PnX6WO53 ykxx5gWM4ZBoXJ4x9z4eE2N/Z/pQzRGREpKhHa1bNiEmB5BL7WjIM31+ZDzModGgfRbCmwNw9OO44 hl2ubGiwG9+zOiP8J67/UQcDbC2tZXh3PJ6u3XjPPZa88nRuLoBtPCr3uP2xtM4ShAgytxfq8Dbov JBYx8/Xew==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g805q-0001rG-Nu; Thu, 04 Oct 2018 09:38:51 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 45E52202695A2; Thu, 4 Oct 2018 11:38:48 +0200 (CEST) Date: Thu, 4 Oct 2018 11:38:48 +0200 From: Peter Zijlstra To: Quentin Perret 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: <20181004093848.GM19272@hirez.programming.kicks-ass.net> References: <20180912091309.7551-1-quentin.perret@arm.com> <20180912091309.7551-9-quentin.perret@arm.com> <20181003162719.GB19252@hirez.programming.kicks-ass.net> <20181004091046.7nn2odqrjy7tp5vx@queper01-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181004091046.7nn2odqrjy7tp5vx@queper01-lin> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 10:10:48AM +0100, Quentin Perret wrote: > 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 ... Right, and if becomes a real problem we can think of a solution (like maybe a DT thingy that says to not use EAS, or a 'better' EAS algorithm).