Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3718760pxb; Tue, 17 Nov 2020 01:26:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOTh9Vaecere2PJ5zj0HeJNVS3gVnRbx9qxZjTJZduEOQlhn/Zvd1hiBGnEbWHefup7nqN X-Received: by 2002:a05:6402:7c7:: with SMTP id u7mr19774496edy.351.1605605186159; Tue, 17 Nov 2020 01:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605605186; cv=none; d=google.com; s=arc-20160816; b=JlkbCOQkakEtS+3YiitWEFidZg9pBwZ+eZwOimLpdGKoXtBrsa8R1r4KYTjhm/z0Jz 9ttwhc+zuDmgFzbGktNqsytgauX23ApWQM6qznmKHTQxp1TMFejmYuzBqo+TYxO/Ri8t OM5OTJk+2rpmimmeaDiDg5xq131OEThTH3+TPadALQveUSy2yWUag5nTTFmUrfuLoIC/ 9BYg75/YR2+gpRxOHUHgfWnxKo0O4iCuTizjxXNJX0ntlPZPBdvkydYMsbOHLvioPWHr lNWJRQ/houwhGKBADa1bpGtGcgaxAY5qk4nadEW9Wv8XiLac/9mnCn7gIrvozjQ9d7Mm cnsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/2D8YoefNHjzZJWzJJt44qbWRSwRbHQQBd78Rqmi+48=; b=cEC80VyARZqncHXRMDjPM5+XvblqAheTO3G3fbI/JxF1p5rI3cQ34IYYTaBxxpCpq9 wTDcJmeDMpvfVedTiZqpFkOAM79yxaSU4UPgnLFVvX7SdY8mzr7eFBl1Hpq0/jDH8vF1 0tvBXiCYwKLdj26ZcDtgADEcStyM0dg8kdX1d6UuTbZ09M9S1T2b42dToSpRrgVo2FaU 2en/jVb/YTSYxtZiThdqfJsbDZv2OIrMf02L/+DVmyts1wsu8WXzJUvNrtK6e/rJ+/0t /IX2Gdsd+UZmVRQiX8M99bnw1b8iDR/mzUyaHAK01IUA3nwC8MMqta1ptFo1zJhvEm7i sWbw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be17si9311901edb.595.2020.11.17.01.26.03; Tue, 17 Nov 2020 01:26:26 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbgKQJYW (ORCPT + 99 others); Tue, 17 Nov 2020 04:24:22 -0500 Received: from foss.arm.com ([217.140.110.172]:52698 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgKQJYV (ORCPT ); Tue, 17 Nov 2020 04:24:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A35A1042; Tue, 17 Nov 2020 01:24:20 -0800 (PST) Received: from [10.57.25.49] (unknown [10.57.25.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2BDB53F719; Tue, 17 Nov 2020 01:24:15 -0800 (PST) Subject: Re: [PATCH v4 0/4] Clarify abstract scale usage for power values in Energy Model, EAS and IPA To: "Rafael J. Wysocki" Cc: 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 References: <20201103090600.29053-1-lukasz.luba@arm.com> <9382ea70-cc50-7b78-f5de-716678bdefbf@arm.com> From: Lukasz Luba Message-ID: <1685b7c8-e6bb-fc3b-c2ff-5c87c35610f0@arm.com> Date: Tue, 17 Nov 2020 09:24:14 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/10/20 7:32 PM, Rafael J. Wysocki wrote: > 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! > Thank you Rafael! Regards, Lukasz