Skip to content
Commit 7446c441 authored by Ilkka Koskinen's avatar Ilkka Koskinen Committed by Greg Kroah-Hartman
Browse files

arm64/arm: arm_pmuv3: perf: Don't truncate 64-bit registers



[ Upstream commit 403edfa4 ]

The driver used to truncate several 64-bit registers such as PMCEID[n]
registers used to describe whether architectural and microarchitectural
events in range 0x4000-0x401f exist. Due to discarding the bits, the
driver made the events invisible, even if they existed.

Moreover, PMCCFILTR and PMCR registers have additional bits in the upper
32 bits. This patch makes them available although they aren't currently
used. Finally, functions handling PMXEVCNTR and PMXEVTYPER registers are
removed as they not being used at all.

Fixes: df29ddf4 ("arm64: perf: Abstract system register accesses away")
Reported-by: default avatarCarl Worth <carl@os.amperecomputing.com>
Signed-off-by: default avatarIlkka Koskinen <ilkka@os.amperecomputing.com>
Acked-by: default avatarWill Deacon <will@kernel.org>
Closes: https://lore.kernel.org/

..
Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20231102183012.1251410-1-ilkka@os.amperecomputing.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 68b1ad75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment