Dirk Brandewie
d022a65ed2
intel_pstate: Correct BYT VID values.
...
Using a VID value that is not high enough for the requested P state can
cause machine checks. Add a ceiling function to ensure calulated VIDs
with fractional values are set to the next highest integer VID value.
The algorythm for calculating the non-trubo VID from the BIOS writers
guide is:
vid_ratio = (vid_max - vid_min) / (max_pstate - min_pstate)
vid = ceiling(vid_min + (req_pstate - min_pstate) * vid_ratio)
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-10-23 23:00:00 +02:00
..
2014-10-11 11:34:07 -07:00
2014-09-30 01:16:44 +02:00
2014-10-18 18:11:04 -07:00
2014-10-17 11:55:32 -04:00
2014-10-15 07:23:49 +02:00
2014-10-09 14:58:15 -04:00
2014-10-18 12:12:45 -07:00
2014-10-13 11:28:42 +02:00
2014-10-08 17:37:16 -04:00
2014-10-18 10:25:09 -07:00
2014-10-15 07:05:03 +02:00
2014-10-15 07:48:18 +02:00
2014-10-23 23:00:00 +02:00
2014-10-15 07:48:18 +02:00
2014-10-14 10:51:23 +02:00
2014-09-29 20:22:36 +09:00
2014-10-18 18:11:04 -07:00
2014-10-09 02:39:07 -04:00
2014-10-10 22:07:55 -04:00
2014-09-22 16:48:47 +09:00
2014-10-09 22:26:00 -04:00
2014-10-09 14:58:15 -04:00
2014-10-14 09:39:08 +02:00
2014-10-09 14:58:15 -04:00
2014-09-23 23:31:22 -07:00
2014-10-03 08:19:02 -07:00
2014-10-19 12:50:44 -07:00
2014-10-18 12:12:45 -07:00
2014-09-26 08:15:27 +01:00
2014-10-19 12:29:23 -07:00
2014-10-19 12:40:24 -07:00
2014-10-15 07:23:49 +02:00
2014-09-23 23:26:42 -07:00
2014-10-15 07:48:18 +02:00
2014-10-14 15:05:35 -04:00
2014-10-10 16:40:14 -04:00
2014-09-25 23:14:37 +10:00
2014-10-18 12:25:30 -07:00
2014-10-18 18:11:04 -07:00
2014-10-14 02:18:22 +02:00
2014-10-07 21:29:18 -04:00
2014-10-15 06:58:16 +02:00
2014-10-18 18:11:04 -07:00
2014-10-18 12:12:45 -07:00
2014-10-18 18:11:04 -07:00
2014-10-18 18:11:04 -07:00
2014-10-07 14:48:29 -04:00
2014-10-17 07:08:51 -04:00
2014-10-11 06:47:50 -04:00
2014-10-13 16:23:15 +02:00
2014-09-23 23:14:28 -07:00
2014-10-11 20:29:01 -04:00
2014-09-24 15:18:34 +05:30
2014-10-09 14:58:15 -04:00
2014-10-14 02:18:25 +02:00
2014-10-14 02:18:25 +02:00
2014-10-15 06:56:23 +02:00
2014-10-15 06:56:23 +02:00
2014-10-14 02:18:19 +02:00
2014-10-18 12:12:45 -07:00
2014-10-18 12:12:45 -07:00
2014-10-08 17:37:16 -04:00
2014-10-18 18:11:04 -07:00
2014-10-09 14:58:15 -04:00
2014-10-14 09:39:08 +02:00
2014-10-18 11:53:51 -07:00
2014-10-14 02:18:25 +02:00
2014-10-18 18:11:04 -07:00
2014-10-13 11:28:42 +02:00
2014-09-23 22:05:26 -07:00
2014-10-15 07:23:49 +02:00
2014-10-18 18:11:04 -07:00
2014-10-18 10:25:09 -07:00
2014-10-10 16:40:14 -04:00
2014-10-11 20:29:01 -04:00
2014-09-24 09:49:14 -04:00