From: Andrew Jones <andrew.jones@linux.dev>
To: kvm-riscv@lists.infradead.org
Cc: atishp@rivosinc.com, cleger@rivosinc.com, jamestiotio@gmail.com
Subject: [kvm-unit-tests PATCH 01/10] riscv: sbi: Mark known fwft failures as kfails
Date: Fri, 21 Feb 2025 16:55:35 +0100 [thread overview]
Message-ID: <20250221155533.123418-13-andrew.jones@linux.dev> (raw)
In-Reply-To: <20250221155533.123418-12-andrew.jones@linux.dev>
Until we fix opensbi mark these known failures as kfails so we can
pass CI.
Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
---
riscv/sbi-fwft.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/riscv/sbi-fwft.c b/riscv/sbi-fwft.c
index b10c147f22dd..19340d6bb48c 100644
--- a/riscv/sbi-fwft.c
+++ b/riscv/sbi-fwft.c
@@ -63,11 +63,17 @@ static void fwft_check_base(void)
struct sbiret ret;
ret = fwft_get_raw(BIT(32));
- sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM,
+ if (ret.error == 0)
+ report_kfail(true, false, "get feature with bit 32 set error: SBI_ERR_INVALID_PARAM");
+ else
+ sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM,
"get feature with bit 32 set error");
ret = fwft_set_raw(BIT(32), 0, 0);
- sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM,
+ if (ret.error == 0)
+ report_kfail(true, false, "set feature with bit 32 set error: SBI_ERR_INVALID_PARAM");
+ else
+ sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM,
"set feature with bit 32 set error");
}
#endif
@@ -167,7 +173,10 @@ static void fwft_check_misaligned_exc_deleg(void)
ret = fwft_misaligned_exc_set(0, SBI_FWFT_SET_FLAG_LOCK);
sbiret_report_error(&ret, SBI_SUCCESS, "Set misaligned deleg feature value 0 and lock");
ret = fwft_misaligned_exc_set(1, 0);
- sbiret_report_error(&ret, SBI_ERR_LOCKED,
+ if (ret.error == SBI_ERR_DENIED)
+ report_kfail(true, false, "Set locked misaligned deleg feature to new value: SBI_ERR_LOCKED");
+ else
+ sbiret_report_error(&ret, SBI_ERR_LOCKED,
"Set locked misaligned deleg feature to new value");
ret = fwft_misaligned_exc_get();
sbiret_report(&ret, SBI_SUCCESS, 0, "Get misaligned deleg locked value 0");
--
2.48.1
--
kvm-riscv mailing list
kvm-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv
next prev parent reply other threads:[~2025-02-21 15:55 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 15:55 [kvm-unit-tests PATCH 00/10] riscv: sbi: Test improvements and a couple new Andrew Jones
2025-02-21 15:55 ` Andrew Jones [this message]
2025-02-24 16:53 ` [kvm-unit-tests PATCH 01/10] riscv: sbi: Mark known fwft failures as kfails Clément Léger
2025-02-25 10:14 ` Clément Léger
2025-02-25 10:25 ` Andrew Jones
2025-02-25 15:32 ` Andrew Jones
2025-02-25 15:48 ` Clément Léger
2025-02-26 18:01 ` Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 02/10] riscv: sbi: Ensure we have IPIs enabled for HSM suspend tests Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 03/10] riscv: sbi: Ensure SUSP test gets an interrupt Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 04/10] riscv: sbi: Improve susp expected error output Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 05/10] riscv: sbi: Improve interrupt handling cleanup Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 06/10] lib/cpumask: Add some operators Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 07/10] riscv: sbi: HSM suspend may not be supported Andrew Jones
2025-02-21 15:55 ` [kvm-unit-tests PATCH 08/10] riscv: sbi: Probe/skip SUSP Andrew Jones
2025-02-25 15:16 ` Clément Léger
2025-02-21 15:55 ` [kvm-unit-tests PATCH 09/10] riscv: sbi: susp: Check upper bits of sleep_type are ignored Andrew Jones
2025-02-25 15:20 ` Clément Léger
2025-02-21 15:55 ` [kvm-unit-tests PATCH 10/10] riscv: sbi: Add bad fid tests Andrew Jones
2025-02-26 17:59 ` [kvm-unit-tests PATCH 11/10] riscv: sbi: Add fwft pte_hw_ad_updating test Andrew Jones
2025-02-27 9:09 ` Clément Léger
2025-02-27 12:07 ` Andrew Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250221155533.123418-13-andrew.jones@linux.dev \
--to=andrew.jones@linux.dev \
--cc=atishp@rivosinc.com \
--cc=cleger@rivosinc.com \
--cc=jamestiotio@gmail.com \
--cc=kvm-riscv@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.