fwts: cpufreq reports two identical frequencies but one is slower
Bug #1322531 reported by
Alex Hung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Firmware Test Suite |
Fix Released
|
Medium
|
Colin Ian King |
Bug Description
In UEFI Plugfest, we saw a failure such as "cpufreq: Supposedly higher frequency 1.95 GHz is slower (164331 bogo loops) than frequency 1.95 GHz (234336 bogo loops) on CPU 2."
It can be two CPU state are very close to each other, it will be nice to detect this false alarm.
Related branches
Changed in fwts: | |
assignee: | nobody → Colin King (colin-king) |
status: | New → In Progress |
summary: |
- fwts-live: cpufreq reports two identifical frequency but one is slower + fwts-live: cpufreq reports two identical frequency but one is slower |
summary: |
- fwts-live: cpufreq reports two identical frequency but one is slower + fwts-live: cpufreq reports two identical frequencies but one is slower |
Changed in fwts: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I guess this may also be because the faster one is running in a Turbo state, where as the lower isn't on turbo state, for example, my laptop shows:
2.55 GHz | 100.0 % | 290890
2.55 GHz | 82.1 % | 238966
2.45 GHz | 78.5 % | 228338
2.35 GHz | 75.5 % | 219765
etc
The P-State _PSS data is:
P-State Freq Power Latency Bus Master
(MHz) (mW) (us) Latency (us)
0 2501 35000 10 10
1 2500 35000 10 10
2 2400 33218 10 10
3 2300 31470 10 10
in which case it's OK since the turbo state is 2501 Mhz which is marginally higher than the next P state of 2500 Mhz, however some machines have a turbo setting set the same frequency as the next highest setting, hence this "false positive".
I agree we need some kind of fuzzy slack boundary, say 1 or 2% to wiggle around these kind of issues. Does that make sense?