Skip to content
Commit 68055915 authored by Andi Kleen's avatar Andi Kleen Committed by Ingo Molnar
Browse files

perf/x86/intel/uncore: Fix boot crash on SBOX PMU on Haswell-EP



There were several reports that on some systems writing the SBOX0 PMU
initialization MSR would #GP at boot. This did not happen on all
systems -- my two test systems booted fine.

Writing the three initialization bits bit-by-bit seems to avoid the
problem. So add a special callback to do just that.

This replaces an earlier patch that disabled the SBOX.

Reported-by: default avatarAlexei Starovoitov <alexei.starovoitov@gmail.com>
Reported-and-Tested-by: default avatarPatrick Lu <patrick.lu@intel.com>
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: http://lkml.kernel.org/r/1415062828-19759-4-git-send-email-andi@firstfloor.org


[ Fixed a whitespace error and added attribution tags that were left out inexplicably. ]
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 41a134a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment