Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4254645pxb; Tue, 10 Nov 2020 11:35:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7G+SGrVHzh03FoAOAFUKxbVRI1U/MTDk+pztfpU903urtd1xReWaTiaAu5fYpKgjH9D6w X-Received: by 2002:a17:906:a444:: with SMTP id cb4mr22671119ejb.416.1605036923035; Tue, 10 Nov 2020 11:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036923; cv=none; d=google.com; s=arc-20160816; b=qhTICn9CIHkVIcR8FQj6pYIlPmo5quOSAS+mNOJ9oGq6OAlaaTwbZmFjpeDNwevrjm ZMFvVif3GfJ6ML17QQMebZ7KMN7S0pvXuwihUSfORRSiHXlwdTr04JvkzeqkER8lnnUA XNqqA4Ih4qIYGQLSDuBR6a2/7DSHgqFxxphiA5YKY7QmcHtoC67hIUUMlmkauaIzHT9K kZr35LbhQhWAip4koNBCJ4Ba0dmDl6XwmJPa9TnyT7ytS9spoXzNsNknu2fKLMC7cAve tCI0q+K2gnPjlvCwhVOeesW8n+DZmrcDW8I+n47AJ5K3nEZerEFkrIgyYMbDQSCapCP5 9FwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=zjN4V2HIi7t5V1yE5EQ/0Tonc9lqELoKPGUr8UGft1A=; b=rU/ul1LQQDR88jcm8pQpzzBI+zV6+uTYORs4D4tX02bpzNL1I0gko60SMMp4L/QNxA nS0JenzymmRPQ8ftATo3rHzVH+MiEv83YJHzPN5KWhbtnr9BDdp8XFZZtz0gGKkLZfxK CW/RI0zMgt1FEZ9xkIaj2C9YSnJvmBPEEnSnGR7h+NFYpcDZu31gjcbq6YKOUGj21/ra WlAaxuxH+gSt2KhyAL/aHkNxPSsRj5Vxvr0kAC0JvwfLaZ2dzl1U5qlWUJIq5vexoHnW 2bXoHUZebC7UVmk9nk5lyqnkCGr8TIqHx33lVRYh5DTKKNF/mYrPx1NS0hSB3VTzdnyn XXuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x102si10336778ede.455.2020.11.10.11.34.57; Tue, 10 Nov 2020 11:35:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732652AbgKJTcl (ORCPT + 99 others); Tue, 10 Nov 2020 14:32:41 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:44932 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731874AbgKJTcd (ORCPT ); Tue, 10 Nov 2020 14:32:33 -0500 Received: by mail-oi1-f195.google.com with SMTP id t16so15693723oie.11; Tue, 10 Nov 2020 11:32:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zjN4V2HIi7t5V1yE5EQ/0Tonc9lqELoKPGUr8UGft1A=; b=Enw4R6mJDWrZmSE99fqUhtP0/pLk2c7dBc4mZXEoVuvAB/6OxP61Hp2aE+1vaeDKFY rM7rb9wYRMmLvcGlIBDd3KEGpUDbvLqGt3mGI5VSsHakAu3qUWa3IJodP2iqDVfBhduT CF1o7vk0IySZwH5vGsYNVOs82utOSMlKn02AYQlmFyRU44wuEyHsf7gqyg2TyY95rVo3 xWGCBWhDYa4gh7xyjjjS10i4dc5AqOj7Fua5iHETh0wgSsOYLJbHTEKQYiJZycfYehyv FWWuE/bbdFWKJ4iPAPdX2SzK4ZwkoJqlINXKtdZl74epXdBI/cRsDHMGlaDx4z/iH581 iUPQ== X-Gm-Message-State: AOAM533Qa1o4x7ZC0qEqWC8IzoUmgWFvJ4M3kaiso8sMsJf9ApKNsBbh h2/5qY9J2AEw7X70Cj1lWHm3z/gGJLoNkdsH7p0= X-Received: by 2002:aca:1c0b:: with SMTP id c11mr440766oic.71.1605036752777; Tue, 10 Nov 2020 11:32:32 -0800 (PST) MIME-Version: 1.0 References: <20201103090600.29053-1-lukasz.luba@arm.com> <9382ea70-cc50-7b78-f5de-716678bdefbf@arm.com> In-Reply-To: <9382ea70-cc50-7b78-f5de-716678bdefbf@arm.com> From: "Rafael J. Wysocki" Date: Tue, 10 Nov 2020 20:32:21 +0100 Message-ID: Subject: Re: [PATCH v4 0/4] Clarify abstract scale usage for power values in Energy Model, EAS and IPA To: Lukasz Luba Cc: "Rafael J. Wysocki" , Linux Kernel Mailing List , Linux PM , "open list:DOCUMENTATION" , "devicetree@vger.kernel.org" , Linux ARM , Rob Herring , Amit Kucheria , Jonathan Corbet , Daniel Lezcano , Dietmar Eggemann , Morten Rasmussen , Quentin Perret , Doug Anderson , Matthias Kaehlcke , "Nayak, Rajendra" , Sudeep Holla , Viresh Kumar , Stephen Boyd , Nishanth Menon Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 4, 2020 at 11:58 AM Lukasz Luba wrote: > > Hi Rafael, > > On 11/3/20 9:05 AM, Lukasz Luba wrote: > > Hi all, > > > > The Energy Model supports power values expressed in an abstract scale. > > This has an impact on Intelligent Power Allocation (IPA) and should be > > documented properly. Kernel sub-systems like EAS, IPA and DTPM > > (new comming PowerCap framework) would use the new flag to capture > > potential miss-configuration where the devices have registered different > > power scales, thus cannot operate together. > > > > There was a discussion below v2 of this patch series, which might help > > you to get context of these changes [2]. > > > > The agreed approach is to have the DT as a source of power values expressed > > always in milli-Watts and the only way to submit with abstract scale values > > is via the em_dev_register_perf_domain() API. > > > > Changes: > > v4: > > - change bool to int type for 'miliwatts' in struct em_perf_domain > > (suggested by Quentin) > > - removed one sentence from patch 2/4 in IPA doc power_allocator.rst > > (suggested by Quentin) > > - added reviewed-by from Quentin to 1/4, 3/4, 4/4 patches > > There was no major objections in the v3 and this v4 just addressed > minor comments. The important discussions mostly happen in v2. > > Could you take the patches via your tree, please? Applied as 5.11 material, thanks!