]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf/x86/intel/bts: Fix BTS PMI detection
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 6 Sep 2016 13:23:52 +0000 (16:23 +0300)
committerIngo Molnar <mingo@kernel.org>
Sat, 10 Sep 2016 09:15:38 +0000 (11:15 +0200)
commit4d4c474124649198d9b0a065c06f9362cf18e14e
tree083b459c3189cf850794b9f0d53fe0eb8af5652d
parenta9a94401c2b5805c71e39427b1af1bf1b9f67cd0
perf/x86/intel/bts: Fix BTS PMI detection

Since BTS doesn't have a dedicated PMI status bit, the driver needs to
take extra care to check for the condition that triggers it to avoid
spurious NMI warnings.

Regardless of the local BTS context state, the only way of knowing that
the NMI is ours is to compare the write pointer against the interrupt
threshold.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
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: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: vince@deater.net
Link: http://lkml.kernel.org/r/20160906132353.19887-5-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/bts.c