Francisco Jerez
eacc9c5a92
cpufreq: intel_pstate: Fix intel_pstate_get_hwp_max() for turbo disabled
...
This fixes the behavior of the scaling_max_freq and scaling_min_freq
sysfs files in systems which had turbo disabled by the BIOS.
Caleb noticed that the HWP is programmed to operate in the wrong
P-state range on his system when the CPUFREQ policy min/max frequency
is set via sysfs. This seems to be because in his system
intel_pstate_get_hwp_max() is returning the maximum turbo P-state even
though turbo was disabled by the BIOS, which causes intel_pstate to
scale kHz frequencies incorrectly e.g. setting the maximum turbo
frequency whenever the maximum guaranteed frequency is requested via
sysfs.
Tested-by: Caleb Callaway <caleb.callaway@intel.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
[ rjw: Minor subject edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-09-01 21:15:00 +02:00
..
2020-07-15 15:17:06 +02:00
2020-07-15 15:17:06 +02:00
2019-07-22 11:12:15 +05:30
2020-07-30 10:57:45 +05:30
2019-07-16 10:20:11 +02:00
2020-07-30 10:57:44 +05:30
2020-07-30 10:57:47 +05:30
2020-07-02 13:03:30 +02:00
2019-06-19 17:09:55 +02:00
2020-07-15 15:17:06 +02:00
2019-06-19 17:09:55 +02:00
2020-07-02 13:03:30 +02:00
2019-06-19 17:09:55 +02:00
2020-07-02 13:03:30 +02:00
2020-07-02 13:03:30 +02:00
2020-03-14 12:07:38 +01:00
2020-07-02 13:03:30 +02:00
2020-06-23 16:12:07 +05:30
2020-06-24 17:16:42 +02:00
2020-03-12 15:43:52 +05:30
2020-01-27 10:33:33 +01:00
2020-08-27 12:51:25 +02:00
2020-07-13 17:54:37 +02:00
2020-03-24 21:31:27 +01:00
2020-03-24 21:31:27 +01:00
2020-07-15 15:17:06 +02:00
2020-01-27 10:33:33 +01:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2020-06-24 17:16:42 +02:00
2020-04-28 14:26:20 +05:30
2020-09-01 21:15:00 +02:00
2020-07-30 11:40:29 +05:30
2020-07-30 10:57:51 +05:30
2019-11-29 11:52:02 +01:00
2020-06-14 01:57:21 +09:00
2020-01-07 13:29:58 +05:30
2020-03-24 21:31:27 +01:00
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2019-07-16 10:20:11 +02:00
2020-04-16 17:34:23 +02:00
2020-08-04 12:44:53 +02:00
2019-07-18 09:49:30 +02:00
2020-06-24 17:16:42 +02:00
2018-09-19 14:56:44 -07:00
2020-06-24 17:16:42 +02:00
2020-08-23 17:36:59 -05:00
2020-07-15 15:17:06 +02:00
2020-07-15 15:17:06 +02:00
2019-07-18 09:49:30 +02:00
2019-07-18 09:49:30 +02:00
2020-03-24 21:31:27 +01:00
2020-03-24 21:31:27 +01:00
2019-05-30 11:26:39 -07:00
2020-07-15 15:17:06 +02:00
2019-06-05 17:37:08 +02:00
2020-07-15 17:27:15 +02:00
2019-05-30 11:26:32 -07:00
2019-10-21 02:05:21 +02:00
2019-08-26 10:02:01 +02:00
2019-08-26 10:02:01 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:32 -07:00
2020-08-04 12:44:53 +02:00
2020-05-04 10:42:44 +05:30
2020-05-07 10:47:27 +05:30
2019-06-13 08:58:22 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-23 08:53:23 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-01-07 13:31:01 +05:30
2019-06-19 17:09:55 +02:00
2020-01-07 13:31:01 +05:30
2019-07-16 10:20:11 +02:00
2019-07-18 09:49:30 +02:00
2020-03-24 21:31:27 +01:00
2020-08-03 20:28:08 -07:00
2020-06-24 17:16:42 +02:00
2019-06-19 17:09:07 +02:00
2020-01-27 10:33:33 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-07-16 10:20:11 +02:00
2020-03-24 21:31:27 +01:00
2020-03-24 21:31:27 +01:00
2020-08-23 17:36:59 -05:00
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2020-07-30 10:57:49 +05:30
2019-11-05 15:06:49 +05:30
2017-07-22 02:20:59 +02:00
2020-05-06 18:59:38 +02:00
2019-10-29 13:25:29 +01:00
2020-07-30 10:57:48 +05:30
2020-08-21 20:17:01 +02:00
2020-08-23 17:36:59 -05:00
2020-06-24 17:16:42 +02:00