From f30a54f3b3a091c225a00476f4039bf399badd1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= Date: Mon, 19 May 2025 10:39:49 +0200 Subject: [PATCH] lib: sbi: pmu: Remove MIP clearing from pmu_sse_enable() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clearing MIP at that point means that we can probably lose a pending interrupt. This should not happen, remove MIP clearing from there. Signed-off-by: Clément Léger Reviewed-by: Atish Patra Reviewed-by: Samuel Holland Link: https://lore.kernel.org/r/20250519083950.739044-3-cleger@rivosinc.com Signed-off-by: Anup Patel --- lib/sbi/sbi_pmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sbi/sbi_pmu.c b/lib/sbi/sbi_pmu.c index 9b779c5a..07a5c544 100644 --- a/lib/sbi/sbi_pmu.c +++ b/lib/sbi/sbi_pmu.c @@ -1104,7 +1104,6 @@ static void pmu_sse_enable(uint32_t event_id) { unsigned long irq_mask = sbi_pmu_irq_mask(); - csr_clear(CSR_MIP, irq_mask); csr_set(CSR_MIE, irq_mask); }