[PATCH] drivers/perf: Risc-V: Update platform specific firmware event handling

Atish Patra atishp at atishpatra.org
Tue Aug 15 23:58:47 PDT 2023


On Tue, Aug 15, 2023 at 6:19 AM Conor Dooley <conor at kernel.org> wrote:
>
> On Mon, Aug 14, 2023 at 10:01:34AM +0530, Mayuresh Chitale wrote:
> > SBI specification [1] reserves an event code for platform specific
> > firmware events. Update the driver to use the new reserved event code
> > for platform specific firmware events. Also update the raw event parsing
> > to use bits 63:62 instead of only bit 63 to distinguish between the raw
> > event types. The platform specific firmware events must be specified in
> > the perf command as in the below example:
> > perf stat  -e rc000000000000001 <command>
> > where [63:62] = 0x3 indicates a platform specific firmware event
> >
> > Link: https://github.com/riscv-non-isa/riscv-sbi-doc/commit/c4bfdf9 [1]
> > Signed-off-by: Mayuresh Chitale <mchitale at ventanamicro.com>
>
> Hmm, another question - is this actually in a frozen version of the SBI
> spec? I might've got distracted during the last PRS meeting and be
> unaware, but I had it in my head that it was not frozen.

Yes. It is not frozen yet. We are in the process of getting all the
RVI approvals to freeze the spec.

-- 
Regards,
Atish



More information about the linux-riscv mailing list