Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4847016rdb; Tue, 12 Dec 2023 10:52:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKVQ6JkLo0d/KiBakzav1MosAtcKHvRd3P1hAo3+B1z5I1WyurLHpeR5jh88Lmhx3O1ZNI X-Received: by 2002:a05:6a21:7887:b0:191:2c21:8355 with SMTP id bf7-20020a056a21788700b001912c218355mr3679283pzc.6.1702407145541; Tue, 12 Dec 2023 10:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702407145; cv=none; d=google.com; s=arc-20160816; b=rKVliL+s1vsAZ/v5nS1n3JOYWZDkbdn3a5heVmfQGThpqVadxtfiX2spHqtxDIL4Dd nJdd0qf4OLvzBuSrYC82te6591OK8ZJvChiq4ekXrIEXjS0+zp8cqE3TPOdYbGF0+qFs DSKkKEup3xGYf8zSfhnTSRcoGfudYYD7XWfOUJSPR2U5nj/2Oj9KDqHrN3F0BQEOrmbL Q8VNJRJpOhKstnqMVTu2K8PDVzc8ee1sJT2jAInBaDd9hQ+6/16ytFP3HA1n8TIiE9Dn tyDu2UIIMi6Kuh3w5QAQVPMCwIA0rqLcmgVkbETtepvPHVdoWnUAfNWaInz6Z1dbP9Il ixQg== 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=gr7P5z5zgOBraOdgF49KQABzAt8ok7ojFN9K6re2PqQ=; fh=b6jz0bdxnlnt0RSJHliaH022TdeHcNL6OWCvUlnI6JM=; b=d8pK/GxCK5sbw/wLLnnBxGp+aBF0aHAz5wj2cJY9LNAYqqU4C7SLGqGLBh/UbJoUnn tAwjtKYO1ChAeyGZqCRTtOngjHekT57i27ZiRUUeSAGb4kXn0OKSxFx5F2k6PBRpN3LT EbaEa4pDvRXNdJKLdY9jPptGntlxC5cVuoyiLAJgEVKvLnn9t43jKUieuPRGX8CzBgGN R+025QfjoeQYPpnb6yURO0C16MoRSMHBsmvJ+RfGPud+M0VnALVdgV9hU4StpWr+WckD F7Upda9fwhlp4Pcgtszp7lNE6XpAl9/Ba7l/m/prplvaTzzqkqeaGbNoNFppFB/DBkEH Y94w== 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:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o38-20020a635d66000000b005c66e4949basi8500236pgm.244.2023.12.12.10.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 10:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 8A94580A8BB8; Tue, 12 Dec 2023 10:52:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376710AbjLLSv7 (ORCPT + 99 others); Tue, 12 Dec 2023 13:51:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235111AbjLLSvp (ORCPT ); Tue, 12 Dec 2023 13:51:45 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51AE1E3; Tue, 12 Dec 2023 10:51: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 69D191FB; Tue, 12 Dec 2023 10:52:30 -0800 (PST) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF61D3F762; Tue, 12 Dec 2023 10:51:41 -0800 (PST) Message-ID: Date: Tue, 12 Dec 2023 19:51:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 23/23] Documentation: EM: Update with runtime modification design Content-Language: en-US To: Lukasz Luba , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org Cc: 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: <20231129110853.94344-1-lukasz.luba@arm.com> <20231129110853.94344-24-lukasz.luba@arm.com> From: Dietmar Eggemann In-Reply-To: <20231129110853.94344-24-lukasz.luba@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 10:52:22 -0800 (PST) On 29/11/2023 12:08, Lukasz Luba wrote: > Add a new section 'Design' which covers the information about Energy > Model. It contains the design decisions, describes models and how they > reflect the reality. Remove description of the default EM. Change the > other section IDs. Add documentation bit for the new feature which > allows to modify the EM in runtime. > > Signed-off-by: Lukasz Luba > --- > Documentation/power/energy-model.rst | 206 +++++++++++++++++++++++++-- > 1 file changed, 196 insertions(+), 10 deletions(-) > > diff --git a/Documentation/power/energy-model.rst b/Documentation/power/energy-model.rst > index 13225965c9a4..1f8cf36914b1 100644 > --- a/Documentation/power/energy-model.rst > +++ b/Documentation/power/energy-model.rst > @@ -72,16 +72,48 @@ required to have the same micro-architecture. CPUs in different performance > domains can have different micro-architectures. > > > -2. Core APIs > +2. Design > +----------------- > + > +2.1 Runtime modifiable EM > +^^^^^^^^^^^^^^^^^^^^^^^^^ The issue I see here is that since now the EM is runtime modifiable and there is only one EM people might be confused in locking for a non-runtime modifiable EM. (which matches the design till v4). So 'runtime modifiability' is now feature of the EM itself. There is also a figure in this document illustrating the use of em_get_energy(), em_cpu_get() and em_dev_register_perf_domain(). I wonder if this should be extended to cover all the new interfaces created for the 'runtime modifiability' feature? [...]