linux-stable/arch
Ilkka Koskinen afadf1fad6 arm64/arm: arm_pmuv3: perf: Don't truncate 64-bit registers
[ Upstream commit 403edfa436 ]

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: df29ddf4f0 ("arm64: perf: Abstract system register accesses away")
Reported-by: Carl Worth <carl@os.amperecomputing.com>
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Acked-by: Will Deacon <will@kernel.org>
Closes: https://lore.kernel.org/..
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20231102183012.1251410-1-ilkka@os.amperecomputing.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:38 +01:00
..
alpha
arc
arm arm64/arm: arm_pmuv3: perf: Don't truncate 64-bit registers 2023-11-20 11:59:38 +01:00
arm64 arm64/arm: arm_pmuv3: perf: Don't truncate 64-bit registers 2023-11-20 11:59:38 +01:00
csky
hexagon
ia64
loongarch
m68k
microblaze
mips
nios2
openrisc
parisc
powerpc powerpc/vmcore: Add MMU information to vmcoreinfo 2023-11-20 11:59:29 +01:00
riscv RISC-V: Don't fail in riscv_of_parent_hartid() for disabled HARTs 2023-11-20 11:59:37 +01:00
s390
sh sh: bios: Revive earlyprintk support 2023-11-20 11:59:22 +01:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-10-27 20:06:06 -04:00
um
x86 x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro 2023-11-20 11:59:09 +01:00
xtensa
.gitignore
Kconfig