Skip to content

Commit da7d3ab

Browse files
aherrmann-suserafaeljw
authored andcommittedJul 22, 2016
Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"
This reverts commit 790d849. 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 790d849 was integrated) triggered similar messages. Same behaviour on a 2nd HP Proliant system. So commit 790d849 (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 790d849 to re-enable usage of ondemand governor with pcc-cpufreq. Fixes: 790d849 (cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency) CC: <[email protected]> # 4.5+ Signed-off-by: Andreas Herrmann <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ae2c1ca commit da7d3ab

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎Documentation/cpu-freq/pcc-cpufreq.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ to be strictly associated with a P-state.
159159

160160
2.2 cpuinfo_transition_latency:
161161
-------------------------------
162-
The cpuinfo_transition_latency field is CPUFREQ_ETERNAL. The PCC specification
163-
does not include a field to expose this value currently.
162+
The cpuinfo_transition_latency field is 0. The PCC specification does
163+
not include a field to expose this value currently.
164164

165165
2.3 cpuinfo_cur_freq:
166166
---------------------

‎drivers/cpufreq/pcc-cpufreq.c

-2
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,6 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy)
555555
policy->min = policy->cpuinfo.min_freq =
556556
ioread32(&pcch_hdr->minimum_frequency) * 1000;
557557

558-
policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
559-
560558
pr_debug("init: policy->max is %d, policy->min is %d\n",
561559
policy->max, policy->min);
562560
out:

0 commit comments

Comments
 (0)