mbox series

[kvm-unit-tests,0/2] riscv: sbi: Improve DBCN and BASE

Message ID 20240911113338.156844-4-andrew.jones@linux.dev (mailing list archive)
Headers show
Series riscv: sbi: Improve DBCN and BASE | expand

Message

Andrew Jones Sept. 11, 2024, 11:33 a.m. UTC
Improve the tests for DBCN and BASE. For DBCN, use xfail when for failed
highmem tests when we know the SBI implementation doesn't support
highmem (such as 32-bit OpenSBI). For BASE, per the spec, ensure the bit
31 is zero and ensure we always treat bits 63:32 as UNKNOWN.


Andrew Jones (2):
  riscv: sbi: Highmem isn't always supported
  riscv: sbi: Improve spec version test

 lib/riscv/sbi.c |  2 +-
 riscv/sbi.c     | 38 ++++++++++++++++++++++++++------------
 2 files changed, 27 insertions(+), 13 deletions(-)