[EXTERNAL]Re: [RISC-V] [tech-privileged] Performance Monitor Interrupts
Greg Favor
On Wed, Dec 9, 2020 at 3:09 PM Sanjay Patel <spatel@...> wrote:
Yes. 聽
It's not fully in my control, but I'm hoping within the next week or two. Greg 聽 |
|
Sanjay Patel <spatel@...>
(+platforms, which Mark had added in.) 聽 Thanks for the quick reply Greg. Good to know it is of concern to others. 馃槉 聽 I assume the specification will be posted for public review in the privileged workgroup. Is there an approximate timeline? 聽 Sanjay 聽 From: Greg Favor <gfavor@...> 聽 On Wed, Dec 9, 2020 at 1:25 PM Sanjay Patel <spatel@...> wrote:
Fancy you should聽ask. :)聽 A fast-track extension is being put together (and going thru some pre-review by a couple of key people) and hopefully should聽be put to initial聽public review very soon.聽 That extension will strive to standardize generating interrupts on counter overflows.聽 But thus far the architecture says nothing about this topic and hence anything done today by implementations in this regard is custom (and an implementation is free to do whatever it wants). 聽
This overflow interrupt capability is a missing聽architectural聽feature that other聽architectures have, and Linux perf supports, and needs to be added to RISC-V to bring it on par with everyone聽else.聽 As far as what happens for RISC-V in Linux perf in this particular regard, I'll let a software person provide a proper answer. 聽
In today's architecture聽the hpmcounter CSRs and the associated mhpmevent CSRs can only be written in M-mode.聽 An OpenSBI extension is currently in progress of being added to OpenSBI to support setting of these CSRs by lower privilege modes. 聽 Greg 聽 |
|