perf/x86/intel: Initialize TFA MSR
authorPeter Zijlstra <peterz@infradead.org>
Thu, 21 Mar 2019 12:38:49 +0000 (13:38 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 09:40:32 +0000 (11:40 +0200)
commitd7262457e35dbe239659e62654e56f8ddb814bed
tree238de241f0e67ee5682da8b98efd9ab08799d711
parent583feb08e7f7ac9d533b446882eb3a54737a6dbb
perf/x86/intel: Initialize TFA MSR

Stephane reported that the TFA MSR is not initialized by the kernel,
but the TFA bit could set by firmware or as a leftover from a kexec,
which makes the state inconsistent.

Reported-by: Stephane Eranian <eranian@google.com>
Tested-by: Nelson DSouza <nelson.dsouza@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: tonyj@suse.com
Link: https://lkml.kernel.org/r/20190321123849.GN6521@hirez.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/core.c