]> 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)
commitb906e00274fbd21e70123229cb04993870e53434
tree083b459c3189cf850794b9f0d53fe0eb8af5652d
parent5baf742cf8976f7da08b698f6b38b7816d0bac4c
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