Bug 96521
Summary: | intel pstate driver calculates frequency incorrectly | ||
---|---|---|---|
Product: | Power Management | Reporter: | Doug Smythies (dsmythies) |
Component: | intel_pstate | Assignee: | Chen Yu (yu.c.chen) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | lenb, rui.zhang, szg00000, yu.c.chen |
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.0rc7 and all previous. | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | proposed solution, taken from what Len is doing elsewhere |
Description
Doug Smythies
2015-04-12 17:04:56 UTC
reducing priority to P3 - the user impact is small. I saw a series of patches have been sent out for internal review, which will remove sample->freq, and use tsc * aper/mperf for cpu freq calculation. Fixed by commit ffb810563c0c049872a504978e06c8892104fb6c Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Date: Sun Apr 10 05:59:10 2016 +0200 intel_pstate: Avoid getting stuck in high P-states when idle Well, it has not been fixed for core platform but only for atom in get_target_pstate_use_cpu_load. Chen, ffb810563c0c049872a504978e06c8892104fb6c has nothing to do with this bug report. That commit is a result of work on bug 115771. sample.freq no longer exists in the upstream driver is this still an issue? Yes, it is still an issue, and still for the exact reasons I originally listed. (well O.K. it does it a different way now, but it is the same basic calculation). Created attachment 257719 [details]
proposed solution, taken from what Len is doing elsewhere
Things have changed, or are changing. In the context of kernel 4.13-rc1, it might be that this bug report no longer makes sense. However, there is still the trace buffer CPU frequency sample information. It wouldn't make sense to change cpu->pstate.scaling because we want nice round numbers when setting max and min frequencies and such. So the proposal is to just fix the reported frequency in the trace data.
@Doug, thanks for your solution, may I know if this solution is still applicable for latest 4.14-rc1?(after dropped the PID?) @Yu : My patch is included in kernel 4.14-rc1. This bug report is solved. |