Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Unverified Commit 1537bf26 authored by Sergey Matyukevich's avatar Sergey Matyukevich Committed by Palmer Dabbelt
Browse files

perf: RISC-V: exclude invalid pmu counters from SBI calls


SBI firmware may not provide information for some counters in response
to SBI_EXT_PMU_COUNTER_GET_INFO call. Exclude such counters from the
subsequent SBI requests. For this purpose use global mask to keep track
of fully specified counters.

Signed-off-by: default avatarSergey Matyukevich <sergey.matyukevich@syntacore.com>
Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20220830155306.301714-3-geomatsi@gmail.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 82c75dca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment