]> git.baikalelectronics.ru Git - kernel.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)
commit39892807534fe1fd00b1da0fd57e47458ac479c1
tree083b459c3189cf850794b9f0d53fe0eb8af5652d
parent2e478cbb7edaa1ad77a5004c13b8dc7b35d41b08
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