Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1547331imm; Thu, 19 Jul 2018 03:48:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc6lRHNDyLP2X+iAjDyoYclyJSvsqACg889QAVJQjNB4SWy2XEEc3tlY5+f2kzduDMg70lT X-Received: by 2002:a63:1d22:: with SMTP id d34-v6mr9510556pgd.133.1531997337521; Thu, 19 Jul 2018 03:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531997337; cv=none; d=google.com; s=arc-20160816; b=dhef3EbM7wqT5+mi2u7+Zx+JzcITCI0wXId4SUqGXmqrsTkh6Sf7FMg+6M3UoRzSRw 1bnO+3+erF4Z4hNumsi6cRzI2XMHgoR/+8JpUocBGeVZAVZC22sloJOcNRRSBp2HkrQv YR3U8OyHyXJxYZ1iobKt4nEFwcEpMmVAAGKzc1c7O1FEEGmuPzyQcAMV2z1Sst5XQPW4 IjXu8E7LzWf5m/rK60kzJEmpTkW6FWFVMWRqI9LKDyOyv7fkrXBpq8KwVGbLFIosi76R 9bNpb4e0kfx3n3zSjNzo8M3XJ8wA5bMhJqueVONY3WZl1PeuacLn0wP7zHeQbFWM/edP /dPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TQgDUJd46wYyXkEQciHtFeRkBKMYFO6P8/vb70/vk+0=; b=cG+9SkrF1YbjWD4EXDno8FwSohcU9SgHtiqb8wx0hoJFa0rovDHvhvqiGCxTN5AC1K F3USUNz/x/bFj4AfVQw90u7K75f5gjgV4edW68RFvDoxjG78bOMoLuyF5JXSn8nRGc65 0koCBWq1q/9rw5NY0AoZTgVm2I4AKRljlCnaxVW1cLey/leyecBigBAnc6cGlwdocciM e1jTwpI0Kz7tdGlt6sEH7QEVLOVTfGR+2uhXkvLnNIGOJSPs1NA5rtLDE1CGRt9D1Fc0 bzJe9wtR/ck5eXxRLZr3Z75BPBnWxPNsvInGpZypkh0QNBhf3DNv5uTggwGb88eBC//h pSfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10-v6si5059908plr.427.2018.07.19.03.48.42; Thu, 19 Jul 2018 03:48:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730565AbeGSLad (ORCPT + 99 others); Thu, 19 Jul 2018 07:30:33 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:51194 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbeGSLac (ORCPT ); Thu, 19 Jul 2018 07:30:32 -0400 Received: from 79.184.255.17.ipv4.supernova.orange.pl (79.184.255.17) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 2b18aa271d5b56b3; Thu, 19 Jul 2018 12:47:57 +0200 From: "Rafael J. Wysocki" To: "Prakash, Prashanth" , George Cherian Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org Subject: Re: [PATCH v4] cpufreq / CPPC: Add cpuinfo_cur_freq support for CPPC Date: Thu, 19 Jul 2018 12:46:17 +0200 Message-ID: <1932970.0qede6EoN4@aspire.rjw.lan> In-Reply-To: <41a6e3c7-db85-9ff1-daf4-07569c11fc8c@codeaurora.org> References: <1531375675-52623-1-git-send-email-george.cherian@cavium.com> <41a6e3c7-db85-9ff1-daf4-07569c11fc8c@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, July 14, 2018 12:20:43 AM CEST Prakash, Prashanth wrote: > Hi George, > > This version looks good. Thanks! > > On 7/12/2018 12:07 AM, George Cherian wrote: > > Per Section 8.4.7.1.3 of ACPI 6.2, The platform provides performance > > feedback via set of performance counters. To determine the actual > > performance level delivered over time, OSPM may read a set of > > performance counters from the Reference Performance Counter Register > > and the Delivered Performance Counter Register. > > > > OSPM calculates the delivered performance over a given time period by > > taking a beginning and ending snapshot of both the reference and > > delivered performance counters, and calculating: > > > > delivered_perf = reference_perf X (delta of delivered_perf counter / delta of reference_perf counter). > > > > Implement the above and hook this to the cpufreq->get method. > > > > Signed-off-by: George Cherian > > Acked-by: Viresh Kumar > Acked-by: Prashanth Prakash > Patch applied, thanks!