]> git.baikalelectronics.ru Git - kernel.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)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 13 Oct 2022 18:18:39 +0000 (11:18 -0700)
commit39e25a32bee0a5f1bd8e45f74c6021320d18cb92
tree538d6e3f66215967336ee80b5088d3799fd938e7
parentca36a4edf282643b807c7c0a965cd622e677a3bb
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: dff7f050cfad ("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