Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2562080imm; Mon, 10 Sep 2018 03:09:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYVWmzwPDUSYFnYc9gKH+9LqMcfFJH29tihVECdjR0iJg+NWl9TMnasdeCeLDhoPxIn1jI5 X-Received: by 2002:a63:344b:: with SMTP id b72-v6mr21856908pga.184.1536574145152; Mon, 10 Sep 2018 03:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536574145; cv=none; d=google.com; s=arc-20160816; b=nUs+YCCkgnSCcjqwEiYJxIwZhU57wt1DpTHKK+zAJJ/928tQrS+OM78aKX/hpQScMm kzLFo0XKadGnYZyH/6bX+sqxsNxJij/w0mz0NvNjabkVcdG3hf5bNgg07mO+M3ieSEud PKkCnetCW3ncDWe0juuX0yTbXuq1Q4vsnIpqmLBxrQfRYOmpmJrO+x5ih9ZygqTRCHRM gQosCwdTq9j0Rvz0ASQyjPNpv+EHGp1ASFmXSoJR/9ul19/kccvfk9LRG3hAkNOmkt2g V0ssu49zQEeGgvAjw0SzbBuZx49ETiXEu/TMmnVWRb9YjeBcwnBqceErgpg8uBSj6JA0 NWrQ== 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=IpUpLfJLAMY1+r9m710EwMK1KzG7blJMuM7IF922c+k=; b=qGKPpo1w2N/WeRyT+lkitbL9gGaqMVY+Uf7I+gs2cQj62CEiD8//2n6rWcAb5/OBvj hRHcBUKRus82bBIVPirKjXQldlZOiftEENE2QwXHVtr6phS9JbKVJ1OJF/j39LRBFVP3 5VVUCOOIXKllHqcXidxV01GP6wsmfC6n2Pb6WqtphgCnNXWRd3y8oCHHkltDsVZVng+d jLUedj0XwqehJ9yLNZaRg5yDo/Ro+5sop90/JfB8CvyMHd8VfsjEGNVdEFkaTjdddZNn 3EQ/xFfWkC76quxb/Vfosjy7Tuu47dGiaspgJkcTTjv/Ueq9+MDCBVZ3wYOaXgFFWBCN aLfg== 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 a20-v6si16293093pgi.184.2018.09.10.03.08.50; Mon, 10 Sep 2018 03:09:05 -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 S1728239AbeIJPAo (ORCPT + 99 others); Mon, 10 Sep 2018 11:00:44 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54620 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbeIJPAn (ORCPT ); Mon, 10 Sep 2018 11:00:43 -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 C5B6218A; Mon, 10 Sep 2018 03:07:26 -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 D05AF3F557; Mon, 10 Sep 2018 03:07:22 -0700 (PDT) Date: Mon, 10 Sep 2018 11:07:21 +0100 From: Quentin Perret To: "Rafael J. Wysocki" Cc: peterz@infradead.org, 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 v6 10/14] sched/cpufreq: Refactor the utilization aggregation method Message-ID: <20180910100719.uan6gskxpgu25dj5@queper01-lin> References: <20180820094420.26590-1-quentin.perret@arm.com> <20180820094420.26590-11-quentin.perret@arm.com> <3619149.Cl0Cp2apok@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3619149.Cl0Cp2apok@aspire.rjw.lan> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 10 Sep 2018 at 11:53:58 (+0200), Rafael J. Wysocki wrote: > On Monday, August 20, 2018 11:44:16 AM CEST Quentin Perret wrote: > > Schedutil aggregates the PELT signals of CFS, RT, DL and IRQ in order > > to decide which frequency to request. Energy Aware Scheduling (EAS) > > needs to be able to predict those requests to assess the energy impact > > of scheduling decisions. However, the PELT signals aggregation is only > > done in schedutil for now, hence making it hard to synchronize it with > > EAS. > > > > To address this issue, introduce schedutil_freq_util() to perform the > > aforementioned aggregation and make it available to other parts of the > > scheduler. Since frequency selection and energy estimation still need > > to deal with RT and DL signals slightly differently, schedutil_freq_util() > > is called with a different 'type' parameter in those two contexts, and > > returns an aggregated utilization signal accordingly. > > This is complementary to patch [02/14] IMO. > > schedutil_freq_util() and map_util_freq() introduced by that patch should > always be used together as they are two parts of one algorithm in my view. I agree. > Would it be possible to make that clearer? I could squash the two at the beginning of the series in a preparatory patch that refactors schedutil for EAS all in one go, with a clear mention of what we intend to do (make EAS depend on sugov) in the commit message. Would that work ? Thanks, Quentin