Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4846635rdb; Tue, 12 Dec 2023 10:51:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv6YTBV5ig2xsS7B9RdzjnsQDXNUcapUDNkS9HHqrECsAEkD/g3kaqEjRWe9MCOk5l936X X-Received: by 2002:a17:902:7202:b0:1d0:5fd7:867c with SMTP id ba2-20020a170902720200b001d05fd7867cmr8376060plb.4.1702407097154; Tue, 12 Dec 2023 10:51:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702407097; cv=none; d=google.com; s=arc-20160816; b=hi3iEtSQ5s5KDRkOOT5eJ/CKwaO4cYm2zgSCHPecTHYSvgD7nvjykxpb4+V9AziUQ4 cEcdZeMh8jnATTgE/hJTwaM/jE55cwml+reKEJ3LGlVJr4A4MjdI6d6FWPiRNi/T+Pqs jN8G6+ps21ICWo+aOZFmaH5bHvBAEPBAlqoRJTcTPOBrbxRc1ouPDzEbmunXNTFcg0tP 7wqE2UO3ZnFdY7Rb80hy6m+KdEJ73sepRW1AH/lH7RYNBZnTd+wDhvI2N/LPgZrjUfsp RQDo3HDQmWWu0BdUK1T1tJ+vsyOXQwZouEpJQxX16vIUPxF6jPlUFyPj50Ly4NOs80PP rAVA== 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=Dh5+9O8iWp9sGoFPwUtGWm+dPIBJC64Ij4mkKLUdT8U=; fh=b6jz0bdxnlnt0RSJHliaH022TdeHcNL6OWCvUlnI6JM=; b=DEWlpirDvp9ZIVfuncrn0ZSdbF+5+4QSNTneyQDFYFXAnL7AF2SjmhNPfn2F+TqNtB DHC41IL0a20zLPsBYrQaLHnmhLHWLGf23+lrukZcnh7sBjk/b9afR1MNufrQ/cy1PSaI 0pIk7rJPH67i9DixN1PQlL+gLy1ya4rSRuNT24v0aXu3ZFy/Nbd73SYDe4t3Umr8Sk79 war4mvLUJgD4UPoyRHqvPun/T+1G3nZTX2pnP/rGHXSTzJw8g3I7pXIKN+p2mcrIi8qf jkce0qO/aXy7Bw9dDcRGrpHTYGp/QCEuhWqkNlorvpjyVNei7aTac2dy81JeDRbaovkf V9/A== 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 a18-20020a170902ecd200b001d098c03fe9si8481730plh.361.2023.12.12.10.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 10:51:37 -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 939CF806D7DD; Tue, 12 Dec 2023 10:51:34 -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 S232815AbjLLSvN (ORCPT + 99 others); Tue, 12 Dec 2023 13:51:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377232AbjLLSuy (ORCPT ); Tue, 12 Dec 2023 13:50:54 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0118F7; Tue, 12 Dec 2023 10:50:46 -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 D7FEEFEC; Tue, 12 Dec 2023 10:51:32 -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 3F82F3F762; Tue, 12 Dec 2023 10:50:44 -0800 (PST) Message-ID: <8fc499cf-fca1-4465-bff7-a93dfd36f3c8@arm.com> Date: Tue, 12 Dec 2023 19:50:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 22/23] PM: EM: Add em_dev_compute_costs() as API for device drivers 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-23-lukasz.luba@arm.com> From: Dietmar Eggemann In-Reply-To: <20231129110853.94344-23-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:51:34 -0800 (PST) On 29/11/2023 12:08, Lukasz Luba wrote: > The device drivers can modify EM at runtime by providing a new EM table. > The EM is used by the EAS and the em_perf_state::cost stores > pre-calculated value to avoid overhead. This patch provides the API for > device drivers to calculate the cost values properly (and not duplicate > the same code). New interface w/o any users? Can we not remove this from this patch-set and introduce it with the first user(s)? [...]