intel_pstate: Fix MSR_CONFIG_TDP_x addressing in core_get_max_pstate()
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 Jul 2016 18:42:04 +0000 (20:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Jul 2016 13:12:30 +0000 (15:12 +0200)
commit5fc8f707a2aa40c767c3a338738b9b6fcd151ac1
treeca8a826907dbe6681ac47a8146bce898ba7b48db
parent825773609c8ae34a19d4b593555493ae2754eff7
intel_pstate: Fix MSR_CONFIG_TDP_x addressing in core_get_max_pstate()

If MSR_CONFIG_TDP_CONTROL is locked, we currently try to address some
MSR 0x80000648 or so. Mask out the relevant level bits 0 and 1.

Found while running over the Jailhouse hypervisor which became upset
about this strange MSR index.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c