lkml.org 
[lkml]   [2019]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] Work around for Hisilicon CPPC cpufreq
Date
Hisilicon chips do not support delivered performance counter register
and reference performance counter register. But the platform can
calculate the real performance using its own method. This patch provide
a workaround for this problem, and other platforms can also use this
workaround framework. We reuse the desired performance register to
store the real performance calculated by the platform. After the
platform finished the frequency adjust, it gets the real performance and
writes it into desired performance register. OS can use it to calculate
the real frequency.

Changlog:

v2 -> v3:
Recontruct 'cppc_get_desired_perf'.
Rename 'cppc_workaround_info' to 'cppc_workaround_oem_info'
Drop 'get_rate' member from struct cppc_workaround_oem_info
Change 'cppc_wa_get_rate' pointer to a flag to indicate whether
we need to aplly the workaround.
Move the new functions to the beginning of cppc-cpufreq.c


Xiongfeng Wang (2):
ACPI / CPPC: Add a helper to get desired performance
cpufreq / cppc: Work around for Hisilicon CPPC cpufreq

drivers/acpi/cppc_acpi.c | 39 +++++++++++++++++++++++++
drivers/cpufreq/cppc_cpufreq.c | 66 ++++++++++++++++++++++++++++++++++++++++++
include/acpi/cppc_acpi.h | 1 +
3 files changed, 106 insertions(+)

--
1.7.12.4

\
 
 \ /
  Last update: 2019-02-17 04:56    [W:1.029 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site