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 92FF4C433DF for ; Thu, 8 Oct 2020 17:04:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 510F5221FE for ; Thu, 8 Oct 2020 17:04:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730335AbgJHREp (ORCPT ); Thu, 8 Oct 2020 13:04:45 -0400 Received: from foss.arm.com ([217.140.110.172]:39554 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727698AbgJHREp (ORCPT ); Thu, 8 Oct 2020 13:04:45 -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 A269AD6E; Thu, 8 Oct 2020 10:04:44 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.48.204]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0A21F3F802; Thu, 8 Oct 2020 10:04:41 -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 v2 0/2] Improve the estimations in Intelligent Power Allocation Date: Thu, 8 Oct 2020 18:04:24 +0100 Message-Id: <20201008170426.465-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 | 62 +++++++++++++-------------- 1 file changed, 31 insertions(+), 31 deletions(-) -- 2.17.1