Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp170693imm; Wed, 5 Sep 2018 23:58:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ1Rc8Dj0CxjHkmEHK5DFmRJgeoTIJYtkdnQtY959jt/juuvFzD8bO86HmAYpgKAV/RHZ2L X-Received: by 2002:a63:1f0a:: with SMTP id f10-v6mr1372663pgf.66.1536217114398; Wed, 05 Sep 2018 23:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536217114; cv=none; d=google.com; s=arc-20160816; b=Zmh2mAnvFlF5p+l1UqeB8Ntens2EjvRctkrGUBn6DBm7xzGWFCALTcqX06R4TiVpdR o/36iHq491qeLjIZgedSY36ssXfTEHbycw0U5Wa2HC2/AD++nebyphrf5P/46ubUvABn 61YhRgbuWNC9MNstaLHUfBI3ncxvFZHd3OSM7oxV7M7/g89HKL8B49uGEPRBkoqNtMu9 5LCPatmxJFm5QumAKfMkBBZiQqGbOgyrZwYD+PAe+UmcUVlEkRrm0aEiQjQpuTqU8zRh Tnz0dSjiBxTQU7Mq9O9qQjtk4JGFDjKmA9IFd0vQ5sNSkzkAb++Cvv4dKHzVrh2UhaHx XksQ== 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:from:references:cc:to:subject; bh=UFUVUVBurOUKveB7EN+wl1qlkIEFpgv/EPhZGjBU6yo=; b=doG3VljzlRJb6r+oiW9DZU5MWBTSf4Yns6Y62BDVRb4YXnwyu3xWtwp+6O4oYc/p0/ 5jioaSaMembFAV4doJSUhRo8p91XqGvJLLbSq1TljFqf/vOgg937yDcYn5NBB4ZE9We0 lXsn+Prpzc4OjQXWL864wG2uf62+kJRFssfl0fIa0QVMPdWmfR15HXh/OnNuZkZI5/FO Gh00Xlf1lYHq5bCzQWrGceVIr2sURtVwCNYY2dLhlAg8PQLn5PK6r5hLnRf8lcekCSe0 XHCIbhW0l01X/cAxG8JmzJjfzcQ/rzPRtMO3NgIpWe4ENR/Qs1DFVl9Ce0xg7mp5V4nX Joxg== 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 m24-v6si4510904pfk.56.2018.09.05.23.58.17; Wed, 05 Sep 2018 23:58:34 -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 S1726495AbeIFLbC (ORCPT + 99 others); Thu, 6 Sep 2018 07:31:02 -0400 Received: from foss.arm.com ([217.140.101.70]:39478 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbeIFLbB (ORCPT ); Thu, 6 Sep 2018 07:31:01 -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 46E387A9; Wed, 5 Sep 2018 23:57:04 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.Emea.Arm.com [10.4.12.239]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2B11C3F557; Wed, 5 Sep 2018 23:56:47 -0700 (PDT) Subject: Re: [PATCH v6 04/14] PM / EM: Expose the Energy Model in sysfs To: Quentin Perret , peterz@infradead.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: gregkh@linuxfoundation.org, mingo@redhat.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 References: <20180820094420.26590-1-quentin.perret@arm.com> <20180820094420.26590-5-quentin.perret@arm.com> From: Dietmar Eggemann Message-ID: Date: Wed, 5 Sep 2018 23:56:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180820094420.26590-5-quentin.perret@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/20/2018 02:44 AM, Quentin Perret wrote: > Expose the Energy Model (read-only) of all performance domains in sysfs > for convenience. To do so, add a kobject to the CPU subsystem under the > umbrella of which a kobject for each performance domain is attached. > > The resulting hierarchy is as follows for a platform with two > performance domains for example: > > /sys/devices/system/cpu/energy_model > ├── pd0 > │   ├── cost > │   ├── cpus > │   ├── frequency > │   └── power cpus (cpumask of the perf domain), frequency (OPP's of the perf domain) and power (values at those OPP's) are somehow easy to grasp, cost is definitely not. You have this nice description in em_pd_energy() what cost actually is. IMHO, might be worth repeating this at least in the patch header here. [...]