Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3498416ybi; Tue, 2 Jul 2019 08:45:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+6R23nUtsMFkXZ8hTCSCWi9ytH9siGePp3mKaGYzzebym4S8iTAXeqYA9g7HBn67Py8o1 X-Received: by 2002:a63:6f8d:: with SMTP id k135mr31563895pgc.118.1562082310222; Tue, 02 Jul 2019 08:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562082310; cv=none; d=google.com; s=arc-20160816; b=jcd16J81ZjJieVd7gQGK67JfcPr9bTa8ALW9tMa+izSrl8/w9TyA8/sLDAGgs06wh5 GjSyPzAMoXPI0O9KlYnlEW4Ke4gQD7JdZGIR4bFXUNvdRvRGkB/7/Dug2GMVYHkENUuB jmop8LlcI2e3bfVu1idh+x1aqQ6zQCgt0Ytp9t26d/rSWlnpd0Buu8ZGXVZXzwXGxPkY mhBE+u7YQds2N08cKVSlu8Hq+A7mrojoAa626n1bRN28Yj8szMa6a9qlyo94TqrhplZ2 ngOJNjM7ekdeRD+ZKqCC+uP9v/nw21bM27o+/exft4tjOn+eqYB5kl0iWI6ePGoNLi2r dI1Q== 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=yNPjqLdRTJCzgCZVeC3z+YefMIDSKzflp7zcy3fLwqs=; b=GbepxCiq+jYIOsXMNs18otmWWN+rHMJx9GevNRat8K9Y5LaXfX7x0+L+XLixk/+8gN 6OVXjroRmRX9M4dtn8nPk6uNHtooMewjJ14TuLyPrPgyo2MbVod9Nw4qNNjQWe82QGR6 +kiheRhG62GsW1syHU3M2WLceXhUZhw/kA4yayp0MrZSxxrHGAw6tHh4O3w/GW6Lp6lt 8dr17YOkRSLL2l6h6vX0u+q8wfz5SmQia4tEjQKRCr2wYZVT3oWhe7uVmmAABY71nN9Y n7sT4nAQeff9EYkgHmUuq9xT/8npHPAqJHaE0nnlK2rNdcu39xB5AADf7XMsJZu+2p/1 Rjfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=T127DeqE; 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 c9si14148086pfi.143.2019.07.02.08.44.55; Tue, 02 Jul 2019 08:45:10 -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=T127DeqE; 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 S1726963AbfGBPob (ORCPT + 99 others); Tue, 2 Jul 2019 11:44:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42490 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbfGBPob (ORCPT ); Tue, 2 Jul 2019 11:44:31 -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=yNPjqLdRTJCzgCZVeC3z+YefMIDSKzflp7zcy3fLwqs=; b=T127DeqEzG8CkEzFsFjGbAebE motUh25iUQewOFQHvknqYG2eDCh0zjdY7q0TCfFwAExGnZPD2C9Qquo0AZgieACMJQRZMVp6246L5 sA23h3NrnMxHZTijEXwt/v9JYgGVCR4B40Xflz5mJeU7nQhuaEja8z63y9Gb9PS3GAHAZccaY+cht OYqBCWn40sLRWSVCweGwfZOQdFebYwoUSzKai0IjbTNb54SFw3gjA4Z+GKCOfYXf3Kmrx1xAHl7tV tu4p+fVRKxwAdSY4bWQi6zNb+bowRFQbmDv9VdGxpOekg29NE7yf07YVDhzyswriLKM8dUIuvmf+y Bg4kihsaQ==; 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.92 #3 (Red Hat Linux)) id 1hiKxE-0007gr-E5; Tue, 02 Jul 2019 15:44:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 23DB92013A3B6; Tue, 2 Jul 2019 17:44:22 +0200 (CEST) Date: Tue, 2 Jul 2019 17:44:22 +0200 From: Peter Zijlstra To: Douglas RAILLARD Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, quentin.perret@arm.com, patrick.bellasi@arm.com, dietmar.eggemann@arm.com Subject: Re: [RFC PATCH v2 0/5] sched/cpufreq: Make schedutil energy aware Message-ID: <20190702154422.GV3436@hirez.programming.kicks-ass.net> References: <20190627171603.14767-1-douglas.raillard@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190627171603.14767-1-douglas.raillard@arm.com> 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, Jun 27, 2019 at 06:15:58PM +0100, Douglas RAILLARD wrote: > Make schedutil cpufreq governor energy-aware. > > - patch 1 introduces a function to retrieve a frequency given a base > frequency and an energy cost margin. > - patch 2 links Energy Model perf_domain to sugov_policy. > - patch 3 updates get_next_freq() to make use of the Energy Model. > > 1) Selecting the highest possible frequency for a given cost. Some > platforms can have lower frequencies that are less efficient than > higher ones, in which case they should be skipped for most purposes. > They can still be useful to give more freedom to thermal throttling > mechanisms, but not under normal circumstances. > note: the EM framework will warn about such OPPs "hertz/watts ratio > non-monotonically decreasing" Humm, for some reason I was thinking we explicitly skipped those OPPs and they already weren't used. This isn't in fact so, and these first few patches make it so?