]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"
authorAndreas Herrmann <aherrmann@suse.com>
Fri, 22 Jul 2016 15:14:11 +0000 (17:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Jul 2016 21:51:06 +0000 (23:51 +0200)
commit2e6ae5400b468f9a797f57ad8926ff894468b122
tree6eb238c4de38b21cf594ed3f2a18ce11fd70a2e2
parentb55bc9e9a2b4f54ec7a418a0db5fa086bc6e690c
Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

This reverts commit 0beb240dc0268e71c1fdad975adf5b15b5379b6a.

Using a v4.7-rc7 kernel on a HP ProLiant triggered following messages

 pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1200 MHz, 2800 MHz
 cpufreq: ondemand governor failed, too long transition latency of HW, fallback to performance governor

The last line was shown for each CPU in the system.
Testing v4.5 (where commit 0beb240d was integrated) triggered
similar messages. Same behaviour on a 2nd HP Proliant system.

So commit 0beb240dc (cpufreq: pcc-cpufreq: update default value of
cpuinfo_transition_latency) causes the system to use performance
governor which, I guess, was not the intention of the patch.

Enabling debug output in pcc-cpufreq provides following verbose output:

 pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1200 MHz, 2800 MHz
 pcc_get_offset: for CPU 0: pcc_cpu_data input_offset: 0x44, pcc_cpu_data output_offset: 0x48
 init: policy->max is 2800000, policy->min is 1200000
 get: get_freq for CPU 0
 get: SUCCESS: (virtual) output_offset for cpu 0 is 0xffffc9000d7c0048, contains a value of: 0xff06. Speed is: 168000 MHz
 cpufreq: ondemand governor failed, too long transition latency of HW, fallback to performance governor
 target: CPU 0 should go to target freq: 2800000 (virtual) input_offset is 0xffffc9000d7c0044
 target: was SUCCESSFUL for cpu 0

I am asking to revert 0beb240dc to re-enable usage of ondemand
governor with pcc-cpufreq.

Fixes: 0beb240dc (cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency)
CC: <stable@vger.kernel.org> # 4.5+
Signed-off-by: Andreas Herrmann <aherrmann@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/cpu-freq/pcc-cpufreq.txt
drivers/cpufreq/pcc-cpufreq.c