summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/tm.S
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2013-10-02 12:04:06 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-10-03 11:25:38 +0400
commita53b27b3abeef406de92a2bb0ceb6fb4c3fb8fc4 (patch)
tree6fb7ab29d0882b487b2f648f96a3d1c74454a1fc /arch/powerpc/kernel/tm.S
parente82b89a6f19bae73fb064d1b3dd91fcefbb478f4 (diff)
downloadlinux-a53b27b3abeef406de92a2bb0ceb6fb4c3fb8fc4.tar.xz
powerpc/perf: Fix handling of FAB events
Commit 4df4899 "Add power8 EBB support" included a bug in the handling of the FAB_CRESP_MATCH and FAB_TYPE_MATCH fields. These values are pulled out of the event code using EVENT_THR_CTL_SHIFT, however we were then or'ing that value directly into MMCR1. This meant we were failing to set the FAB fields correctly, and also potentially corrupting the value for PMC4SEL. Leading to no counts for the FAB events and incorrect counts for PMC4. The fix is simply to shift left the FAB value correctly before or'ing it with MMCR1. Reported-by: Sooraj Ravindran Nair <soonair3@in.ibm.com> Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Cc: <stable@vger.kernel.org> # 3.10+ Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/tm.S')
0 files changed, 0 insertions, 0 deletions