Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp968634imm; Wed, 6 Jun 2018 08:31:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLNy3J0BTitCUTQlFekrI5TNRWhI6eeRNGEDvihdiESk1Q2HOdol02SihEevJPzF7aByd8E X-Received: by 2002:a63:7f5c:: with SMTP id p28-v6mr2938256pgn.64.1528299117820; Wed, 06 Jun 2018 08:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528299117; cv=none; d=google.com; s=arc-20160816; b=AqzO/4a19B6/zTRzbGRf2hf7wm/g3KaiEJuwxeYwPSXFLfdrRKoFaJ+csWfa45Rngn wabRQIXJtkne+uvN3qLjMSZQLTBSGzZLemH5xpHUvmPXoeSABYZITK5KX7nCEeQhopgl igK0IwkfLzsb9d3RatbexWE3TgDUvFs4N6/MG9gVoyWnrqX6zpIM+Fyb/vT8sCeRYKkj NhQ6DuQPz8p/liakL3xf5BrMCdTaXbtyehTeh74nBbzWtOChNTAgViv/6xJxZJAxsw9w ci9PTdU1VMZnCXnlKdrE3Kp4fWX3hZsrE0KMvuWtlFB3+o1Kod4cJybpYPpSHVitSzSV SyTA== 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:arc-authentication-results; bh=Uy2mXafLjp+/ADKslHGwEzExTBZlL9M/myyN4FsEa4U=; b=b+fVRYxwKZ88YEcFUZeNqH27hVVNboYDmWWkYx7+q8drAX6xJYLwW56Gz6BzBeEoTa jPiAPTiLj1tb6sqr0jtmRoFzjO5xjhTwQVoG5JWckBFUx4NZQkMxHfqEsyhkekOxru9a pvdhFC5AYJpWHkoWEi4gZvxuFtMHekt//w7wpbC5DYLPpI+VSLiuqGn5ee3RKLIjVmjE W76KJ8KTWuXVGe2hF3/hGXErRkLLSu1IU3SQT0JvoTcgbFN8GsX5+CG4qQT/8lmRIaMD VOQQupmLzsNUJKYMVjRKVgprDdt3jztEp43kibHbPMHAavONdd39TwyOAH3+pAm7rvtL d0Dg== 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 t10-v6si51559693plq.547.2018.06.06.08.31.42; Wed, 06 Jun 2018 08:31:57 -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 S1752073AbeFFP36 (ORCPT + 99 others); Wed, 6 Jun 2018 11:29:58 -0400 Received: from foss.arm.com ([217.140.101.70]:42004 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbeFFP35 (ORCPT ); Wed, 6 Jun 2018 11:29:57 -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 B129D80D; Wed, 6 Jun 2018 08:29:56 -0700 (PDT) Received: from e108498-lin.cambridge.arm.com (e108498-lin.cambridge.arm.com [10.1.210.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAD043F25D; Wed, 6 Jun 2018 08:29:52 -0700 (PDT) Date: Wed, 6 Jun 2018 16:29:51 +0100 From: Quentin Perret To: Juri Lelli Cc: Dietmar Eggemann , peterz@infradead.org, rjw@rjwysocki.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.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, joelaf@google.com, smuckle@google.com, adharmap@quicinc.com, skannan@quicinc.com, pkondeti@codeaurora.org, edubezval@gmail.com, srinivas.pandruvada@linux.intel.com, currojerez@riseup.net, javi.merino@kernel.org Subject: Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework Message-ID: <20180606152950.GH10870@e108498-lin.cambridge.arm.com> References: <20180521142505.6522-1-quentin.perret@arm.com> <20180521142505.6522-4-quentin.perret@arm.com> <20180606143739.GF10870@e108498-lin.cambridge.arm.com> <20180606152000.GB15894@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606152000.GB15894@localhost.localdomain> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 06 Jun 2018 at 17:20:00 (+0200), Juri Lelli wrote: > > > This brings me to another question. Let's say there are multiple users of > > > the Energy Model in the system. Shouldn't the units of frequency and power > > > not standardized, maybe Mhz and mW? > > > The task scheduler doesn't care since it is only interested in power diffs > > > but other user might do. > > > > So the good thing about specifying units is that we can probably assume > > ranges on the values. If the power is in mW, assuming that we're talking > > about a single CPU, it'll probably fit in 16 bits. 65W/core should be > > a reasonable upper-bound ? > > But there are also vendors who might not be happy with disclosing absolute > > values ... These are sometimes considered sensitive and only relative > > numbers are discussed publicly. Now, you can also argue that we already > > have units specified in IPA for ex, and that it doesn't really matter if > > a driver "lies" about the real value, as long as the ratios are correct. > > And I guess that anyone can do measurement on the hardware and get those > > values anyway. So specifying a unit (mW) for the power is probably a > > good idea. > > Mmm, I remember we fought quite a bit while getting capacity-dmpis-mhz > binding accepted, and one of the musts was that the values were going to > be normalized. So, normalized power values again maybe? Hmmm, that's a very good point ... There should be no problems on the scheduler side -- we're only interested in correct ratios. But I'm not sure on the thermal side ... I will double check that. Javi, Viresh, Eduardo: any thoughts about this ? Thanks ! Quentin