Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2581756imm; Mon, 10 Sep 2018 03:29:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaDle+SYBRjH0oeFbBawysENAmWMK3s6Ff3ZtGuL0k2r/d6ThBa/7MfabzJr5Et7sZI9zA+ X-Received: by 2002:a63:b507:: with SMTP id y7-v6mr22230537pge.425.1536575350869; Mon, 10 Sep 2018 03:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536575350; cv=none; d=google.com; s=arc-20160816; b=INLzWA1ouFYuX773T4wpxF9o6NGMpYKIkUy0aVjRdbTepuVgbdjLKo241TRymb2Rau hbTfhf0xaoZ0hsBD+LlZlIZTi4WWs/VXCNJXPUglYdKVCBFHV63dBahItkcnOkjL3TEu PZcod/PyRTkhvSGrVi0e9n/9bzZxk+cmVj0wAfA+2gGPkVvXAbVZ8Xx/HnxikN8EVwQT fzvOJqjuPtvStmpTpjniPdT+/sPC3XAtyyp9HC1GzWIMqmE5+FqxNyiv43bFIgDNeYOV Ym4Jva5tFMu7l9Wy0zt+pfktVhQOCUHWHOrEI/yup5Us97FZQXSbODDOVfbV9t3osyeF n9oA== 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=1WXWSFWmzeAgk103UjpYsEipIKJTq+PFvsLU63li140=; b=jMfHnqxvtmCOmfglgCwbzN3feEhi934uzr2nTtzjSnQUOWEcPjqwtrQITX2AMVyhX4 0Jgl5Uubyv6YBkU3Mz+NVsUIqqPikGBavV2vDDYlJqzLL76AGARAlyVI7hYHHpVBTigL sIH0JXnrQPWHYhx9Qd77zXs2BjxqMbtYlX5GruNe15dQHTZIhruAXGEOIcG8kpH2gjeo MFoQ/0gfXY3pz9DATONmC+DkEzjEKg1lpeM2zhrE/GS0W2fK16LJvuI75ZIoG4Ucj5zg xmdlBnsSBc2SR9rGxYy4x3p5WOA64m3REVD3LVDftBiAloiIWAduPBquYdIx42Eq5cxr Kzcg== 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 t1-v6si18751602pfb.208.2018.09.10.03.28.55; Mon, 10 Sep 2018 03:29: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; 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 S1728141AbeIJPVD (ORCPT + 99 others); Mon, 10 Sep 2018 11:21:03 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:53643 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727614AbeIJPVD (ORCPT ); Mon, 10 Sep 2018 11:21:03 -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 ac07e22a11415715; Mon, 10 Sep 2018 12:27:38 +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 12:25:02 +0200 Message-ID: <26961140.kuCyhvbGLP@aspire.rjw.lan> In-Reply-To: <20180910100719.uan6gskxpgu25dj5@queper01-lin> References: <20180820094420.26590-1-quentin.perret@arm.com> <3619149.Cl0Cp2apok@aspire.rjw.lan> <20180910100719.uan6gskxpgu25dj5@queper01-lin> 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, September 10, 2018 12:07:21 PM CEST Quentin Perret wrote: > 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 ? I think so. Thanks, Rafael