From: Lukasz Laguna <lukasz.laguna@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: marcin.bernatowicz@linux.intel.com,
satyanarayana.k.v.p@intel.com, jakub1.kolakowski@intel.com,
lukasz.laguna@intel.com
Subject: [PATCH i-g-t] tests/intel/xe_wedged: Skip subtests using wedged_mode=2 in SR-IOV cases
Date: Fri, 9 Jan 2026 16:48:34 +0100 [thread overview]
Message-ID: <20260109154834.24523-1-lukasz.laguna@intel.com> (raw)
In upon-any-hang-no-reset (2) wedged mode, engine resets need to be
disabled, which requires changing the GuC reset policy.
VFs are not permitted to modify this policy, so the driver now rejects
attempts to set wedged_mode=2 on a VF.
On the PF, modifying the reset policy is allowed, but the change is
global and affects all VFs. To prevent unintended cross-VF impact, the
driver permits wedged_mode=2 on the PF only when the driver is built
with the debug config. Otherwise, the operation fails with -EPERM.
Update the affected subtests to skip in such cases to avoid false
failures.
Link: https://lore.kernel.org/all/20260107174741.29163-4-lukasz.laguna@intel.com/
Link: https://lore.kernel.org/all/20260107174741.29163-5-lukasz.laguna@intel.com/
Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
---
tests/intel/xe_wedged.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tests/intel/xe_wedged.c b/tests/intel/xe_wedged.c
index bcd78b49d7..e1ac629ca7 100644
--- a/tests/intel/xe_wedged.c
+++ b/tests/intel/xe_wedged.c
@@ -18,6 +18,7 @@
#include "igt.h"
#include "igt_device.h"
#include "igt_kmod.h"
+#include "igt_sriov_device.h"
#include "igt_syncobj.h"
#include "igt_sysfs.h"
@@ -247,11 +248,16 @@ int igt_main()
int err;
igt_require(igt_debugfs_exists(fd, "wedged_mode", O_RDWR));
+ igt_require(!intel_is_vf_device(fd));
+
+ igt_debugfs_write(fd, "wedged_mode", "2");
+ igt_skip_on_f(igt_sriov_is_pf(fd) && errno == EPERM,
+ "On PF, upon-any-hang-no-reset (2) wedged mode is restricted to debug builds only\n");
+
ignore_wedged_in_dmesg();
hang_sync.handle = syncobj_create(fd, 0);
- igt_debugfs_write(fd, "wedged_mode", "2");
simple_hang(fd, &hang_sync);
/*
@@ -282,8 +288,12 @@ int igt_main()
igt_subtest_f("wedged-mode-toggle") {
igt_require(igt_debugfs_exists(fd, "wedged_mode", O_RDWR));
+ igt_require(!intel_is_vf_device(fd));
igt_debugfs_write(fd, "wedged_mode", "2");
+ igt_skip_on_f(igt_sriov_is_pf(fd) && errno == EPERM,
+ "On PF, upon-any-hang-no-reset (2) wedged mode is restricted to debug builds only\n");
+
igt_assert_eq(simple_ioctl(fd), 0);
igt_debugfs_write(fd, "wedged_mode", "1");
ignore_wedged_in_dmesg();
--
2.40.0
next reply other threads:[~2026-01-09 15:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 15:48 Lukasz Laguna [this message]
2026-01-09 16:17 ` [PATCH i-g-t] tests/intel/xe_wedged: Skip subtests using wedged_mode=2 in SR-IOV cases Rodrigo Vivi
2026-01-09 19:49 ` Rodrigo Vivi
2026-01-09 18:09 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-01-09 18:28 ` ✓ i915.CI.BAT: " Patchwork
2026-01-09 21:49 ` ✗ i915.CI.Full: failure " Patchwork
2026-01-09 23:28 ` ✗ Xe.CI.Full: " 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=20260109154834.24523-1-lukasz.laguna@intel.com \
--to=lukasz.laguna@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jakub1.kolakowski@intel.com \
--cc=marcin.bernatowicz@linux.intel.com \
--cc=satyanarayana.k.v.p@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