[PATCH 0/3] lib: sbi: fix PMU SSE event handling
Clément Léger
cleger at rivosinc.com
Fri Dec 6 12:59:54 PST 2024
While reworking the Linux SSE support, it appears that the PMU event
should not be available if the SSCOFPMF extension is not available since
there would be no IRQ. The specification isn't really clear on that point
so this is more like a RFC to check that. Ideally, the sse register call
should allow to refuse registering an event if the dependencies are not
satisfied but does not allow this yet.
Clément Léger (3):
lib: sbi: sse: Return a value from the register callback
lib: sbi: sse: Disable injection if callbacks are set
lib: sbi: pmu: Set a SSE register_cb() for event availability
include/sbi/sbi_sse.h | 2 +-
lib/sbi/sbi_pmu.c | 11 +++++++++++
lib/sbi/sbi_sse.c | 19 +++++++++++++++++--
3 files changed, 29 insertions(+), 3 deletions(-)
--
2.45.2
More information about the opensbi
mailing list