From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: lukasz.laguna@intel.com, piotr.piorkowski@intel.com,
Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Subject: [PATCH i-g-t 2/2] tests/intel/xe_sriov_flr: Add --extended for reset-only
Date: Thu, 26 Feb 2026 18:31:37 +0100 [thread overview]
Message-ID: <20260226173137.3221419-3-marcin.bernatowicz@linux.intel.com> (raw)
In-Reply-To: <20260226173137.3221419-1-marcin.bernatowicz@linux.intel.com>
By default only a single dynamic subtest (numvfs-1) is executed.
With --extended, additional dynamic subtests up to the total VF
are created.
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
tests/intel/xe_sriov_flr.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/tests/intel/xe_sriov_flr.c b/tests/intel/xe_sriov_flr.c
index 846731697..de8fd533d 100644
--- a/tests/intel/xe_sriov_flr.c
+++ b/tests/intel/xe_sriov_flr.c
@@ -70,6 +70,7 @@ static const char STOP_REASON_SKIP[] = "SKIP";
static int g_wait_flr_ms = 200;
static bool g_use_xe_vfio_pci = true;
+static bool g_extended_scope;
static struct g_mmio {
struct xe_mmio *mmio;
@@ -1160,6 +1161,9 @@ static int opt_handler(int opt, int opt_index, void *data)
long val;
switch (opt) {
+ case 'e':
+ g_extended_scope = true;
+ break;
case 'v':
g_use_xe_vfio_pci = false;
igt_info("xe-vfio-pci binding: disabled\n");
@@ -1180,16 +1184,18 @@ static int opt_handler(int opt, int opt_index, void *data)
}
static const struct option long_options[] = {
+ { .name = "extended", .has_arg = false, .val = 'e', },
{ .name = "no-xe-vfio-pci", .has_arg = false, .val = 'v', },
{ .name = "wait-flr-ms", .has_arg = true, .val = 'w', },
{},
};
static const char help_str[] =
+ " --extended\t\tRun extended scope\n"
" --no-xe-vfio-pci\tDo not load/bind xe-vfio-pci for VFs\n"
" --wait-flr-ms=MS\tSleep MS milliseconds after VF reset sysfs write (default: 200)\n";
-int igt_main_args("vw:", long_options, help_str, opt_handler, NULL)
+int igt_main_args("evw:", long_options, help_str, opt_handler, NULL)
{
int pf_fd;
bool autoprobe;
@@ -1202,8 +1208,14 @@ int igt_main_args("vw:", long_options, help_str, opt_handler, NULL)
}
igt_describe("Initiate FLR without any additional state checks.");
- igt_subtest("flr-reset-only") {
- reset_only_test(pf_fd, 1, execute_sequential_flr);
+ igt_subtest_with_dynamic("flr-reset-only") {
+ for_each_sriov_num_vfs(pf_fd, vf_num) {
+ if (!g_extended_scope && vf_num > 1)
+ break;
+
+ igt_dynamic_f("numvfs-%u", vf_num)
+ reset_only_test(pf_fd, vf_num, execute_sequential_flr);
+ }
}
igt_describe("Verify LMEM, GGTT, and SCRATCH_REGS are properly cleared after VF1 FLR");
--
2.43.0
next prev parent reply other threads:[~2026-02-26 17:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 17:31 [PATCH i-g-t 0/2] xe_sriov_flr: reset-only FLR smoke test Marcin Bernatowicz
2026-02-26 17:31 ` [PATCH i-g-t 1/2] tests/intel/xe_sriov_flr: Add reset-only FLR subtest Marcin Bernatowicz
2026-02-27 8:58 ` Piotr Piórkowski
2026-02-27 10:07 ` Bernatowicz, Marcin
2026-02-26 17:31 ` Marcin Bernatowicz [this message]
2026-02-27 1:09 ` ✓ i915.CI.BAT: success for xe_sriov_flr: reset-only FLR smoke test Patchwork
2026-02-27 1:17 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-27 8:39 ` ✗ Xe.CI.FULL: failure " Patchwork
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=20260226173137.3221419-3-marcin.bernatowicz@linux.intel.com \
--to=marcin.bernatowicz@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=lukasz.laguna@intel.com \
--cc=piotr.piorkowski@intel.com \
/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.