From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no 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 6AD5DC433E7 for ; Fri, 9 Oct 2020 13:59:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3167E222C4 for ; Fri, 9 Oct 2020 13:59:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387844AbgJIN7C (ORCPT ); Fri, 9 Oct 2020 09:59:02 -0400 Received: from foss.arm.com ([217.140.110.172]:51812 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbgJIN7B (ORCPT ); Fri, 9 Oct 2020 09:59:01 -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 4FB491063; Fri, 9 Oct 2020 06:59:01 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.51.133]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6EBA83F70D; Fri, 9 Oct 2020 06:58:59 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: daniel.lezcano@linaro.org, amitk@kernel.org, Dietmar.Eggemann@arm.com, lukasz.luba@arm.com, ionela.voinescu@arm.com Subject: [PATCH v3 0/2] Improve the estimations in Intelligent Power Allocation Date: Fri, 9 Oct 2020 14:58:48 +0100 Message-Id: <20201009135850.14727-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, The Intelligent Power Allocation (IPA) estimates the needed coefficients for internal algorithm. It can also estimate the sustainable power value when the DT has not provided one. Fix the 'k_i' coefficient which might be to big related to the other values, when the sustainable power is in an abstract scale. Do the estimation only once and avoid expensive calculation every time the IPA is called. The patch set should apply on top of patches adding upper and lower bound for power actors [1]. Regards, Lukasz Luba [1] https://lore.kernel.org/linux-pm/20201007122256.28080-1-lukasz.luba@arm.com/ Lukasz Luba (2): thermal: power allocator: change the 'k_i' coefficient estimation thermal: power allocator: change how estimation code is called drivers/thermal/gov_power_allocator.c | 73 +++++++++++++-------------- 1 file changed, 35 insertions(+), 38 deletions(-) -- 2.17.1