Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2550158imm; Mon, 10 Sep 2018 02:58:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYHEtrTzVfGUrYV5FxSygsbcC7A4GI/ljjTadPkRhaTlfYZIQpE/QsuF2Gm6SCJYL8GxieC X-Received: by 2002:a63:cf09:: with SMTP id j9-v6mr21284359pgg.195.1536573480342; Mon, 10 Sep 2018 02:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536573480; cv=none; d=google.com; s=arc-20160816; b=EAfl30/c3F4qBdH+V6OuYIPAzPGm08yqad6AG4EJFVIKb8CBObWP0dYfrcvWby1ACd YYy6RV7tDkFmZVTFZ3knozPYj66wgq2mfezoLd40z7uE3rd0Tj8Zyo1SrP7E1igjR5Jh Fvxu0Xih1OK3Q5GhEC4lDaclU6imPVN9lxYsSgUGB3V/hrVuT62nPapAG3z+Aqy5X+mV hyvRxfdBXQlOTdodgb7XuDsdBziLwmMCEoXEs+w/g/ncIbAm/Z4YrCZ6NCPLM9qnpBJE NtxMzWlgV6f0zoFIOSXo4SKaDj3Yi9EuJ+H1snnMiKRrtn0t6Y88HZhcJVoPIBzmCs7n P3bQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ep5cPokQ1dlvlkwBTMlR+lbxwvOpk9iV8eUT3bAVOQM=; b=XgpbtBZbi/Hls4cDckznuskfJJM/VAZ0KxHs+EKTIir5UfCFduzGXjvEHQxm3OyDSk iQnsry5GxQHqfIV3uwy4RP9XHqyzKNAgopRoRgF07k9tQGHlXoEYLFaNJHzAyi21LwIf XcgOqLSN+toDEaCMRTMsVQwzKGQ8Q33/BPTVLBHJwJxgSHbavd0CZ7HTwwSTtIqa/PZx a6ICDdzRow1ezD3LrV3sQnxBGxJ1tl0ACdl+Xx+Et3GxPWr3WdEuQj5msayllNr6oh/s pZAyGhzT34u1LI2wUZxvHAancHQdzkGQTZhnIveEFIpE/Ja83sZrkyTl1KcqJejcFAqj uRQw== 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 u76-v6si18471222pfj.58.2018.09.10.02.57.45; Mon, 10 Sep 2018 02:58:00 -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 S1727989AbeIJOtv (ORCPT + 99 others); Mon, 10 Sep 2018 10:49:51 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:55415 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbeIJOtv (ORCPT ); Mon, 10 Sep 2018 10:49:51 -0400 Received: from 79.184.255.178.ipv4.supernova.orange.pl (79.184.255.178) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.123) id 9579df7b1aaac1ae; Mon, 10 Sep 2018 11:56:34 +0200 From: "Rafael J. Wysocki" To: Quentin Perret 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 Date: Mon, 10 Sep 2018 11:53:58 +0200 Message-ID: <3619149.Cl0Cp2apok@aspire.rjw.lan> In-Reply-To: <20180820094420.26590-11-quentin.perret@arm.com> References: <20180820094420.26590-1-quentin.perret@arm.com> <20180820094420.26590-11-quentin.perret@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Would it be possible to make that clearer? Thanks, Rafael