Skip to content

Commit c210ae8

Browse files
Jan Glauberwildea01
authored andcommitted
arm64: perf: Extend event mask for ARMv8.1
ARMv8.1 increases the PMU event number space to 16 bit so increase the EVTYPE mask. Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 7175f05 commit c210ae8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/arm64/kernel/perf_event.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ static const struct attribute_group *armv8_pmuv3_attr_groups[] = {
419419
/*
420420
* PMXEVTYPER: Event selection reg
421421
*/
422-
#define ARMV8_EVTYPE_MASK 0xc80003ff /* Mask for writable bits */
423-
#define ARMV8_EVTYPE_EVENT 0x3ff /* Mask for EVENT bits */
422+
#define ARMV8_EVTYPE_MASK 0xc800ffff /* Mask for writable bits */
423+
#define ARMV8_EVTYPE_EVENT 0xffff /* Mask for EVENT bits */
424424

425425
/*
426426
* Event filters for PMUv3

0 commit comments

Comments
 (0)