* [PATCH] include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256
@ 2022-04-28 9:45 Jun Liang Tan
2022-04-29 9:57 ` Anup Patel
0 siblings, 1 reply; 3+ messages in thread
From: Jun Liang Tan @ 2022-04-28 9:45 UTC (permalink / raw)
To: opensbi
Increase maximum number of PMU hardware events that can be mapped
by OpenSBI to 256
Signed-off-by: Jun Liang Tan <junliang.tan@linux.starfivetech.com>
Signed-off-by: Wei Liang Lim <weiliang.lim@linux.starfivetech.com>
---
include/sbi/sbi_pmu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/sbi/sbi_pmu.h b/include/sbi/sbi_pmu.h
index 6a1c62c..f5e3dbd 100644
--- a/include/sbi/sbi_pmu.h
+++ b/include/sbi/sbi_pmu.h
@@ -17,7 +17,7 @@
/* Event related macros */
/* Maximum number of hardware events that can mapped by OpenSBI */
-#define SBI_PMU_HW_EVENT_MAX 64
+#define SBI_PMU_HW_EVENT_MAX 256
/* Maximum number of firmware events that can mapped by OpenSBI */
#define SBI_PMU_FW_EVENT_MAX 32
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256
2022-04-28 9:45 [PATCH] include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256 Jun Liang Tan
@ 2022-04-29 9:57 ` Anup Patel
2022-05-07 4:15 ` Anup Patel
0 siblings, 1 reply; 3+ messages in thread
From: Anup Patel @ 2022-04-29 9:57 UTC (permalink / raw)
To: opensbi
+Atish
On Thu, Apr 28, 2022 at 3:28 PM Jun Liang Tan
<junliang.tan@linux.starfivetech.com> wrote:
>
> Increase maximum number of PMU hardware events that can be mapped
> by OpenSBI to 256
>
> Signed-off-by: Jun Liang Tan <junliang.tan@linux.starfivetech.com>
> Signed-off-by: Wei Liang Lim <weiliang.lim@linux.starfivetech.com>
Looks good to me.
Reviewed-by: Anup Patel <anup@brainfault.org>
@Atish, we need to find better ways to control memory used by sbi_pmu.c
Regards,
Anup
> ---
> include/sbi/sbi_pmu.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/sbi/sbi_pmu.h b/include/sbi/sbi_pmu.h
> index 6a1c62c..f5e3dbd 100644
> --- a/include/sbi/sbi_pmu.h
> +++ b/include/sbi/sbi_pmu.h
> @@ -17,7 +17,7 @@
>
> /* Event related macros */
> /* Maximum number of hardware events that can mapped by OpenSBI */
> -#define SBI_PMU_HW_EVENT_MAX 64
> +#define SBI_PMU_HW_EVENT_MAX 256
>
> /* Maximum number of firmware events that can mapped by OpenSBI */
> #define SBI_PMU_FW_EVENT_MAX 32
> --
> 2.25.1
>
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256
2022-04-29 9:57 ` Anup Patel
@ 2022-05-07 4:15 ` Anup Patel
0 siblings, 0 replies; 3+ messages in thread
From: Anup Patel @ 2022-05-07 4:15 UTC (permalink / raw)
To: opensbi
On Fri, Apr 29, 2022 at 3:27 PM Anup Patel <anup@brainfault.org> wrote:
>
> +Atish
>
> On Thu, Apr 28, 2022 at 3:28 PM Jun Liang Tan
> <junliang.tan@linux.starfivetech.com> wrote:
> >
> > Increase maximum number of PMU hardware events that can be mapped
> > by OpenSBI to 256
> >
> > Signed-off-by: Jun Liang Tan <junliang.tan@linux.starfivetech.com>
> > Signed-off-by: Wei Liang Lim <weiliang.lim@linux.starfivetech.com>
>
> Looks good to me.
>
> Reviewed-by: Anup Patel <anup@brainfault.org>
>
> @Atish, we need to find better ways to control memory used by sbi_pmu.c
Applied this patch to the riscv/opensbi repo
Thanks,
Anup
>
> Regards,
> Anup
>
> > ---
> > include/sbi/sbi_pmu.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/sbi/sbi_pmu.h b/include/sbi/sbi_pmu.h
> > index 6a1c62c..f5e3dbd 100644
> > --- a/include/sbi/sbi_pmu.h
> > +++ b/include/sbi/sbi_pmu.h
> > @@ -17,7 +17,7 @@
> >
> > /* Event related macros */
> > /* Maximum number of hardware events that can mapped by OpenSBI */
> > -#define SBI_PMU_HW_EVENT_MAX 64
> > +#define SBI_PMU_HW_EVENT_MAX 256
> >
> > /* Maximum number of firmware events that can mapped by OpenSBI */
> > #define SBI_PMU_FW_EVENT_MAX 32
> > --
> > 2.25.1
> >
> >
> >
> > --
> > opensbi mailing list
> > opensbi at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/opensbi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-07 4:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28 9:45 [PATCH] include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256 Jun Liang Tan
2022-04-29 9:57 ` Anup Patel
2022-05-07 4:15 ` Anup Patel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox