Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/i915_module_load: Ignore missing PCI reset
@ 2026-08-20 18:41 Janusz Krzysztofik
  2026-08-20 20:04 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Janusz Krzysztofik @ 2026-08-20 18:41 UTC (permalink / raw)
  To: igt-dev
  Cc: Kamil Konieczny, Andi Shyti, Krzysztof Karas, Sebastian Brzezinka,
	Krzysztof Niemiec, intel-gfx, Janusz Krzysztofik

Subtest fault-injection now performs PCI device reset before every driver
bind attempt and fails if that reset doesn't succeed.  That was OK if all
devices being tested supported a PCI reset method.  However, machines
with DG1 SKU 0x4905 used in CI suffer from device breakage and system
freezes after any PCI reset attempts, triggering CI job aborts.  That's
going to change soon with an upcoming kernel patch that disables PCI
reset capabilities on that card.

Attempt PCI reset and fail if not successful only if supported, otherwise
submit a debug message and continue the exercise.  With that in place,
the subtest should no longer abort CI jobs on DG1 as soon as the above
mentioned kernel fix is in place.

Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
---
 tests/intel/i915_module_load.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/intel/i915_module_load.c b/tests/intel/i915_module_load.c
index 26e30a1000..68e2386465 100644
--- a/tests/intel/i915_module_load.c
+++ b/tests/intel/i915_module_load.c
@@ -463,7 +463,8 @@ inject_fault_probe(int fd, const char pci_slot[], const char function_name[],
 	injection_list_add(function_name);
 	set_retval(function_name, inject_error);
 
-	igt_assert(igt_sysfs_set(devicefd, "reset", "1"));
+	if (!igt_debug_on(!igt_sysfs_has_attr(devicefd, "reset")))
+		igt_assert(igt_sysfs_set(devicefd, "reset", "1"));
 	igt_kmod_bind("i915", pci_slot);
 
 	err = -errno;
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-08-21 11:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 18:41 [PATCH i-g-t] tests/intel/i915_module_load: Ignore missing PCI reset Janusz Krzysztofik
2026-08-20 20:04 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-08-20 20:26 ` ✓ i915.CI.BAT: " Patchwork
2026-08-20 21:21 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-08-21  1:42 ` ✗ i915.CI.Full: " Patchwork
2026-08-21  8:37   ` Janusz Krzysztofik
2026-08-21 11:49     ` Ravali, JupallyX
2026-08-21  9:59 ` [PATCH i-g-t] " Kamil Konieczny
2026-08-21 11:34 ` ✓ i915.CI.Full: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox