linux-uconsole/arch/powerpc
Anton Blanchard 49f936fe90 powerpc/perf: power_pmu_start restores incorrect values, breaking frequency events
commit 9a45a9407c upstream.

perf on POWER stopped working after commit e050e3f0a7 (perf: Fix
broken interrupt rate throttling). That patch exposed a bug in
the POWER perf_events code.

Since the PMCs count upwards and take an exception when the top bit
is set, we want to write 0x80000000 - left in power_pmu_start. We were
instead programming in left which effectively disables the counter
until we eventually hit 0x80000000. This could take seconds or longer.

With the patch applied I get the expected number of samples:

          SAMPLE events:       9948

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-29 16:33:39 -08:00
..
boot powerpc/p1022ds: fix audio-related properties in the device tree 2011-06-22 06:14:54 -05:00
configs powerpc/pseries: remove duplicate SCSI_BNX2_ISCSI in pseries_defconfig 2011-06-29 09:28:52 +10:00
include/asm powerpc/time: Handle wrapping of decrementer 2012-01-12 11:35:02 -08:00
kernel powerpc/perf: power_pmu_start restores incorrect values, breaking frequency events 2012-02-29 16:33:39 -08:00
kvm Merge branch 'kvm-updates/2.6.40' of git://git.kernel.org/pub/scm/virt/kvm/kvm 2011-05-23 08:42:08 -07:00
lib powerpc: Copy down exception vectors after feature fixups 2011-11-21 14:31:25 -08:00
math-emu powerpc/85xx: Fix SPE float to integer conversion failure 2011-03-15 13:48:15 -05:00
mm powerpc: Fix deadlock in icswx code 2011-11-11 09:37:11 -08:00
oprofile powerpc/oprofile: Handle events that raise an exception without overflowing 2011-05-26 13:38:57 +10:00
platforms powerpc: Fix unpaired probe_hcall_entry and probe_hcall_exit 2012-01-12 11:35:03 -08:00
sysdev arch/powerpc/sysdev/fsl_rio.c: correct IECSR register clear value 2011-10-03 11:39:46 -07:00
xmon powerpc: Remove call sites of MSG_ALL_BUT_SELF 2011-05-19 14:30:46 +10:00
Kconfig arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,BIT_LE,LAST_BIT} 2011-05-26 17:12:38 -07:00
Kconfig.debug lib: consolidate DEBUG_STACK_USAGE option 2011-05-25 08:39:54 -07:00
Makefile powerpc: Fix typo in uImage target 2010-08-24 15:26:32 +10:00
relocs_check.pl