intel_pstate: Fix setting VID
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Fri, 20 Jun 2014 14:27:58 +0000 (07:27 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 6 Jul 2014 23:22:19 +0000 (01:22 +0200)
commitc16ed06024a6e699c332831dd50d8276744e3de8
treed9780f7ad69431aed8a7457d01bd7a33a69ec333
parentfefa8ff810c5ab4c4206aed9d159c4d6fe8d4f1c
intel_pstate: Fix setting VID

Commit 21855ff5 (intel_pstate: Set turbo VID for BayTrail) introduced
setting the turbo VID which is required to prevent a machine check on
some Baytrail SKUs under heavy graphics based workloads.  The
docmumentation update that brought the requirement to light also
changed the bit mask used for enumerating P state and VID values from
0x7f to 0x3f.

This change returns the mask value to 0x7f.

Tested with the Intel NUC DN2820FYK,
BIOS version FYBYT10H.86A.0034.2014.0513.1413 with v3.16-rc1 and
v3.14.8 kernel versions.

Fixes: 21855ff5 (intel_pstate: Set turbo VID for BayTrail)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=77951
Reported-and-tested-by: Rune Reterson <rune@megahurts.dk>
Reported-and-tested-by: Eric Eickmeyer <erich@ericheickmeyer.com>
Cc: 3.13+ <stable@vger.kernel.org> # 3.13+
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c