]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RISC-V: Re-enable counter access from userspace
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 28 Sep 2022 13:18:07 +0000 (06:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:56:45 +0000 (09:56 +0200)
commite08302134d59b4378b7264e195406e05eb147fcb
tree1f48b9503b5e7df1166a179fdf60038bd515526e
parent1379df4c0697cc12050ced22284c0d2aefbc319c
RISC-V: Re-enable counter access from userspace

commit 5a5294fbe0200d1327f0e089135dad77b45aa2ee upstream.

These counters were part of the ISA when we froze the uABI, removing
them breaks userspace.

Link: https://lore.kernel.org/all/YxEhC%2FmDW1lFt36J@aurel32.net/
Fixes: e9991434596f ("RISC-V: Add perf platform driver based on SBI PMU extension")
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220928131807.30386-1-palmer@rivosinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/perf/riscv_pmu_sbi.c