android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Shishkin 0ce2b3ecdc perf/x86/intel: Fix PT PMI handling
[ Upstream commit 92ca7da4bdc24d63bb0bcd241c11441ddb63b80a ]

Commit:

  ccbebba4c6 ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity if the core supports it")

skips the PT/LBR exclusivity check on CPUs where PT and LBRs coexist, but
also inadvertently skips the active_events bump for PT in that case, which
is a bug. If there aren't any hardware events at the same time as PT, the
PMI handler will ignore PT PMIs, as active_events reads zero in that case,
resulting in the "Uhhuh" spurious NMI warning and PT data loss.

Fix this by always increasing active_events for PT events.

Fixes: ccbebba4c6 ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity if the core supports it")
Reported-by: Vitaly Slobodskoy <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Alexey Budankov <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2020-01-12 12:21:36 +01:00
..
alpha
arc ARC: perf: Accommodate big-endian CPU 2019-10-22 09:59:43 -07:00
arm ARM: imx_v6_v7_defconfig: Explicitly restore CONFIG_DEBUG_FS 2020-01-12 12:21:27 +01:00
arm64 arm64: dts: ls1028a: fix reboot node 2020-01-12 12:21:26 +01:00
c6x
csky
h8300
hexagon
ia64 mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
m68k
microblaze
mips bpf, mips: Limit to 33 tail calls 2020-01-12 12:21:24 +01:00
nds32
nios2
openrisc
parisc parisc: add missing __init annotation 2020-01-12 12:21:33 +01:00
powerpc powerpc/spinlocks: Include correct header for static key 2020-01-12 12:21:29 +01:00
riscv bpf, riscv: Limit to 33 tail calls 2020-01-12 12:21:24 +01:00
s390 s390/smp: fix physical to logical CPU map for SMT 2020-01-09 10:20:06 +01:00
sh mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
sparc sparc64: implement ioremap_uc 2019-12-13 08:42:17 +01:00
um um: virtio: Keep reading on -EAGAIN 2020-01-04 19:18:24 +01:00
unicore32
x86 perf/x86/intel: Fix PT PMI handling 2020-01-12 12:21:36 +01:00
xtensa xtensa: fix syscall_set_return_value 2019-12-21 11:04:35 +01:00
.gitignore
Kconfig