Thread (9 messages) 9 messages, 4 authors, 3d ago
WARM3d IN LINUX-NEXT: 1 (1M)

Revision v2 of 2 in this series; 1 review trailer (1 from subsystem maintainers); queued in linux-next as 24acae9894b9 on 2026-09-25.

Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH v2 3/4] vfio: selftests: Extend mix_and_match timeout to 90s

From: Alex Williamson <hidden>
Date: 2026-09-11 17:04:49
Also in: lkml
Subsystem: kernel selftest framework, the rest, vfio driver, vfio selftests · Maintainers: Shuah Khan, Shuah Khan, Linus Torvalds, Alex Williamson, David Matlack

Systems with firmware first error handling can see heavy SMM load
as a result of the mix_and_match induced IOMMU errors.  For devices
like igb that get wedged on these errors, the resulting FLR is delayed
waiting for the transaction pending register to clear, which never
occurs.  However, due to the background SMM, the backoff delays in
PCI code wildly exceed their timeouts.  As a result, the whole test
can report failure.

Extend the mix_and_match timeout to a value shown to complete reliably
on such systems, with ~2x margin.

Assisted-by: LLM
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Alex Williamson <redacted>
---
 tools/testing/selftests/vfio/vfio_pci_driver_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/vfio/vfio_pci_driver_test.c b/tools/testing/selftests/vfio/vfio_pci_driver_test.c
index 761bf117d624..1d532f944cee 100644
--- a/tools/testing/selftests/vfio/vfio_pci_driver_test.c
+++ b/tools/testing/selftests/vfio/vfio_pci_driver_test.c
@@ -190,7 +190,7 @@ TEST_F(vfio_pci_driver_test, send_msi)
 	ASSERT_EQ(1, value);
 }
 
-TEST_F(vfio_pci_driver_test, mix_and_match)
+TEST_F_TIMEOUT(vfio_pci_driver_test, mix_and_match, 90)
 {
 	u64 value;
 	int i;
-- 
2.53.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help