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

Conor Dooley conor at kernel.org
Tue Aug 15 06:19:53 PDT 2023


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20230815/4e5787ed/attachment.sig>


More information about the linux-riscv mailing list