]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Fix SBI PMU calls for RV32
authorAtish Patra <atishp@rivosinc.com>
Mon, 11 Jul 2022 17:46:30 +0000 (10:46 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Aug 2022 21:58:18 +0000 (14:58 -0700)
commit41011fb630d3cee094f5a6b96155fc26c866c2fb
treef847556ac6dc832d42b7f411a2302c26fcfaa1ca
parent78a861510debeb9f24a92af3f6b34145175dbb1d
RISC-V: Fix SBI PMU calls for RV32

Some of the SBI PMU calls does not pass 64bit arguments
correctly and not under RV32 compile time flags. Currently,
this doesn't create any incorrect results as RV64 ignores
any value in the additional register and qemu doesn't support
raw events.

Fix those SBI calls in order to set correct values for RV32.

Fixes: dff7f050cfad ("RISC-V: Add perf platform driver based on SBI PMU extension")
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220711174632.4186047-4-atishp@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/perf/riscv_pmu_sbi.c