]> Pileus Git - ~andy/linux/commitdiff
arm64: perf: fix ARMv8 EVTYPE_MASK to include NSH bit
authorWill Deacon <will.deacon@arm.com>
Tue, 20 Aug 2013 10:47:42 +0000 (11:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 20 Aug 2013 11:12:25 +0000 (12:12 +0100)
This is a port of f2fe09b055e2 ("ARM: 7663/1: perf: fix ARMv7 EVTYPE_MASK
to include NSH bit") to arm64, which fixes the broken evtype mask to
include the NSH bit, allowing profiling at EL2.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/perf_event.c

index 2a1e9163d67a7061e8a63362e9eb6174e35eca26..cea1594ff933e92e304a6996a4642f18f322487a 100644 (file)
@@ -784,7 +784,7 @@ static const unsigned armv8_pmuv3_perf_cache_map[PERF_COUNT_HW_CACHE_MAX]
 /*
  * PMXEVTYPER: Event selection reg
  */
-#define        ARMV8_EVTYPE_MASK       0xc00000ff      /* Mask for writable bits */
+#define        ARMV8_EVTYPE_MASK       0xc80000ff      /* Mask for writable bits */
 #define        ARMV8_EVTYPE_EVENT      0xff            /* Mask for EVENT bits */
 
 /*