Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp906958rdb; Wed, 6 Dec 2023 03:31:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDn5Zw/BUx2qcFOQommkRSQRDAehxBLYhmwQF5A2jtx+CUquvvSIk3BeePCg1vQEftkP4j X-Received: by 2002:a05:6a20:734e:b0:18b:d946:5d1 with SMTP id v14-20020a056a20734e00b0018bd94605d1mr582404pzc.54.1701862266781; Wed, 06 Dec 2023 03:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701862266; cv=none; d=google.com; s=arc-20160816; b=JXR1JDFfZBsIZO0SXOi4H2NmBFXD/Bu7UKUQnzVkztA9fkn/RUbk7ZXuco5C7Vwbnf 2INna6tSu06SCw8W9Ya5KScaRbH0AOLMsLvMuqUhooZo1lbOPmcdmHm0/Ypithk5XZ6x wRUwrRYawOlEtbZUirpfc4UJaq2X8uUfwM8CKm0mDxmAZeWOlwzrbzcv+oTww+cwMf+b KT/0XtUMtJzag5kExbUgLkhfeLINrWU2kL6NeCgQhm0IkLBWbqz4sWSvQc/Ili9NC6KU qyO8Nc0LaGn80OxH3vCTm7WJR9egGdiDDzzrkXw441gB8BGKE9R4IowaqBG15gT8HQc6 dzNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=korUuJigqxLOlqmsyGfAioUaPdi6f/ZBLFvRQMkXNLg=; fh=8IgpUQ2T6XGOjA/qDosxdUSIIBz0a6nQ23NA8pgv1Tg=; b=Xai19kXkDzVm9aw+3VJTSdeVs0lohW2gdBetvPQfjGDkyMbk5hoA1F0i0QCWrh/fUl TwgVLoKjoSHCXqR6KYTpgWIRh3QWIo+T9EDvDQQkEEPNqswcUrmevmJxuMaLgAxZsO0t l4So+p1S5Lm2WerQo2f7v5udo1bq3CRQRRpytlG81e9pgKRD6s7b6tvtMvit6Y0nLLKe fi70dg+5tYhjZvQluULmWad68fx4nRSA9YqHAzz6fs9xcmaSPo72vGj9IWt9YiCB4z8x zwgFacdm20fDkvQJkFkvUdwsvM+SLukWb8FAQfv7Ju79GxNucmaU6/IMZrZLB47UBtsH A6Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f18-20020a056a00229200b006cdefbf53besi9920704pfe.104.2023.12.06.03.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 03:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0323480CBF1E; Wed, 6 Dec 2023 03:31:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377612AbjLFLap (ORCPT + 99 others); Wed, 6 Dec 2023 06:30:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377688AbjLFLam (ORCPT ); Wed, 6 Dec 2023 06:30:42 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0556A137; Wed, 6 Dec 2023 03:30:44 -0800 (PST) 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 4333EC15; Wed, 6 Dec 2023 03:31:30 -0800 (PST) Received: from e129166.arm.com (unknown [10.57.1.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id ECD243F5A1; Wed, 6 Dec 2023 03:30:42 -0800 (PST) From: Lukasz Luba To: linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-pm@vger.kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com Subject: [PATCH 0/5] Add callback for cooling list update to speed-up IPA Date: Wed, 6 Dec 2023 11:31:33 +0000 Message-Id: <20231206113138.3576492-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 03:31:03 -0800 (PST) Hi all, The patch set a new callback for thermal governors and implementation for Intelligent Power Allocator. The goal is to move the memory allocations and heavy computations (multiplications) out of throttle() callback hot path. In addition there are some small clean-ups for IPA code. Regards, Lukasz Lukasz Luba (5): thermal: core: Add callback for governors with cooling instances change thermal: gov_power_allocator: Refactor check_power_actors() thermal: gov_power_allocator: Move memory allocation out of throttle() thermal: gov_power_allocator: Simplify checks for valid power actor thermal: gov_power_allocator: Refactor checks in divvy_up_power() drivers/thermal/gov_power_allocator.c | 202 +++++++++++++++++--------- drivers/thermal/thermal_core.c | 14 ++ include/linux/thermal.h | 4 + 3 files changed, 154 insertions(+), 66 deletions(-) -- 2.25.1