[PATCH v4 06/11] lib: sbi: Always enable access for all counters

Bin Meng bmeng.cn at gmail.com
Sun Nov 7 18:38:11 PST 2021


On Sat, Nov 6, 2021 at 6:05 AM Atish Patra <atish.patra at wdc.com> wrote:
>
> OpenSBI don't use any counters for its own usage. Thus, all the counters

This was wrongly replaced. Should be "OpenSBI doesn't". I was asking
below change:

> can be made accessible for lower privilege mode always. However, the
> mcountinhibit must be set so that the counter don't increment.

the counter doesn't increment

> As a result, we don't have to enable/disable mcounteren at every start/stop.
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Anup Patel <anup.patel at wdc.com>
> Signed-off-by: Atish Patra <atish.patra at wdc.com>
> ---
>  lib/sbi/sbi_hart.c | 21 +++++++--------------
>  lib/sbi/sbi_pmu.c  | 16 ++++------------
>  2 files changed, 11 insertions(+), 26 deletions(-)
>

Regards,
Bin



More information about the opensbi mailing list