Commit d10fca9f authored by Will Deacon's avatar Will Deacon Committed by Russell King

ARM: 5960/1: ARM: perf-events: fix v7 event selection mask

The event selection mask for ARMv7 cores [ARMV7_EVTSEL_MASK]
is incorrectly set to 0x7f. This means that the top bit of an
event ID is ignored, so counting branch misses (id=0x10) and
ISBs (id=0x90) give the same results.

This patch sets the event selection mask to the correct value
of 0xff.
Signed-off-by: default avatarJean Pihet <jpihet@mvista.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ddee87f2
...@@ -1625,7 +1625,7 @@ enum armv7_counters { ...@@ -1625,7 +1625,7 @@ enum armv7_counters {
/* /*
* EVTSEL: Event selection reg * EVTSEL: Event selection reg
*/ */
#define ARMV7_EVTSEL_MASK 0x7f /* Mask for writable bits */ #define ARMV7_EVTSEL_MASK 0xff /* Mask for writable bits */
/* /*
* SELECT: Counter selection reg * SELECT: Counter selection reg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment