Skip to content

Commit ea6398a

Browse files
mikeyavpatel
authored andcommitted
RISC-V: KVM: Fix csr_write -> csr_set for HVIEN PMU overflow bit
This doesn't cause a problem currently as HVIEN isn't used elsewhere yet. Found by inspection. Signed-off-by: Michael Neuling <michaelneuling@tenstorrent.com> Fixes: 16b0bde ("RISC-V: KVM: Add perf sampling support for guests") Reviewed-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20241127041840.419940-1-michaelneuling@tenstorrent.com Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent 40384c8 commit ea6398a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kvm/aia.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ void kvm_riscv_aia_enable(void)
590590
csr_set(CSR_HIE, BIT(IRQ_S_GEXT));
591591
/* Enable IRQ filtering for overflow interrupt only if sscofpmf is present */
592592
if (__riscv_isa_extension_available(NULL, RISCV_ISA_EXT_SSCOFPMF))
593-
csr_write(CSR_HVIEN, BIT(IRQ_PMU_OVF));
593+
csr_set(CSR_HVIEN, BIT(IRQ_PMU_OVF));
594594
}
595595

596596
void kvm_riscv_aia_disable(void)

0 commit comments

Comments
 (0)