* [PATCH v2] drivers/perf: RISC-V: Allow programming custom firmware events
@ 2023-02-08 7:43 Mayuresh Chitale
2023-03-02 3:20 ` patchwork-bot+linux-riscv
0 siblings, 1 reply; 2+ messages in thread
From: Mayuresh Chitale @ 2023-02-08 7:43 UTC (permalink / raw)
To: Atish Patra, Anup Patel
Cc: Mayuresh Chitale, Paul Walmsley, Palmer Dabbelt, Albert Ou,
linux-riscv, Andrew Jones
Applications need to be able to program the SBI implementation specific
or custom firmware events in addition to the standard firmware events.
Remove a check in the driver that prohibits the programming of the custom
firmware events.
Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
---
drivers/perf/riscv_pmu_sbi.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c
index f6507efe2a58..7ffdd2d143d9 100644
--- a/drivers/perf/riscv_pmu_sbi.c
+++ b/drivers/perf/riscv_pmu_sbi.c
@@ -385,11 +385,8 @@ static int pmu_sbi_event_map(struct perf_event *event, u64 *econfig)
bSoftware = config >> 63;
raw_config_val = config & RISCV_PMU_RAW_EVENT_MASK;
if (bSoftware) {
- if (raw_config_val < SBI_PMU_FW_MAX)
- ret = (raw_config_val & 0xFFFF) |
- (SBI_PMU_EVENT_TYPE_FW << 16);
- else
- return -EINVAL;
+ ret = (raw_config_val & 0xFFFF) |
+ (SBI_PMU_EVENT_TYPE_FW << 16);
} else {
ret = RISCV_PMU_RAW_EVENT_IDX;
*econfig = raw_config_val;
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] drivers/perf: RISC-V: Allow programming custom firmware events
2023-02-08 7:43 [PATCH v2] drivers/perf: RISC-V: Allow programming custom firmware events Mayuresh Chitale
@ 2023-03-02 3:20 ` patchwork-bot+linux-riscv
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-03-02 3:20 UTC (permalink / raw)
To: Mayuresh Chitale
Cc: linux-riscv, atishp, anup, paul.walmsley, palmer, aou, ajones
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Wed, 8 Feb 2023 13:13:14 +0530 you wrote:
> Applications need to be able to program the SBI implementation specific
> or custom firmware events in addition to the standard firmware events.
> Remove a check in the driver that prohibits the programming of the custom
> firmware events.
>
> Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
>
> [...]
Here is the summary with links:
- [v2] drivers/perf: RISC-V: Allow programming custom firmware events
https://git.kernel.org/riscv/c/9f828bc3fb90
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-02 3:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 7:43 [PATCH v2] drivers/perf: RISC-V: Allow programming custom firmware events Mayuresh Chitale
2023-03-02 3:20 ` patchwork-bot+linux-riscv
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.