Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3068175lqp; Mon, 25 Mar 2024 19:52:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKcW73a1G2aNEL2oOVxzPYFsuu33NiwTVqBhUJLszGX/hy1bic/OPcaAw1/EJBf/nctkhcCrBfqvyipMmTFyUn8z9Vh0Mj1NdAiM325A== X-Google-Smtp-Source: AGHT+IEAA2lGMsMfIfKFi3e6Ui7hVwHecyR2XLFCl0lcg18yY1YKoz4CDT695BsM1TMU1ghXFzMp X-Received: by 2002:a05:620a:24c2:b0:78a:76a:bedf with SMTP id m2-20020a05620a24c200b0078a076abedfmr12330566qkn.53.1711421526613; Mon, 25 Mar 2024 19:52:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711421526; cv=pass; d=google.com; s=arc-20160816; b=TyFHEST8OgVvajWfj+4ggGHT2KmO/fB2C/xSc8O1mCQ7gj3tmFlhaiHg91Sz2usV6v nVskxklpUG7yNCeXHzm2xXrWXBEcnlbgpMeS62zHO9Xu+Ps6IMTUPHbTlmagUt3YMKzQ 8kJW9JMOh1625gVzIk+tKNdeFZQau9rF3IPF2YnbguAmQVwrDXQTd63VYPERHkrfAGAt WI5Rs/gKDfh1KhEP0kI1VGnCoAjjFR3e28ti4p8nurO1tVbmL4SU7ylTxeXL/KOr9BT6 VsuNmdxrM40aW/KdxvWbeTmqTTDB4rTo9ctj3LMhCMDAkgCuD1g+YDCtk+SqMr+x7yAA 4mOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T1vdduYlZ8/0jt29VKGia5tGOxMYePg9wOnK6IootjU=; fh=FYzA2WIwWlnUrU+WuGIW7ATUVH7ajOcjs4x2jz8XgQ8=; b=JK7pz/05mUjVe5yJgyyZ0E/j0DC1Ltu84eggEmNn/mC2Zrd1X+83NibBEVQj5/jjMe GGQ21u/aBZ6oOc0XAi+USGE3MUCZhYciL8ExfwYXl1v3XJYrEXOOpZEC5+qC8fqyLToq LYD086PnvqB4/gd57IhT/VJOqYx8TLFeUCOD3cfDgOUVKfntM7av+Sc8wmaRC1ARnO5R vpcnFEl3QC0ERSvxNyLSJxcSeo6T5REdMC4EbIBmhvBPqtzqNGwfhc+uKvcfC8OBG8fU c7npDlMIsqSZ8JG/sRWigAbFzJP85zU6lpWhf8DGkOMR3g4cpVsagf9jyZzCQ6uvFOhB 8fmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kbYmQTah; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-118316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c23-20020a05620a11b700b0078a03e924c1si6938405qkk.149.2024.03.25.19.52.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 19:52:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kbYmQTah; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-118316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5869F1C33398 for ; Tue, 26 Mar 2024 02:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 856BB128826; Tue, 26 Mar 2024 02:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kbYmQTah" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 911955788E for ; Tue, 26 Mar 2024 02:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711421513; cv=none; b=C0iHMsGAWKyxVrDnigTHywF5SwmnCsE1Ix0zy7xqiuLu7+wruiglUd+Ur6KSBz1+aGuYGNh6r4cF3eyYFK/0dLSai55FemhndozhEey6XWftCYrdqDu6otUzpEvd46r6MkAjjWTeNd3+gbKnm/XLf5jRLS8bTgZ0hhasAvNXNP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711421513; c=relaxed/simple; bh=FHSZY05UaAKVZX3qnYgC7wy8iLpuVrMB+fx9JVEbsbs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JOHGziu/059ZS/cNfaigELTlfPrdXa/GH7LzWFKLuPyc4XBB9wIv1bsQBBeVrBM0WlcmqIgQPAFw8XPb7SlnzI0rwc4Z0sTmCHYsPgC/xoDuc/kiMY2HIFJ4OtNyGXwTMmMKIAl6SsH1SNCG9vGwywrvzjHSo5nx84mnugB0Lqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kbYmQTah; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1dffa5e3f2dso31507735ad.2 for ; Mon, 25 Mar 2024 19:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711421511; x=1712026311; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=T1vdduYlZ8/0jt29VKGia5tGOxMYePg9wOnK6IootjU=; b=kbYmQTahCuLTn4qohcTyIh6BLJd7kYoi8P3NLIqmlmBgaTaV1q9/U7tyd97Uk0BOO9 yeF/tIrIJvtGZqd3DqBdNgm7EHRswWJzLP1ievcgFItqMSY2ca7VBQ6pmDiSGUF2Kxt8 JLaTOUzE1sQY1Wmsx5V+7QWnjf0nprCHwQZieOIWmlazwzxtj6QT03Bu6NgUeCqUl8Yf EuauNRC4A2n+/j8NYHkO61u6OTeX+BJuNFT9BcF7KUhYOAZlhQbpLwBet6mJO9QApY9y 2RQEzk89S5eG3kvuHzlsgmPYHDT1Uuwo/Iq4HWYXQ85fUzhaytlOlVvpDd8C5bWJQzlp rd+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711421511; x=1712026311; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T1vdduYlZ8/0jt29VKGia5tGOxMYePg9wOnK6IootjU=; b=f4I4vhFQyFzqDPraKqIWitJdsXDwi80P0F/9ipfp8/kMw+lZnHnWg+ivcU7P+MbNCh uxp9ceCs1NhSDL7BJh14lej4I34u/RYs4rqH19R9M9AcT4xVkvhEbPP8vq9xFMEFrT3K cA1mWiewZpfl72zcWoIxamdzALOEPPaBYAZXRYnNRT2DjEaBomYZv2g4EEaB+qTFo+5m b0sQq8GJlIq799mQnt/FCt6YbPadfe3EAwhSzfjbgI/hu9wlMiC/urkgPhFQhHqxn8Lw mqhzhLhNQkLxKORkCVBbf6Ol8Y3TRB1/Ta5rwQijHlezwUzg5dMh35jGowXSWATYdUJr Cjkg== X-Gm-Message-State: AOJu0Yzrwv/yThHJ8SdXuwL/Q5njz1Fq+jSnpucijqIMD4AzZln38qse amNcXYq6c6rCvtgRx8hcXlI49DWxyxQ5AmWXiu17pmVnSPBhRUHmo++82+MytBw= X-Received: by 2002:a17:902:e8c8:b0:1e0:e9d7:83de with SMTP id v8-20020a170902e8c800b001e0e9d783demr598653plg.12.1711421510637; Mon, 25 Mar 2024 19:51:50 -0700 (PDT) Received: from localhost ([122.172.85.206]) by smtp.gmail.com with ESMTPSA id e4-20020a17090301c400b001dee4a22c2bsm5512365plh.34.2024.03.25.19.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 19:51:50 -0700 (PDT) Date: Tue, 26 Mar 2024 08:21:47 +0530 From: Viresh Kumar To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dietmar.eggemann@arm.com, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, nm@ti.com, linux-samsung-soc@vger.kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, m.szyprowski@samsung.com, mhiramat@kernel.org Subject: Re: [RESEND][PATCH v2 1/4] OPP: OF: Export dev_opp_pm_calc_power() for usage from EM Message-ID: <20240326025147.qgfl5buiobfqfghj@vireshk-i7> References: <20240322110850.77086-1-lukasz.luba@arm.com> <20240322110850.77086-2-lukasz.luba@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322110850.77086-2-lukasz.luba@arm.com> On 22-03-24, 11:08, Lukasz Luba wrote: > There are device drivers which can modify voltage values for OPPs. It > could be due to the chip binning and those drivers have specific chip > knowledge about it. This adjustment can happen after Energy Model is > registered, thus EM can have stale data about power. > > Export dev_opp_pm_calc_power() which can be used by Energy Model to > calculate new power with the new voltage for OPPs. > > Signed-off-by: Lukasz Luba > --- > drivers/opp/of.c | 17 ++++++++++++----- > include/linux/pm_opp.h | 8 ++++++++ > 2 files changed, 20 insertions(+), 5 deletions(-) Acked-by: Viresh Kumar -- viresh