When selecting all the available harts, we need to pass -1 in
hart_mask_base instead of hart_mask. This fixes mmu tests in
wboxtest.
As per the spec: 3.1. Hart list parameter
hart_mask_base can be set to -1 to indicate that hart_mask shall be ignored
and all available harts must be considered
Signed-off-by: Rajnesh Kanwal <
rka...@rivosinc.com>
---
arch/riscv/cpu/generic/cpu_sbi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/cpu/generic/cpu_sbi.c b/arch/riscv/cpu/generic/cpu_sbi.c
index 72a92645..959bf93d 100644
--- a/arch/riscv/cpu/generic/cpu_sbi.c
+++ b/arch/riscv/cpu/generic/cpu_sbi.c
@@ -322,7 +322,7 @@ static int __sbi_rfence_v02(unsigned long fid,
int result;
if (!hart_mask) {
- return __sbi_rfence_v02_real(fid, -1UL, 0UL,
+ return __sbi_rfence_v02_real(fid, 0UL, -1UL,
start, size, arg4);
}
--
2.43.0