Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp920698ybi; Wed, 3 Jul 2019 06:41:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxe0eGahhbuj/jBXpTAasd4t8Yb5RcnCTirTE5Jo1wV2MBcgCm8tzB0CrZan9alMrVbIlIt X-Received: by 2002:a63:6d8d:: with SMTP id i135mr14808402pgc.303.1562161261123; Wed, 03 Jul 2019 06:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562161261; cv=none; d=google.com; s=arc-20160816; b=SU5Imkznhwq9bZf8MESYPYszy3mrJtJjzY4QAqN1AQqB9PutOcGczx05dSq0CTR4hK 8EwfeEOSZ3lbUE9KgWdnTh0E0txKQAc2QBIdcS0SMkc2mEnw5WAAk8pOdrjJaRg5SaFB zjKDT5r/eWLx7wR13dB8Ypt3H3vk/sOIsRGAv16Ln5E6s386KhFBrXaGEYSMp5HieMKE ACfQzz3YiDbu6vrjkrCVI0OJafPKnnwLpcE+C31Bj5lmKI+nFc4oZN6MlQC3Yl5l0TSw MELf21D+3HAqsd5OkElzWZbCPl6ZT7dm05rPDUTIkROgqoYZms0rQwFHCqtgpXoJiY1G XuCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=QVpdq8EdzSW7zy4ZF6my8aU7Zr2cBRie8d6OWS13zEc=; b=WzACPZtisTgD82m+8tMsCD+vEdEcBnoaNrGLWJOIS/I7XRE026o6wO/WwKjRwl3cql Mau4YvGYnDtbkOyCEQHFUJcaOZcvb4OE3UafaPG05I8ssXqglaR0BxpO2H/+zPTDhnMJ JkXDHmsrN65xMi53LhBGnWxVAVQmRM3EYV/wssF7VYixv7d2AsTK4GIy1hr/VTdcDpFk mrSQaaNPh5Vr88RpXbTfCS3dadT8KSAKZphXDu8a1CL6X1JfQPOJqZNygzLT21Pg5KFl +nd3AkvB7vMn5navQV4mzgD0WVh3lxW4cTIR4dJUNxA9/osFinMSI5GL1JBFW7DLdYsT Rz0w== 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 33si2244013plk.225.2019.07.03.06.40.45; Wed, 03 Jul 2019 06:41:01 -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 S1726635AbfGCNjB (ORCPT + 99 others); Wed, 3 Jul 2019 09:39:01 -0400 Received: from foss.arm.com ([217.140.110.172]:48220 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfGCNjB (ORCPT ); Wed, 3 Jul 2019 09:39:01 -0400 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 4C9052B; Wed, 3 Jul 2019 06:39:00 -0700 (PDT) Received: from [10.1.195.43] (e107049-lin.cambridge.arm.com [10.1.195.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1C42B3F718; Wed, 3 Jul 2019 06:38:58 -0700 (PDT) Subject: Re: [RFC PATCH v2 0/5] sched/cpufreq: Make schedutil energy aware To: Peter Zijlstra 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 References: <20190627171603.14767-1-douglas.raillard@arm.com> <20190702154422.GV3436@hirez.programming.kicks-ass.net> From: Douglas Raillard Organization: ARM Message-ID: <590e3dd9-ea4e-5230-d12c-d04bb3916e89@arm.com> Date: Wed, 3 Jul 2019 14:38:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190702154422.GV3436@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB-large Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 7/2/19 4:44 PM, Peter Zijlstra wrote: > 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? That's correct, the cost information about each OPP has been introduced recently in mainline by the energy model series. Without that info, the only way to skip them that comes to my mind is to set a policy min frequency, since these inefficient OPPs are usually located at the lower end. Thanks, Douglas