Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3176184lqp; Tue, 26 Mar 2024 01:30:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/5z6lmK/SCGjcaAoaorJclOuvLrLQsN+TG5Mx+4EY0zIP6lDKtaQOaPTHbT76weuHFdyaUb6GNngvoDVDp8+127AJYMInqHJXPUS3Mg== X-Google-Smtp-Source: AGHT+IEKp4O62IGnKnzM4UD6rzsYb0TLIW4geb/mvy6IWbAC83OVe40HEfR/JOA/ZLk98GX8G/+6 X-Received: by 2002:a05:6a20:5484:b0:1a3:c52f:ec00 with SMTP id i4-20020a056a20548400b001a3c52fec00mr7517789pzk.40.1711441837979; Tue, 26 Mar 2024 01:30:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711441837; cv=pass; d=google.com; s=arc-20160816; b=jOmUUFDmieEU7XUdfQtSLcK7QYXDEi5PC2S8CllxNyvdwDWvJVgfG+emAi+Aqp2hf9 bIm0dhP8UUZWx59IyBg56EZNhqT0hanB07TIKmQNKluKy6cI7mim+BPd2oTIxSUrpKzu 2ITC3nT49mX4wNhH4j+6RteQdhXbFGgSurRu3UfdodO9oeL4X0kGnaqRbw0QYJPskj/H M8iA1zjXBmIykmEHdGnC3/xlACTaJEiXH0zJ0EqIGFR5Mnzl9c6ASqKe3oKbdwdoammJ 3Wf8s+/smqlFI0i9m0aZmsDrG11/ZGfGF93yrnIm6T0mcmIn4NrO3eRKnMYKkwHGX0uY VgoQ== ARC-Message-Signature: i=2; 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=yuCRk0TCcohLk77vXFQxuf7yS14/9dgw0nHLs0I0PtM=; fh=6qNtyM16ciG7k0mNeEuXiC1f2N21xMW66+i9yZAIP8w=; b=eDi8RznYMIGmFp3BySLHeGUsX/SbGGPePhXhiGSrzs83Osbem8up7H1kU7/1z25SgY IkzqeZy1YEUTJjWiLP4MV8JUJjFLGf7Qjs1hDp1JZRMQqZnHfAd4zUfCC+N3thFGfznr ZdlwgYpN3NGkOtVHpKdr7veKwC5BLqvuCP1348dA9fE4XID9rJb3lyB888ZUa/3uGuCT PvNo6ugjzGnxtNBSfJ0h1eJGq0ybHnlKa2ap+sNpCv0Y7YgLxXoc30xml4duvD+mPBig gKjlDVRc5G2RxVPFGxANIAblwURrH43nAZ8FuJlNB4Blol4DiIx7J6M6JyOLPkhytWGQ 4Dmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-118542-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118542-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 o16-20020a170902d4d000b001dd63e18e5bsi7187291plg.136.2024.03.26.01.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118542-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-118542-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118542-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 A4BE9B22011 for ; Tue, 26 Mar 2024 08:30:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F46D136E21; Tue, 26 Mar 2024 08:29:11 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A47B135401; Tue, 26 Mar 2024 08:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711441751; cv=none; b=spW/+3chbHB69IzLg5DN8wlATB2CijLKd4g1904Sjugy+1lrKTggK2Rav6ADOXMSnueqqhHZMSvHGwioUTpzeRZEtTwIWy1HKg8m15P3g+KS6tw+EzqskkgVMIEAYQqdIMFMwQRvUvYeywV/slBzNiKYu9zuwqqOl3oTvz8KSJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711441751; c=relaxed/simple; bh=WUhpHqX2IrIGD84daaOQvytai30nFNpig4YSNQtipjs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DbNIqjtjqIoUGEBeh2jZZHdMZZvjkP8iuKnXe+ZYRps+5V75f57NcssUp2bZDnktIn2y0KnEmHZ1ENgLtU1W/rf9UjLbRkc+UBP4+DNantPm/ftpfhEbb9GZ50LIzYbx5I5NmVtcIrQEEJmF6Yxe1rCCxh83SIZ50qI8/9u4VmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 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 744242F4; Tue, 26 Mar 2024 01:29:42 -0700 (PDT) Received: from [10.57.71.219] (unknown [10.57.71.219]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BEA993F7C5; Tue, 26 Mar 2024 01:29:06 -0700 (PDT) Message-ID: <20074374-ae90-49c5-9e8d-67ce290b13ae@arm.com> Date: Tue, 26 Mar 2024 08:29:06 +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: [RESEND][PATCH v2 1/4] OPP: OF: Export dev_opp_pm_calc_power() for usage from EM Content-Language: en-US To: Viresh Kumar 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 References: <20240322110850.77086-1-lukasz.luba@arm.com> <20240322110850.77086-2-lukasz.luba@arm.com> <20240326025147.qgfl5buiobfqfghj@vireshk-i7> From: Lukasz Luba In-Reply-To: <20240326025147.qgfl5buiobfqfghj@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/26/24 02:51, Viresh Kumar wrote: > 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 > Thanks Viresh for the ACK! Regards, Lukasz