|
Re: Proposal v2: SBI PMU Extension
Based on my previous reply…
To monitor RAW event 0x12345678, user-space perf tool will create user space perf RAW event (i.e. perf_event_attr.type == 4 and perf_event_attr.config = =
Based on my previous reply…
To monitor RAW event 0x12345678, user-space perf tool will create user space perf RAW event (i.e. perf_event_attr.type == 4 and perf_event_attr.config = =
|
By
Anup Patel
·
#137
·
|
|
Re: Proposal v2: SBI PMU Extension
Like Greg already mentioned, SBI PMU event_idx.type == 0x2 is HARDWARE RAW event.
To monitor RAW events, user-space perf tool will create user space perf RAW event (i.e. perf_event_attr.type == 4
Like Greg already mentioned, SBI PMU event_idx.type == 0x2 is HARDWARE RAW event.
To monitor RAW events, user-space perf tool will create user space perf RAW event (i.e. perf_event_attr.type == 4
|
By
Anup Patel
·
#136
·
|
|
Re: Proposal v2: SBI PMU Extension
I think this need is covered by this excerpt from the v2 proposal:
If event_idx.type == 0x2 then it is HARDWARE RAW event. For HARDWARE RAW
event, both event_idx.info and event_idx.code are platform
I think this need is covered by this excerpt from the v2 proposal:
If event_idx.type == 0x2 then it is HARDWARE RAW event. For HARDWARE RAW
event, both event_idx.info and event_idx.code are platform
|
By
Greg Favor
·
#135
·
|
|
Re: Proposal v2: SBI PMU Extension
My question is, let's say I know that putting the value 0x12345678 into the mhpmevent3 register gets me the event I want, and there is no support for that event in the SBI spec/API. Will this API
My question is, let's say I know that putting the value 0x12345678 into the mhpmevent3 register gets me the event I want, and there is no support for that event in the SBI spec/API. Will this API
|
By
Brian Grayson
·
#134
·
|
|
Re: Proposal v2: SBI PMU Extension
Follow this question, in our current proposal, s-mode software only
knows the event_idx, and m-mode firmware takes care of the mapping, my
question is that s-mode software doesn't seem to understand
Follow this question, in our current proposal, s-mode software only
knows the event_idx, and m-mode firmware takes care of the mapping, my
question is that s-mode software doesn't seem to understand
|
By
Zong Li
·
#133
·
|
|
Re: [RISC-V] [software] Add SBI extension space for firmware code base implementation
Kindly send the proposal to the mailing list. We have enough topics now
so that we can setup a meeting to discuss and finalize things.
--
Regards,
Atish
Kindly send the proposal to the mailing list. We have enough topics now
so that we can setup a meeting to discuss and finalize things.
--
Regards,
Atish
|
By
atishp@...
·
#132
·
|
|
Re: Proposal v2: SBI PMU Extension
Would there be a raw style interface to access all the SBI-unaware events, like perf's rNNN support?
How would this work on a multicore system -- would the SBI calls only handle the current hart's
Would there be a raw style interface to access all the SBI-unaware events, like perf's rNNN support?
How would this work on a multicore system -- would the SBI calls only handle the current hart's
|
By
Brian Grayson
·
#131
·
|
|
Re: Proposal v2: SBI PMU Extension
The key is we need to know the range of HW counters and SW counters in
countex_idxs.
Even if we use continuous logical counter_idx, we still need knowing HW counters
and SW counters respectively for
The key is we need to know the range of HW counters and SW counters in
countex_idxs.
Even if we use continuous logical counter_idx, we still need knowing HW counters
and SW counters respectively for
|
By
Zong Li
·
#130
·
|
|
Re: Proposal v2: SBI PMU Extension
By
Anup Patel
·
#129
·
|
|
Re: Proposal v2: SBI PMU Extension
By
Anup Patel
·
#128
·
|
|
Re: Proposal v2: SBI PMU Extension
Based on the optimization as you mentioned, it is good to me if we have SBI
call to get the number of HW and SW counters respectively. If s-mode OS
can know the separating numbers, then s-mode OS can
Based on the optimization as you mentioned, it is good to me if we have SBI
call to get the number of HW and SW counters respectively. If s-mode OS
can know the separating numbers, then s-mode OS can
|
By
Zong Li
·
#127
·
|
|
Re: Proposal v2: SBI PMU Extension
I was suggesting to have fixed ranges for both event types.
But I agree that it gets tricky with non-standard implementation
specific counters.
My concern is that it may increase the booting time.
I was suggesting to have fixed ranges for both event types.
But I agree that it gets tricky with non-standard implementation
specific counters.
My concern is that it may increase the booting time.
|
By
atishp@...
·
#126
·
|
|
Re: Proposal v2: SBI PMU Extension
Hi Atish,
By
Anup Patel
·
#125
·
|
|
Re: Proposal v2: SBI PMU Extension
Hi Brian,
Please see my reply inline below..
Regards,
Anup
Hi Brian,
Please see my reply inline below..
Regards,
Anup
|
By
Anup Patel
·
#124
·
|
|
Re: Proposal v2: SBI PMU Extension
Is there a reason you are limiting the event to 16 bits? On current designs, the mhpmeventX field is already >16 bits wide. I don't see an easy way to support that with this approach directly. (Or
Is there a reason you are limiting the event to 16 bits? On current designs, the mhpmeventX field is already >16 bits wide. I don't see an easy way to support that with this approach directly. (Or
|
By
Brian Grayson
·
#123
·
|
|
Re: Proposal v2: SBI PMU Extension
That's what my understanding as well. Assigning continous counter_idx
may put a restriction on M-mode implementation. How about assigning
some ranges for software vs hardware counters. May be split
That's what my understanding as well. Assigning continous counter_idx
may put a restriction on M-mode implementation. How about assigning
some ranges for software vs hardware counters. May be split
|
By
atishp@...
·
#122
·
|
|
Re: Proposal v2: SBI PMU Extension
OK, I assume the logical number of counte_idx is sequential and
started from zero here,
so during initialization of s-mode software, we could get the total
number 'N' of counters
by
OK, I assume the logical number of counte_idx is sequential and
started from zero here,
so during initialization of s-mode software, we could get the total
number 'N' of counters
by
|
By
Zong Li
·
#121
·
|
|
Re: Proposal v2: SBI PMU Extension
By
Anup Patel
·
#120
·
|
|
Re: Proposal v2: SBI PMU Extension
Is there more detail about counter_idx? I was wondering that
1. What is the ordering of logical numbers for HW and SW counters? I
think that the logical numbers are assigned by OpenSBI.
2. How to know
Is there more detail about counter_idx? I was wondering that
1. What is the ordering of logical numbers for HW and SW counters? I
think that the logical numbers are assigned by OpenSBI.
2. How to know
|
By
Zong Li
·
#119
·
|
|
Proposal v2: SBI PMU Extension
Hi All,
We don't have a dedicated RISC-V PMU extension but we do have HARDWARE
performance counters such as CYCLE CSR, INSTRET CSR, and HPMCOUNTER
CSRs. A RISC-V implementation can support monitoring
Hi All,
We don't have a dedicated RISC-V PMU extension but we do have HARDWARE
performance counters such as CYCLE CSR, INSTRET CSR, and HPMCOUNTER
CSRs. A RISC-V implementation can support monitoring
|
By
Anup Patel
·
#118
·
|