From patchwork Fri Oct 9 13:58:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 11825857 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 037EB1744 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 E50EE222D5 for ; Fri, 9 Oct 2020 13:59:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387807AbgJIN7C (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-pm@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(-)