From patchwork Tue Jul 20 09:41:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 481897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0E67C07E9B for ; Tue, 20 Jul 2021 09:43:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BBC7E6120F for ; Tue, 20 Jul 2021 09:43:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235407AbhGTJC2 (ORCPT ); Tue, 20 Jul 2021 05:02:28 -0400 Received: from foss.arm.com ([217.140.110.172]:54684 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235929AbhGTJCJ (ORCPT ); Tue, 20 Jul 2021 05:02:09 -0400 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 764CA6D; Tue, 20 Jul 2021 02:42:14 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.6.251]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 32F343F73D; Tue, 20 Jul 2021 02:42:11 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org Cc: Chris.Redpath@arm.com, lukasz.luba@arm.com, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, qperret@google.com, linux-pm@vger.kernel.org, stable@vger.kernel.org, peterz@infradead.org, rjw@rjwysocki.net, viresh.kumar@linaro.org, vincent.guittot@linaro.org, mingo@redhat.com, juri.lelli@redhat.com, rostedt@goodmis.org, segall@google.com, mgorman@suse.de, bristot@redhat.com, CCj.Yeh@mediatek.com Subject: [PATCH v2 0/1] Improve EAS energy estimation and increase precision Date: Tue, 20 Jul 2021 10:41:52 +0100 Message-Id: <20210720094153.31097-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi all, Here is a the v2 improving EAS estimation precision. The v1 and discussion can be found at: https://lore.kernel.org/lkml/20210625152603.25960-1-lukasz.luba@arm.com/ changes: v2: - dropped first two patches - implemented better resolution for 64-bit only machines according to Peter's comment and scale_load() example - power value multiplied by 1000 not 10000 - added 'Fixes' tag, so it could be picked into stable trees easily - extended patch descirpion with example corenr case scenario Regards, Lukasz Lukasz Luba (1): PM: EM: Increase energy calculation precision include/linux/energy_model.h | 16 ++++++++++++++++ kernel/power/energy_model.c | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-)