[PATCH 1/1] docs: pmu_support: fix example typos
Anup Patel
anup at brainfault.org
Mon Apr 14 04:57:13 PDT 2025
On Mon, Mar 24, 2025 at 10:09 AM Leo Yu-Chi Liang <ycliang at andestech.com> wrote:
>
> The (event ID & "second column mask") should equal
> the "first column match value". Modify the example
> to fit the description.
>
> Signed-off-by: Leo Yu-Chi Liang <ycliang at andestech.com>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> docs/pmu_support.md | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/docs/pmu_support.md b/docs/pmu_support.md
> index 9b48f1e..b552e67 100644
> --- a/docs/pmu_support.md
> +++ b/docs/pmu_support.md
> @@ -74,10 +74,10 @@ pmu {
> <0x10000 0x10033 0x000ff000>;
> /* For event ID 0x0002 */
> riscv,raw-event-to-mhpmcounters = <0x0000 0x0002 0xffffffff 0xffffffff 0x00000f8>,
> - /* For event ID 0-4 */
> + /* For event ID 0-15 */
> <0x0 0x0 0xffffffff 0xfffffff0 0x00000ff0>,
> /* For event ID 0xffffffff0000000f - 0xffffffff000000ff */
> - <0xffffffff 0x0 0xffffffff 0xffffff0f 0x00000ff0>;
> + <0xffffffff 0xf 0xffffffff 0xffffff0f 0x00000ff0>;
> };
> ```
>
> --
> 2.34.1
>
More information about the opensbi
mailing list