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 v2 i-g-t 2/2] tests/intel/xe_sriov_flr: Add --extended for flr-basic
Date: Fri, 27 Feb 2026 16:27:34 +0100 [thread overview]
Message-ID: <20260227152734.256604-3-marcin.bernatowicz@linux.intel.com> (raw)
In-Reply-To: <20260227152734.256604-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 2080f4e85..be949fe01 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-basic") {
- reset_only_test(pf_fd, 1, execute_sequential_flr);
+ igt_subtest_with_dynamic("flr-basic") {
+ 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-27 15:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-27 15:27 [PATCH v2 i-g-t 0/2] xe_sriov_flr: basic FLR smoke test Marcin Bernatowicz
2026-02-27 15:27 ` [PATCH v2 i-g-t 1/2] tests/intel/xe_sriov_flr: Add basic FLR subtest Marcin Bernatowicz
2026-02-27 16:17 ` Piotr Piórkowski
2026-02-27 15:27 ` Marcin Bernatowicz [this message]
2026-02-27 16:17 ` [PATCH v2 i-g-t 2/2] tests/intel/xe_sriov_flr: Add --extended for flr-basic Piotr Piórkowski
2026-02-27 21:22 ` ✓ Xe.CI.BAT: success for xe_sriov_flr: basic FLR smoke test Patchwork
2026-02-27 21:39 ` ✓ i915.CI.BAT: " Patchwork
2026-02-28 1:53 ` ✗ i915.CI.Full: failure " Patchwork
2026-02-28 11:00 ` ✗ Xe.CI.FULL: " Patchwork
2026-03-02 9:32 ` Bernatowicz, Marcin
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=20260227152734.256604-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox