android_kernel_google_msm/arch/powerpc
Anton Blanchard 7b9eab8f52 powerpc/perf: Never program book3s PMCs with values >= 0x80000000
commit f56029410a upstream.

We are seeing a lot of PMU warnings on POWER8:

    Can't find PMC that caused IRQ

Looking closer, the active PMC is 0 at this point and we took a PMU
exception on the transition from negative to 0. Some versions of POWER8
have an issue where they edge detect and not level detect PMC overflows.

A number of places program the PMC with (0x80000000 - period_left),
where period_left can be negative. We can either fix all of these or
just ensure that period_left is always >= 1.

This patch takes the second option.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-17 15:39:50 -07:00
..
boot powerpc/85xx: use the BRx registers to enable indirect mode on the P1022DS 2012-08-09 08:31:27 -07:00
configs Merge remote-tracking branch 'kumar/next' into merge 2012-04-02 13:57:46 +10:00
include/asm powerpc: Fix 64 bit builds with binutils 2.24 2014-06-16 13:45:45 -07:00
kernel powerpc/sysfs: Disable writing to PURR in guest mode 2014-07-09 10:51:22 -07:00
kvm KVM: PPC: Emulate dcbf 2014-03-11 16:10:03 -07:00
lib powerpc: Restore registers on error exit from csum_partial_copy_generic() 2014-07-09 10:51:21 -07:00
math-emu
mm powerpc/numa: Avoid stupid uninitialized warning from gcc 2013-08-20 08:26:28 -07:00
net bpf jit: Let the powerpc jit handle negative offsets 2012-04-30 13:40:50 -04:00
oprofile Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
perf powerpc/perf: Never program book3s PMCs with values >= 0x80000000 2014-07-17 15:39:50 -07:00
platforms powerpc/pseries: Fix overwritten PE state 2014-07-06 18:49:20 -07:00
sysdev powerpc: Make sure IPI handlers see data written by IPI senders 2012-09-14 10:00:22 -07:00
xmon powerpc/xmon: Use cpumask iterator to avoid warning 2012-07-16 09:03:23 -07:00
Kconfig powerpc: Work around gcc miscompilation of __pa() on 64-bit 2013-09-07 21:58:14 -07:00
Kconfig.debug irqdomain: Remove powerpc dependency from debugfs file 2012-03-29 14:31:02 -06:00
Makefile powerpc: Fix 64 bit builds with binutils 2.24 2014-06-16 13:45:45 -07:00
relocs_check.pl