RISC-V: Re-enable counter access from userspace
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 28 Sep 2022 13:18:07 +0000 (06:18 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 13 Oct 2022 18:18:39 +0000 (11:18 -0700)
commit5a5294fbe0200d1327f0e089135dad77b45aa2ee
tree538d6e3f66215967336ee80b5088d3799fd938e7
parenta8616d2dc193b6becc36b5f3cfeaa9ac7a5762f9
RISC-V: Re-enable counter access from userspace

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>
drivers/perf/riscv_pmu_sbi.c