Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3824710rdh; Fri, 29 Sep 2023 03:36:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1NVDoLxYNZpZ7ngBNr/CZgVCxT6bdblvOfFNEfNWkseu28ShivvJfDxCOlOCVweqwSH50 X-Received: by 2002:a05:6a21:6d88:b0:15e:9923:3e35 with SMTP id wl8-20020a056a216d8800b0015e99233e35mr6330226pzb.19.1695983800640; Fri, 29 Sep 2023 03:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695983800; cv=none; d=google.com; s=arc-20160816; b=OjEs/P6E11UJz8HwqJNhquCf6fVl6o3IqLEWI3JTsMuu352+pg+5N2gF+Z3hLI2a3D MlZseKLSABS6gDQUkZE2DOLZHibeTUUCbEQsGEMhc2mfH5uu0L0UGf1BaI+NixR9qUfu Quw/Tc0Iy4EuU38tL0asFJACcQ8XQ2ED5NMSKNBbERy4ec8TDNef+NipQb5wDbZxiaIU uMk0ZwkBaabMe0y1LTcoPhgkN1UpJs6yPZ2XrfuZ30BQfjxRElWk0Gba8UosGF95veho EQmT20WEP9A4MUpdXTdB28Ymj0otMBy0yEXYwsa+wSTG9JRjtsJTULd0PK3gIXx10q7P lYpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=CEMrO6s2P1e2mJ/2cc8E/MhfvcGR0T7x3P6z51zzK08=; fh=Sntd+G0CthFoKfHeh5KAtcEJMuc35jsG6LFomUCRudQ=; b=JFWV+O5le6mfshyaHPlKZHxgCuOEvS+ODaQsHq35zkZLX13AIWK9KE3lOBMuDD3o6R iBxPPPvlBzC2+BknrDV1dli0xAF+uYWzzlxsKvlLIpBlzEa0bD13cA0wzn0gYpW11T+m MVKg3JOS7wtbO95PMGFhblSBHWGZvpH+dOTziqXM7dwhTL5QGLracwSZrFhSFRBrZOmh cordt9Zi0u0tgFs908ga5omzm2M28xqNhwAngvQGTg5PpoOxVySobl7uEaw49Jdz1JcA uxu/WW5UnlRtdJcZ52h1DO6YWRdhbG4YwaUr8PqaYpjsCyMRFs5d4Dqo/pfizHCHPIAW kO2Q== 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:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l185-20020a6388c2000000b005859de837c9si1579060pgd.105.2023.09.29.03.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 03:36:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C993282F9271; Fri, 29 Sep 2023 03:09:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232997AbjI2KJf (ORCPT + 99 others); Fri, 29 Sep 2023 06:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbjI2KJd (ORCPT ); Fri, 29 Sep 2023 06:09:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8506F1AE; Fri, 29 Sep 2023 03:09:31 -0700 (PDT) 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 9A9291FB; Fri, 29 Sep 2023 03:10:09 -0700 (PDT) Received: from [10.57.93.169] (unknown [10.57.93.169]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 10B213F59C; Fri, 29 Sep 2023 03:09:28 -0700 (PDT) Message-ID: <610b6c7d-59f5-447b-c477-d532b1d00e3c@arm.com> Date: Fri, 29 Sep 2023 11:10:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v4 12/18] PM: EM: Use runtime modified EM for CPUs energy estimation in EAS Content-Language: en-US To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dietmar.eggemann@arm.com, rui.zhang@intel.com, amit.kucheria@verdurent.com, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, len.brown@intel.com, pavel@ucw.cz, mhiramat@kernel.org, qyousef@layalina.io, wvw@google.com References: <20230925081139.1305766-1-lukasz.luba@arm.com> <20230925081139.1305766-13-lukasz.luba@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 03:09:51 -0700 (PDT) On 9/26/23 20:54, Rafael J. Wysocki wrote: > On Mon, Sep 25, 2023 at 10:11 AM Lukasz Luba wrote: >> >> The new Energy Model (EM) supports runtime modification of the performance >> state table to better model the power used by the SoC. Use this new >> feature to improve energy estimation and therefore task placement in >> Energy Aware Scheduler (EAS). >> >> Signed-off-by: Lukasz Luba >> --- >> include/linux/energy_model.h | 20 +++++++++++++------- >> 1 file changed, 13 insertions(+), 7 deletions(-) >> >> diff --git a/include/linux/energy_model.h b/include/linux/energy_model.h >> index 8f055ab356ed..41290ee2cdd0 100644 >> --- a/include/linux/energy_model.h >> +++ b/include/linux/energy_model.h >> @@ -261,15 +261,14 @@ static inline unsigned long em_cpu_energy(struct em_perf_domain *pd, >> unsigned long max_util, unsigned long sum_util, >> unsigned long allowed_cpu_cap) >> { >> + struct em_perf_table *runtime_table; > > You may as well call it just "table". The "runtime_" prefix doesn't > add much value here IMO. Yes, I'll do that Thank you Rafael for the review of the patch set! Regards, Lukasz