Skip to contentSkip to conversation

include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256

PATCH New Jun Liang Tan 2 participants 3 messages Apr 28, 2022 – May 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256

Increase maximum number of PMU hardware events that can be mapped by OpenSBI to 256

---
 include/sbi/sbi_pmu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sbi/sbi_pmu.h +1 -1
index 6a1c62c..f5e3dbd 100644
@@ -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
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256

+Atish

Quoted 6 lines · Jun Liang Tan

Increase maximum number of PMU hardware events that can be mapped by OpenSBI to 256

Looks good to me.

@Atish, we need to find better ways to control memory used by sbi_pmu.c

Regards,
Anup

Quoted 26 lines
---
 include/sbi/sbi_pmu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sbi/sbi_pmu.h +1 -2
index 6a1c62c..f5e3dbd 100644
@@ -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

Applied
#2 lore raw

PATCH 1/1 include: sbi: Define SBI_PMU_HW_EVENT_MAX to 256

Quoted 9 lines · Anup Patel

+Atish

Quoted 4 lines · Jun Liang Tan

Increase maximum number of PMU hardware events that can be mapped by OpenSBI to 256

Quoted 8 lines
Quoted 2 lines

Looks good to me.

@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

Quoted 30 lines

Regards,
Anup

Quoted 26 lines
---
 include/sbi/sbi_pmu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sbi/sbi_pmu.h +1 -2
index 6a1c62c..f5e3dbd 100644
@@ -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