Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1528677imm; Fri, 7 Sep 2018 01:39:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnTDpZSRTRP3d+slA1NqQKztEEPFT/OdZld9f5GOxsAsHb87UbCIz7aBGeToWUfiDJxJmN X-Received: by 2002:a63:1921:: with SMTP id z33-v6mr7220142pgl.302.1536309582034; Fri, 07 Sep 2018 01:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536309582; cv=none; d=google.com; s=arc-20160816; b=Yhbnldjn3FC5WpqcnNdDpTdIG0Cx5JF0RWoMn4SDhACB+zrjo9hxFwt6PR8fanMk2Z 95KaHOwXtHeLohTlGxuafbSyTFZ17g8On38FGQUlRkt739uqIklHipie7POFs1JNzYGX e7IeojFPtcX72iF/Zz/WZmYpFqR3Z0QiQf6yyYbnmmKhVMZZfYFT4cl9xbf+oMyskLIy IKZviCoZZ3KVt3pRDB6rux5wTUBFzKIaxYjyKPG4RzJzg/zww9BUs2Ol0WgLA3XQ1mNd yN+hTU7eePG/RNnsOioeNQBPtMdlIlJU6rA6z+MwiAURfgOincna6RrtFvBVfRR8ivNY afUQ== 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=Kq9yjxHqTKoS7RzW86VLux6GooJGAb+0RF0HQTOGtcQ=; b=niXHzP1a4veJZd4098mQJUUWZIyPLFeV+DIwqfPovrBzDs2SA8biINIpMnFNPI25GE TGLuJC1gvHJroFYBnQYPRi/wI6WAkmG6+5Dj/sTk5e/D15pMhWp4x62KDOGaiRng394V Y53tYutOKhUbt853SxccCqPl412lE/PL03tmkNQpLsfeBh8Z6RezLd8QnufZpxma6LLC Xc/J4VXZaWtDP4KB+mFdM4Z3lg0ZgqYmeC6bNwFISBPcCqhXl05MVO1QsZqqlMEjw2Kh KtkBpNpn4zqPKdz/cIKMlMpljeKhBQowhMoBAbMdauEQbyAHbO+omLd18NzgZ9rGvBbq zoyw== 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 g69-v6si8462758pfa.204.2018.09.07.01.39.26; Fri, 07 Sep 2018 01:39:41 -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 S1727707AbeIGNEW (ORCPT + 99 others); Fri, 7 Sep 2018 09:04:22 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56572 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727579AbeIGNEW (ORCPT ); Fri, 7 Sep 2018 09:04:22 -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 2EC567A9; Fri, 7 Sep 2018 01:24:32 -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 30DBF3F557; Fri, 7 Sep 2018 01:24:28 -0700 (PDT) Date: Fri, 7 Sep 2018 09:24:23 +0100 From: Quentin Perret To: Dietmar Eggemann Cc: peterz@infradead.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, mingo@redhat.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 v6 07/14] sched/topology: Introduce sched_energy_present static key Message-ID: <20180907082139.ogsdxambyryhgsu4@queper01-lin> References: <20180820094420.26590-1-quentin.perret@arm.com> <20180820094420.26590-8-quentin.perret@arm.com> <20180906092955.tq27mhzfkovo2ehn@queper01-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 06 Sep 2018 at 16:49:47 (-0700), Dietmar Eggemann wrote: > I would prefer a sched_feature. I guess it has to be disabled by default so > that other systems don't have to check rcu_dereference(rd->pd) in the wakeup > path. Right, this is what I had in mind too. I guess downstream kernels can always carry a patch that changes the default if they want it enabled without messing around in userspace. > But since at the beginning EAS will be the only user of the EM there is no > need to change the static key sched_energy_present right now. Indeed, I could add a patch introducing this sched_feat in the series that migrates IPA to using the EM framework (to be posted later). It is just not required until we have a new user. However that IPA-related patchset would then change the default behaviour for users who used to get EAS enabled automatically, but wouldn't after updating their kernel (meaning they'd now have to flip switches by hand whereas it used to "just work"). Not sure if that qualifies as "breaking users" (cf. Linus' rule #1 of kernel development) ... Thanks, Quentin