lib: sbi: pmu: Rework SSE callbacks
Status from this message: Applied this series to the riscv/opensbi repo.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 7 repliesApplied
- v11 patch 2 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib: sbi: pmu: Add SSE register/unregister() callbackslib/ | +18 | 2 replies | |
| 2/2 | lib: sbi: pmu: Remove MIP clearing from pmu_sse_enable()lib/ | +0 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Atish Patra | Samuel Holland |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] lib: sbi: pmu: Rework SSE callbacks
While testing the PMU SSE support in Linux, a few problem were spotted. The first one was due to interrupts happing during some PMU critical sections. Indeed, the PMU core actually disable interrupts when entering these sections. However, while this works when interrupts are targeting the S-mode, this is not the case with SSE. Fixing this required to implement pmu_disable/enable() in Linux [1]. These two callbacks now call sse_event_disable/enable() which now just needs to set/clear MIE/MIP. Second problem was that reported PMU events count were quite low. This proved to be due to some interrupts being losed when reenabling SSE event. We still need to clear the pending PMU interrupts upon disabling otherwise we might get some spurious interrupts when reenabling it.
Clément Léger (2):
lib: sbi: pmu: Add SSE register/unregister() callbacks
lib: sbi: pmu: Remove MIP clearing from pmu_sse_enable()
lib/sbi/sbi_pmu.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)
Signature · 7 lines
2.49.0 -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi