Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4110935pxj; Mon, 21 Jun 2021 13:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIiwnybV5Qkc6xNUI2kZ337wvP2atZpdZB+QfnnFbCArIi8ijUiFcFtV5dW+b2b2u57uNM X-Received: by 2002:a05:6402:278a:: with SMTP id b10mr405832ede.54.1624308723079; Mon, 21 Jun 2021 13:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624308723; cv=none; d=google.com; s=arc-20160816; b=UdT7NwEOzBmbEw5LDXvjdVXk2E4XHUrLZDewwkDEyWLCrwKU6k/3ynaQmknjna+GrL 3TQWoDVLiTjz3RYE7/GuzefghSldULmzGBBhRTpnaZ08upH3pXaPqegoX8l+TNnEY/Rk 3DKt1SFbA1QOob0oJnxqesy7kkI5+IWyudVj8jmrFoQxlKUdGLYVNQUAdcwlLCpxFCDE P0v+BySIOxU6nOP+88ZF+Gkv7HvvEtNsGzlKbWES8mU5q3J2/Nabk0xbd8YIezJcpt0M dkTMn7tKP5lkqSq00iC55CFyIvP3bIS+/hM2fkxSNlquSi1yV8ksP5JjYqN5MqGi0ef1 7xzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=H3GIwVxTmg+CL0BShtw59goX/MiG9FpRRm9mkYMKKHk=; b=XV/FtuOPn2JEJ+czrD69UWu3Yvno1RLDM0S9coqZ7y/ZYwR4UDOxlvyvwu3ieIyO8D BqOJG5sc9ZhCy+nCZCXGmZ3YqvnwC3v/pJsoYe54A/jdxVrsp0mFT4CGxl9JDNnieAJk v8ZvUPc81Bc9lw+/kuUCejWF3g4UOINB2mZupTQgZj7dUlrN9pyYjvT04fWAWSoDcvLz 9N8wJH3hr50O7/m8HYR2tzETQWP+vHlULjhTawB+lAXoMRq9uI6OvtI/RfdGDYP3EGno 4vXSTcDE+5Vha9GCut9jTPcQy1D67IfQVl+dgOw0KXXASi4TXuvZWZdCDO3lYAaaiMz+ RAZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b="DHYv/grh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si6126609edq.73.2021.06.21.13.51.40; Mon, 21 Jun 2021 13:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b="DHYv/grh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbhFUUvG (ORCPT + 99 others); Mon, 21 Jun 2021 16:51:06 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:14552 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbhFUUvD (ORCPT ); Mon, 21 Jun 2021 16:51:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1624308530; x=1655844530; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=3VRTmBGgxbNUCdwEHcZBa6NmCsXyGuWivDkf1Wx7pgM=; b=DHYv/grhJPbhuy2rgHUXSoJpdozBACPu4MMvfGYAuB0ZurF3N2weISbm stAeeVNUG8pi4M3fp4CW2YfEfUqWM9DDwF0NKkynqRMMcS1R9aSs2tXje GVpYG8Y8WkuBEIes7PQiZ0hJZLpsUZbeM8SMfiwLGJOgRB08UCKaqgfhE Y=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 21 Jun 2021 13:48:49 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Jun 2021 13:48:48 -0700 Received: from [10.38.245.98] (10.80.80.8) by nasanexm03e.na.qualcomm.com (10.85.0.48) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 21 Jun 2021 13:48:46 -0700 Subject: Re: [PATCH V3 0/4] cpufreq: cppc: Add support for frequency invariance To: Viresh Kumar , Rafael Wysocki , Ionela Voinescu , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Greg Kroah-Hartman , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , "Rafael J. Wysocki" , Steven Rostedt , Sudeep Holla , Vincent Guittot , Will Deacon CC: , , , "Paul E. McKenney" , "Rafael J. Wysocki" References: From: Qian Cai Message-ID: <09a39f5c-b47b-a931-bf23-dc43229fb2dd@quicinc.com> Date: Mon, 21 Jun 2021 16:48:44 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanexm03e.na.qualcomm.com (10.85.0.48) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/2021 5:19 AM, Viresh Kumar wrote: > CPPC cpufreq driver is used for ARM servers and this patch series tries to > provide counter-based frequency invariance support for them in the absence for > architecture specific counters (like AMUs). Viresh, this series works fine on my quick tests so far. BTW, I noticed some strange things even with the series applied mentioned below when reading acpi_cppc vs cpufreq sysfs. Do you happen to know are those just hardware/firmware issues because Linux just faithfully exported the register values? == Arm64 server Foo == CPU max MHz: 3000.0000 CPU min MHz: 1000.0000 /sys/devices/system/cpu/cpu0/acpi_cppc/highest_perf 300 /sys/devices/system/cpu/cpu0/acpi_cppc/lowest_freq 1000 /sys/devices/system/cpu/cpu0/acpi_cppc/lowest_nonlinear_perf 200 /sys/devices/system/cpu/cpu0/acpi_cppc/lowest_perf 100 /sys/devices/system/cpu/cpu0/acpi_cppc/nominal_freq <--- should be 3000? 2800 /sys/devices/system/cpu/cpu0/acpi_cppc/nominal_perf <--- should be 300? 280 /sys/devices/system/cpu/cpu0/acpi_cppc/reference_perf 100 == Arm64 server Bar == CPU max MHz: 3000.0000 CPU min MHz: 375.0000 /sys/devices/system/cpu/cpu0/acpi_cppc/highest_perf <--- should be 3000? There is no cpufreq boost. 3300 /sys/devices/system/cpu/cpu0/acpi_cppc/lowest_freq <--- don't understand why 0. 0 /sys/devices/system/cpu/cpu0/acpi_cppc/lowest_nonlinear_perf 375 /sys/devices/system/cpu/cpu0/acpi_cppc/lowest_perf 375 /sys/devices/system/cpu/cpu0/acpi_cppc/nominal_freq <--- ditto 0 /sys/devices/system/cpu/cpu0/acpi_cppc/nominal_perf 3000 /sys/devices/system/cpu/cpu0/acpi_cppc/reference_perf 100