Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp382865rdh; Tue, 19 Dec 2023 01:35:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGFEmVO9RvV6gfH8wtmiQ8uhmdbUFUCSrFmr3KHZMxpNA5AQlb6kqqn0nvY9bbjKivWBYNj X-Received: by 2002:a05:6a00:1c8c:b0:6d7:977e:f319 with SMTP id y12-20020a056a001c8c00b006d7977ef319mr3164380pfw.15.1702978548157; Tue, 19 Dec 2023 01:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702978548; cv=none; d=google.com; s=arc-20160816; b=KKKi+YebIjawas6tBhadAc6uFRN+207LhtBgJqDQP1HYLWsCAmkXByISvHXOWYV3/3 gfKB/NST9YAylGQxuxLD7d/BI7kFSA6U1zgjZDzKYqFNmb+VMXnDvA37IrNqAX8Me3TQ hRxxNwgqaWrJcpotovZ4zQBn6LuzN01ZNOrmZXBKZ3bEQjJP6o4+izQYljglDVy+C49+ m9sh1qFji/JxOLy0wFDPiQcdAZIdZuxcSgj05o4gnV17JnMYS4gD12TTC9o/R52oDaEf DPiam4f9JpeRXPSEEksMal34L0iCO301eqtwQK+Uoo0PQaQ++tYMiaJaJzxABmdnbN2y XqFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=cHmugO9PImoxwQMPZ0wVKhn38RhNBfZvSFbAkjAWQ/A=; fh=Z7Bswg0wipPI13DHQPOpxFL/nWO9PLk4OlFtC952Nd8=; b=ns7RqPv5y9+1w78kQNkHTfmPV42r8DgxKjw8vFTgwcc+iRXDaPJ2CqOwd5PBNF9CA1 EzcsUOCnyP5aUYKRvFVCZvohftf0jYO6b0VBR0gwdb0no1dfZ396gRjhnUnFDNaKyC8x u+ISAFzi4EH9SXiyVwxF+z4fwVaswUZjXpjVcwfyXNKw39GNZGCKw0TuCQ4tzdwHMF/O ABSMaZYBlxcdqGa9aUzvhZHOJfwSChg4gqC6H1eWsrSuOstzve4n/X773xm/SjAG1RVQ NenxbEvVagYM7FF8lPIf6JryfsySxnUHEm1SFo3VxR/gmKD/QRMX2jgYna/5jb+wL25c q4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i8-20020a63e448000000b005cd84c2c7easi5318014pgk.691.2023.12.19.01.35.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 01:35:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7E150B2286B for ; Tue, 19 Dec 2023 09:35:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3081913AF9; Tue, 19 Dec 2023 09:34:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D791B14F61; Tue, 19 Dec 2023 09:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 9326C1FB; Tue, 19 Dec 2023 01:35:34 -0800 (PST) Received: from [10.57.85.227] (unknown [10.57.85.227]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1FB3D3F738; Tue, 19 Dec 2023 01:34:47 -0800 (PST) Message-ID: Date: Tue, 19 Dec 2023 09:35:53 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: Dietmar Eggemann Cc: rui.zhang@intel.com, amit.kucheria@verdurent.com, linux-kernel@vger.kernel.org, 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, linux-pm@vger.kernel.org, rafael@kernel.org References: <20231129110853.94344-1-lukasz.luba@arm.com> <20231129110853.94344-24-lukasz.luba@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/12/23 18:51, Dietmar Eggemann wrote: > 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. True, I can skip this, since it's now default. > > 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? That ASCI picture would be totally messy, with that many interfaces. We can think about some other picture later, when this basic code and basic doc is merged.