Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] tests/intel/xe_sriov_ggtt: Install SR-IOV exit handler
@ 2026-09-07 12:55 Lukasz Laguna
  2026-09-07 17:36 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Lukasz Laguna @ 2026-09-07 12:55 UTC (permalink / raw)
  To: igt-dev; +Cc: marcin.bernatowicz

Install SR-IOV exit handler in the test to disable VFs and restore
driver autoprobe on exit.

Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
---
 tests/intel/xe_sriov_ggtt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/intel/xe_sriov_ggtt.c b/tests/intel/xe_sriov_ggtt.c
index 2c2184930..bcd763eb0 100644
--- a/tests/intel/xe_sriov_ggtt.c
+++ b/tests/intel/xe_sriov_ggtt.c
@@ -701,6 +701,7 @@ int igt_main_args("", long_opts, help_str, opts_handler, NULL)
 		igt_require(igt_sriov_is_pf(pf_fd));
 		igt_require(igt_sriov_get_enabled_vfs(pf_fd) == 0);
 		autoprobe = igt_sriov_is_driver_autoprobe_enabled(pf_fd);
+		igt_sriov_install_exit_handler(pf_fd, NULL, NULL);
 	}
 
 	igt_describe("Verify that the VF ID in the GGTT PTE has been correctly assigned");
@@ -752,6 +753,7 @@ int igt_main_args("", long_opts, help_str, opts_handler, NULL)
 			    igt_sriov_disable_driver_autoprobe(pf_fd);
 		igt_abort_on_f(autoprobe != igt_sriov_is_driver_autoprobe_enabled(pf_fd),
 			       "Failed to restore sriov_drivers_autoprobe value\n");
+		igt_sriov_clear_exit_handler();
 		drm_close_driver(pf_fd);
 	}
 }
-- 
2.43.0


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

end of thread, other threads:[~2026-09-08  8:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 12:55 [PATCH v1] tests/intel/xe_sriov_ggtt: Install SR-IOV exit handler Lukasz Laguna
2026-09-07 17:36 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-09-07 18:09 ` ✓ i915.CI.BAT: " Patchwork
2026-09-07 21:40 ` ✓ Xe.CI.FULL: " Patchwork
2026-09-08  1:13 ` ✗ i915.CI.Full: failure " Patchwork
2026-09-08  8:06 ` [PATCH v1] " Bernatowicz, Marcin

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