All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Test unbinding PCI device while OA stream is open
@ 2026-11-04  0:55 Umesh Nerlige Ramappa
  2026-11-04  0:55 ` [PATCH v2 1/8] tests/intel/xe_oa: Move device setup and teardown into helpers Umesh Nerlige Ramappa
                   ` (10 more replies)
  0 siblings, 11 replies; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

Unbinding PCI device with an open OA stream FD crashed the system with a NPD.
Test the kernel fix for quiescing OA on device removal.

v2:
- Assert expected values (Shekhar)

v3
- Refine based on kernel changes

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

Umesh Nerlige Ramappa (8):
  tests/intel/xe_oa: Move device setup and teardown into helpers
  tests/intel/xe_oa: Add unbind/rebind test with an open OA stream
  tests/intel/xe_oa: Check that a removed device can't open OA streams
  tests/intel/xe_oa: Check OA buffer mmaps across unbind
  tests/intel/xe_oa: Check vm_ops->access on OA buffer mmaps across
    unbind
  tests/intel/xe_oa: Check that blocked OA stream waiters are woken up
    on unbind
  tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test
  tests/intel/xe_oa: Add an all OA units variant to the unbind/rebind
    test

 tests/intel/xe_oa.c | 569 +++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 539 insertions(+), 30 deletions(-)

-- 
2.55.0


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

* [PATCH v2 1/8] tests/intel/xe_oa: Move device setup and teardown into helpers
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-04  0:55 ` [PATCH v2 2/8] tests/intel/xe_oa: Add unbind/rebind test with an open OA stream Umesh Nerlige Ramappa
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

Move the device dependent setup from the main fixture into
oa_device_init() and the teardown from the final fixture into
oa_device_fini(), so that the same state can be rebuilt by tests that
unbind and rebind the device.

oa_device_fini() also closes the sysfs fd, drops the xe device cache
entry and resets the state, so oa_device_init() can be called again.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>
---
v2: Drop redundant drm_fd check from main fixture (Shekhar)
---
 tests/intel/xe_oa.c | 86 +++++++++++++++++++++++++++++----------------
 1 file changed, 55 insertions(+), 31 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 91d0ad9c4023..8758ab15bf46 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -1332,6 +1332,59 @@ init_sys_info(void)
 	return true;
 }
 
+/*
+ * Open the xe device and set up all device dependent state. Also used to restore that
+ * state after the device has been unbound and rebound.
+ */
+static void oa_device_init(void)
+{
+	struct xe_device *xe_dev;
+
+	igt_assert_eq(drm_fd, -1);
+
+	drm_fd = drm_open_driver(DRIVER_XE);
+	xe_dev = xe_device_get(drm_fd);
+
+	/* See xe_query_oa_units_new() */
+	igt_require(xe_dev->oa_units);
+	igt_require(xe_dev->oa_units->num_oa_units);
+
+	devid = intel_get_drm_devid(drm_fd);
+	sysfs = igt_sysfs_open(drm_fd);
+
+	/* Currently only run on Xe2+ */
+	igt_require(intel_graphics_ver(devid) >= IP_VER(20, 0));
+
+	igt_require(init_sys_info());
+
+	write_u64_file("/proc/sys/dev/xe/observation_paranoid", 1);
+
+	render_copy = igt_get_render_copyfunc(drm_fd);
+}
+
+/* Release all device dependent state set up by oa_device_init() */
+static void oa_device_fini(void)
+{
+	/* leave sysctl options in their default state... */
+	write_u64_file("/proc/sys/dev/xe/observation_paranoid", 1);
+
+	if (intel_xe_perf) {
+		intel_xe_perf_free(intel_xe_perf);
+		intel_xe_perf = NULL;
+	}
+
+	if (sysfs >= 0) {
+		close(sysfs);
+		sysfs = -1;
+	}
+
+	if (drm_fd >= 0) {
+		xe_device_put(drm_fd);
+		drm_close_driver(drm_fd);
+		drm_fd = -1;
+	}
+}
+
 /**
  * SUBTEST: non-system-wide-paranoid
  * Description: CAP_SYS_ADMIN is required to open system wide metrics, unless
@@ -4970,7 +5023,6 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 		{ NULL },
 	};
 	const struct drm_xe_oa_unit *oau0, *oau;
-	struct xe_device *xe_dev;
 
 	igt_fixture() {
 		struct stat sb;
@@ -4989,31 +5041,9 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 		test_sysctl_defaults();
 
 	igt_fixture() {
-		/* We expect that the ref count test before these fixtures
-		 * should have closed drm_fd...
-		 */
-		igt_assert_eq(drm_fd, -1);
-
 		enable_trace_log();
-		drm_fd = drm_open_driver(DRIVER_XE);
-		xe_dev = xe_device_get(drm_fd);
-
-		/* See xe_query_oa_units_new() */
-		igt_require(xe_dev->oa_units);
-		igt_require(xe_dev->oa_units->num_oa_units);
+		oa_device_init();
 		oau0 = oa_unit_by_id(drm_fd, 0);
-
-		devid = intel_get_drm_devid(drm_fd);
-		sysfs = igt_sysfs_open(drm_fd);
-
-		/* Currently only run on Xe2+ */
-		igt_require(intel_graphics_ver(devid) >= IP_VER(20, 0));
-
-		igt_require(init_sys_info());
-
-		write_u64_file("/proc/sys/dev/xe/observation_paranoid", 1);
-
-		render_copy = igt_get_render_copyfunc(drm_fd);
 	}
 
 	igt_subtest("non-system-wide-paranoid")
@@ -5222,13 +5252,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 	}
 
 	igt_fixture() {
-		/* leave sysctl options in their default state... */
-		write_u64_file("/proc/sys/dev/xe/observation_paranoid", 1);
-
-		if (intel_xe_perf)
-			intel_xe_perf_free(intel_xe_perf);
-
-		drm_close_driver(drm_fd);
+		oa_device_fini();
 		disable_trace_log();
 	}
 }
-- 
2.55.0


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

* [PATCH v2 2/8] tests/intel/xe_oa: Add unbind/rebind test with an open OA stream
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
  2026-11-04  0:55 ` [PATCH v2 1/8] tests/intel/xe_oa: Move device setup and teardown into helpers Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  7:09   ` Shekhar Chauhan
  2026-11-04  0:55 ` [PATCH v2 3/8] tests/intel/xe_oa: Check that a removed device can't open OA streams Umesh Nerlige Ramappa
                   ` (8 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

Open an OA stream, unbind and rebind the xe device, and check the
stream fd after removal and after the rebind: poll reports
POLLERR | POLLHUP, and read and the stream ioctls fail with ENODEV.

Run variants that close the stream before or after the rebind. Rebuild
the device state after the rebind, or after a failed variant, so that
the remaining subtests run.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 239 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 239 insertions(+)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 8758ab15bf46..046d57c3f4e8 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -22,6 +22,7 @@
 #include "drm.h"
 #include "igt.h"
 #include "igt_device.h"
+#include "igt_pci.h"
 #include "igt_syncobj.h"
 #include "igt_sysfs.h"
 #include "xe/xe_ioctl.h"
@@ -2778,6 +2779,225 @@ test_enable_disable(const struct drm_xe_oa_unit *oau)
 	__perf_close(stream_fd);
 }
 
+/*
+ * The stream fd of a removed device stays valid but the stream is dead: poll reports
+ * POLLERR | POLLHUP and read and all stream ioctls fail with -ENODEV. This holds after
+ * rebind too, since the stream belongs to the removed device instance.
+ */
+static void probe_stream_after_removal(int fd, const char *when)
+{
+	struct drm_xe_oa_stream_info info = {};
+	uint8_t buf[4096];
+	struct pollfd pfd = { .fd = fd, .events = POLLIN };
+	int ret, err;
+
+	ret = poll(&pfd, 1, 1000);
+	err = errno;
+	igt_debug("[%s] poll: ret=%d revents=0x%x errno=%s\n", when, ret, pfd.revents,
+		  ret < 0 ? strerror(err) : "-");
+	igt_assert_eq(ret, 1);
+	igt_assert_eq(pfd.revents, POLLERR | POLLHUP);
+
+	errno = 0;
+	ret = read(fd, buf, sizeof(buf));
+	err = errno;
+	igt_debug("[%s] read: ret=%d errno=%s\n", when, ret, ret < 0 ? strerror(err) : "-");
+	igt_assert_eq(ret, -1);
+	igt_assert_eq(err, ENODEV);
+
+	errno = 0;
+	ret = igt_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_INFO, &info);
+	err = errno;
+	igt_debug("[%s] ioctl INFO: ret=%d errno=%s oa_buf_size=%" PRIu64 "\n", when, ret,
+		  ret < 0 ? strerror(err) : "-", (uint64_t)info.oa_buf_size);
+	igt_assert_eq(ret, -1);
+	igt_assert_eq(err, ENODEV);
+	igt_assert_eq_u64(info.oa_buf_size, 0);
+
+	errno = 0;
+	ret = igt_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_DISABLE, 0);
+	err = errno;
+	igt_debug("[%s] ioctl DISABLE: ret=%d errno=%s\n", when, ret,
+		  ret < 0 ? strerror(err) : "-");
+	igt_assert_eq(ret, -1);
+	igt_assert_eq(err, ENODEV);
+
+	errno = 0;
+	ret = igt_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_ENABLE, 0);
+	err = errno;
+	igt_debug("[%s] ioctl ENABLE: ret=%d errno=%s\n", when, ret,
+		  ret < 0 ? strerror(err) : "-");
+	igt_assert_eq(ret, -1);
+	igt_assert_eq(err, ENODEV);
+}
+
+#define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
+
+#define UNBIND_MAX_STREAMS	16
+
+struct unbind_stream {
+	/* Not a drm_xe_oa_unit pointer, the query data is freed on unbind */
+	int oa_unit_id;
+	uint64_t properties[20];
+	struct intel_xe_oa_open_prop param;
+	size_t report_size;
+	int fd;
+};
+
+static char unbind_pci_slot[NAME_MAX];
+static bool unbind_state_stale;
+static struct unbind_stream unbind_streams[UNBIND_MAX_STREAMS];
+static int unbind_num_streams;
+
+static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau)
+{
+	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
+	uint64_t fmt = test_set->perf_oa_format;
+	int n = 0;
+
+	s->oa_unit_id = oau->oa_unit_id;
+	s->fd = -1;
+	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_UNIT_ID;
+	s->properties[n++] = oau->oa_unit_id;
+	s->properties[n++] = DRM_XE_OA_PROPERTY_SAMPLE_OA;
+	s->properties[n++] = true;
+	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_METRIC_SET;
+	s->properties[n++] = test_set->perf_oa_metrics_set;
+	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_FORMAT;
+	s->properties[n++] = __ff(fmt);
+	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_PERIOD_EXPONENT;
+	s->properties[n++] = oa_exponent_default;
+	igt_assert_lte(n, ARRAY_SIZE(s->properties));
+
+	s->param.num_properties = n / 2;
+	s->param.properties_ptr = to_user_pointer(s->properties);
+	s->report_size = get_oa_format(fmt).size;
+
+	s->fd = intel_xe_perf_ioctl(drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, &s->param);
+	igt_assert_lte(0, s->fd);
+}
+
+static void unbind_stream_close(struct unbind_stream *s)
+{
+	close(s->fd);
+	s->fd = -1;
+}
+
+/* Make sure the stream is live before pulling the device */
+static void unbind_stream_check_live(struct unbind_stream *s)
+{
+	struct pollfd pfd = { .fd = s->fd, .events = POLLIN };
+	uint8_t buf[s->report_size * 4];
+	int ret;
+
+	igt_assert_lt(0, poll(&pfd, 1, 2000));
+	ret = read(s->fd, buf, sizeof(buf));
+	igt_debug("Pre-unbind read: ret=%d\n", ret);
+	igt_assert_lt(0, ret);
+}
+
+static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
+{
+	igt_debug("[%s] checking stream on oa unit %d\n", when, s->oa_unit_id);
+
+	probe_stream_after_removal(s->fd, when);
+}
+
+/*
+ * Restore a bound device and fresh device state if an unbind/rebind test bailed out
+ * half way, so the remaining subtests can run.
+ */
+static void unbind_rebind_recover(void)
+{
+	char path[PATH_MAX];
+	int i;
+
+	for (i = 0; i < unbind_num_streams; i++) {
+		struct unbind_stream *s = &unbind_streams[i];
+
+		if (s->fd >= 0)
+			close(s->fd);
+	}
+	unbind_num_streams = 0;
+
+	if (!unbind_state_stale)
+		return;
+
+	igt_info("Recovering xe on %s after failed unbind/rebind test\n", unbind_pci_slot);
+	oa_device_fini();
+
+	snprintf(path, sizeof(path), "/sys/bus/pci/drivers/xe/%s", unbind_pci_slot);
+	if (access(path, F_OK))
+		igt_pci_driver_bind("xe", unbind_pci_slot);
+
+	oa_device_init();
+	unbind_state_stale = false;
+}
+
+/**
+ * SUBTEST: unbind-rebind-stream
+ * Description: Open an OA stream and test the effects of unbind and rebind: the stream
+ *		dies and the device works after rebind.
+ */
+static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
+{
+	struct unbind_stream *streams = unbind_streams;
+	struct unbind_stream *primary = &streams[0];
+	int ret, i;
+
+	igt_device_get_pci_slot_name(drm_fd, unbind_pci_slot);
+	igt_debug("Device %s\n", unbind_pci_slot);
+
+	unbind_num_streams = 0;
+	unbind_stream_open(&streams[unbind_num_streams++], oau0);
+	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
+
+	unbind_stream_check_live(primary);
+
+	/* Guard against a wedged unbind/bind */
+	igt_set_timeout(60, "xe unbind timed out (wedged?)");
+	igt_debug("Unbinding xe from %s with %d stream(s) open\n", unbind_pci_slot,
+		  unbind_num_streams);
+	unbind_state_stale = true;
+	ret = igt_pci_driver_unbind("xe", unbind_pci_slot);
+	igt_reset_timeout();
+	igt_assert_f(ret == 0, "xe unbind failed: %s\n", strerror(-ret));
+
+	for (i = 0; i < unbind_num_streams; i++)
+		unbind_stream_check_dead(&streams[i], "after-unbind");
+
+	if (flags & UNBIND_CLOSE_BEFORE_REBIND) {
+		igt_set_timeout(60, "stream close timed out (wedged?)");
+		for (i = 0; i < unbind_num_streams; i++)
+			unbind_stream_close(&streams[i]);
+		igt_reset_timeout();
+	}
+
+	/* Drop all state of the removed device, the drm fd also refers to it */
+	oa_device_fini();
+
+	igt_set_timeout(60, "xe bind timed out (wedged?)");
+	igt_debug("Rebinding xe to %s\n", unbind_pci_slot);
+	ret = igt_pci_driver_bind("xe", unbind_pci_slot);
+	igt_reset_timeout();
+	igt_assert_f(ret == 0, "xe bind failed: %s\n", strerror(-ret));
+
+	/* Restore state for the remaining subtests/fixtures */
+	oa_device_init();
+	unbind_state_stale = false;
+
+	if (!(flags & UNBIND_CLOSE_BEFORE_REBIND)) {
+		for (i = 0; i < unbind_num_streams; i++)
+			unbind_stream_check_dead(&streams[i], "after-rebind");
+
+		igt_set_timeout(60, "stream close timed out (wedged?)");
+		for (i = 0; i < unbind_num_streams; i++)
+			unbind_stream_close(&streams[i]);
+		igt_reset_timeout();
+	}
+	unbind_num_streams = 0;
+}
+
 /**
  * SUBTEST: short-reads
  * Description: Test behavior for short reads
@@ -5251,6 +5471,25 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 		}
 	}
 
+	igt_subtest_with_dynamic("unbind-rebind-stream") {
+		const struct {
+			const char *name;
+			unsigned int flags;
+		} unbind_variants[] = {
+			{ "close", UNBIND_CLOSE_BEFORE_REBIND },
+			{ "open", 0 },
+		};
+
+		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {
+			igt_dynamic_f("%s", unbind_variants[i].name)
+				test_unbind_rebind(oau0, unbind_variants[i].flags);
+
+			/* Device state is rebuilt on rebind, or after a failed variant */
+			unbind_rebind_recover();
+			oau0 = oa_unit_by_id(drm_fd, 0);
+		}
+	}
+
 	igt_fixture() {
 		oa_device_fini();
 		disable_trace_log();
-- 
2.55.0


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

* [PATCH v2 3/8] tests/intel/xe_oa: Check that a removed device can't open OA streams
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
  2026-11-04  0:55 ` [PATCH v2 1/8] tests/intel/xe_oa: Move device setup and teardown into helpers Umesh Nerlige Ramappa
  2026-11-04  0:55 ` [PATCH v2 2/8] tests/intel/xe_oa: Add unbind/rebind test with an open OA stream Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  7:10   ` Shekhar Chauhan
  2026-11-04  0:55 ` [PATCH v2 4/8] tests/intel/xe_oa: Check OA buffer mmaps across unbind Umesh Nerlige Ramappa
                   ` (7 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

An OA ioctl that races with unbind must not reach OA once it is torn
down. Check that STREAM_OPEN on the drm fd of the removed device fails
with ENODEV.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 046d57c3f4e8..e10b77bca1b2 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -2937,7 +2937,8 @@ static void unbind_rebind_recover(void)
 /**
  * SUBTEST: unbind-rebind-stream
  * Description: Open an OA stream and test the effects of unbind and rebind: the stream
- *		dies and the device works after rebind.
+ *		dies, no new streams can be opened on the removed device and the device
+ *		works after rebind.
  */
 static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
 {
@@ -2966,6 +2967,10 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
 	for (i = 0; i < unbind_num_streams; i++)
 		unbind_stream_check_dead(&streams[i], "after-unbind");
 
+	/* The drm fd of the removed device can't open new streams */
+	intel_xe_perf_ioctl_err(drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, &primary->param,
+				ENODEV);
+
 	if (flags & UNBIND_CLOSE_BEFORE_REBIND) {
 		igt_set_timeout(60, "stream close timed out (wedged?)");
 		for (i = 0; i < unbind_num_streams; i++)
-- 
2.55.0


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

* [PATCH v2 4/8] tests/intel/xe_oa: Check OA buffer mmaps across unbind
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (2 preceding siblings ...)
  2026-11-04  0:55 ` [PATCH v2 3/8] tests/intel/xe_oa: Check that a removed device can't open OA streams Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  7:10   ` Shekhar Chauhan
  2026-11-04  0:55 ` [PATCH v2 5/8] tests/intel/xe_oa: Check vm_ops->access on " Umesh Nerlige Ramappa
                   ` (6 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

mmap the OA buffer before unbind. Unbind zaps the mapping and refaults
get a zeroed dummy page, so check that the mapping reads zeros
afterwards, after making sure it held OA reports before. Also check
that new mmaps of the stream fd fail with ENODEV.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 55 ++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 52 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index e10b77bca1b2..e4b63c982200 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -2831,6 +2831,18 @@ static void probe_stream_after_removal(int fd, const char *when)
 	igt_assert_eq(err, ENODEV);
 }
 
+static bool mem_is_zero(const void *vaddr, size_t len)
+{
+	const uint8_t *p = vaddr;
+	size_t i;
+
+	for (i = 0; i < len; i++)
+		if (p[i])
+			return false;
+
+	return true;
+}
+
 #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
 
 #define UNBIND_MAX_STREAMS	16
@@ -2842,6 +2854,8 @@ struct unbind_stream {
 	struct intel_xe_oa_open_prop param;
 	size_t report_size;
 	int fd;
+	void *vaddr;
+	size_t size;
 };
 
 static char unbind_pci_slot[NAME_MAX];
@@ -2853,10 +2867,12 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
 {
 	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
 	uint64_t fmt = test_set->perf_oa_format;
+	struct drm_xe_oa_stream_info info = {};
 	int n = 0;
 
 	s->oa_unit_id = oau->oa_unit_id;
 	s->fd = -1;
+	s->vaddr = NULL;
 	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_UNIT_ID;
 	s->properties[n++] = oau->oa_unit_id;
 	s->properties[n++] = DRM_XE_OA_PROPERTY_SAMPLE_OA;
@@ -2875,10 +2891,20 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
 
 	s->fd = intel_xe_perf_ioctl(drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, &s->param);
 	igt_assert_lte(0, s->fd);
+
+	do_ioctl(s->fd, DRM_XE_OBSERVATION_IOCTL_INFO, &info);
+	s->size = info.oa_buf_size;
+	s->vaddr = mmap(NULL, s->size, PROT_READ, MAP_PRIVATE, s->fd, 0);
+	igt_assert(s->vaddr != MAP_FAILED);
+
+	/* Fault in the mapping while the device is still bound */
+	(void)READ_ONCE(*(const volatile uint32_t *)s->vaddr);
 }
 
 static void unbind_stream_close(struct unbind_stream *s)
 {
+	igt_assert_eq(munmap(s->vaddr, s->size), 0);
+	s->vaddr = NULL;
 	close(s->fd);
 	s->fd = -1;
 }
@@ -2894,13 +2920,34 @@ static void unbind_stream_check_live(struct unbind_stream *s)
 	ret = read(s->fd, buf, sizeof(buf));
 	igt_debug("Pre-unbind read: ret=%d\n", ret);
 	igt_assert_lt(0, ret);
+
+	/*
+	 * Reports are written from the start of the OA buffer, so the mapping holds data
+	 * now. Makes the zeroed dummy page check after unbind meaningful.
+	 */
+	igt_assert(!mem_is_zero(s->vaddr, s->report_size));
 }
 
 static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
 {
+	size_t page_size = sysconf(_SC_PAGESIZE);
+	void *vaddr;
+
 	igt_debug("[%s] checking stream on oa unit %d\n", when, s->oa_unit_id);
 
 	probe_stream_after_removal(s->fd, when);
+
+	/*
+	 * Unbind zaps the existing mapping and refaults get a zeroed dummy page instead of
+	 * the OA buffer: check first and last page
+	 */
+	igt_assert(mem_is_zero(s->vaddr, page_size));
+	igt_assert(mem_is_zero((uint8_t *)s->vaddr + s->size - page_size, page_size));
+
+	/* New mappings are refused */
+	vaddr = mmap(NULL, s->size, PROT_READ, MAP_PRIVATE, s->fd, 0);
+	igt_assert(vaddr == MAP_FAILED);
+	igt_assert_eq(errno, ENODEV);
 }
 
 /*
@@ -2915,6 +2962,8 @@ static void unbind_rebind_recover(void)
 	for (i = 0; i < unbind_num_streams; i++) {
 		struct unbind_stream *s = &unbind_streams[i];
 
+		if (s->vaddr && s->vaddr != MAP_FAILED)
+			munmap(s->vaddr, s->size);
 		if (s->fd >= 0)
 			close(s->fd);
 	}
@@ -2936,9 +2985,9 @@ static void unbind_rebind_recover(void)
 
 /**
  * SUBTEST: unbind-rebind-stream
- * Description: Open an OA stream and test the effects of unbind and rebind: the stream
- *		dies, no new streams can be opened on the removed device and the device
- *		works after rebind.
+ * Description: Open OA streams with mmapped OA buffers and test the effects of unbind
+ *		and rebind: streams die, mmaps read a zeroed dummy page, no new streams can
+ *		be opened on the removed device and the device works after rebind.
  */
 static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
 {
-- 
2.55.0


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

* [PATCH v2 5/8] tests/intel/xe_oa: Check vm_ops->access on OA buffer mmaps across unbind
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (3 preceding siblings ...)
  2026-11-04  0:55 ` [PATCH v2 4/8] tests/intel/xe_oa: Check OA buffer mmaps across unbind Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  5:55   ` Shekhar Chauhan
  2026-11-04  0:55 ` [PATCH v2 6/8] tests/intel/xe_oa: Check that blocked OA stream waiters are woken up on unbind Umesh Nerlige Ramappa
                   ` (5 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

The OA buffer mapping is VM_PFNMAP, so reading it through
/proc/self/mem goes through the vm_ops->access() of the mapping. Check
that this works before unbind and fails with EIO after, since access is
refused once the device is unplugged.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 38 ++++++++++++++++++++++++++++++++++++--
 1 file changed, 36 insertions(+), 2 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index e4b63c982200..8474d506612b 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -2831,6 +2831,26 @@ static void probe_stream_after_removal(int fd, const char *when)
 	igt_assert_eq(err, ENODEV);
 }
 
+/*
+ * Read through /proc/self/mem. The OA buffer mapping is VM_PFNMAP, so this goes through
+ * the vm_ops->access() of the mapping rather than through its page tables.
+ */
+static ssize_t read_proc_self_mem(const void *vaddr, void *buf, size_t len)
+{
+	ssize_t ret;
+	int fd, err;
+
+	fd = open("/proc/self/mem", O_RDONLY);
+	igt_assert_lte(0, fd);
+
+	ret = pread(fd, buf, len, (off_t)(uintptr_t)vaddr);
+	err = errno;
+	close(fd);
+	errno = err;
+
+	return ret;
+}
+
 static bool mem_is_zero(const void *vaddr, size_t len)
 {
 	const uint8_t *p = vaddr;
@@ -2868,6 +2888,7 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
 	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
 	uint64_t fmt = test_set->perf_oa_format;
 	struct drm_xe_oa_stream_info info = {};
+	uint32_t val;
 	int n = 0;
 
 	s->oa_unit_id = oau->oa_unit_id;
@@ -2899,6 +2920,9 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
 
 	/* Fault in the mapping while the device is still bound */
 	(void)READ_ONCE(*(const volatile uint32_t *)s->vaddr);
+
+	/* vm_ops->access() works on the mapping while the device is bound */
+	igt_assert_eq(read_proc_self_mem(s->vaddr, &val, sizeof(val)), sizeof(val));
 }
 
 static void unbind_stream_close(struct unbind_stream *s)
@@ -2931,6 +2955,8 @@ static void unbind_stream_check_live(struct unbind_stream *s)
 static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
 {
 	size_t page_size = sysconf(_SC_PAGESIZE);
+	uint32_t val;
+	ssize_t ret;
 	void *vaddr;
 
 	igt_debug("[%s] checking stream on oa unit %d\n", when, s->oa_unit_id);
@@ -2944,6 +2970,13 @@ static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
 	igt_assert(mem_is_zero(s->vaddr, page_size));
 	igt_assert(mem_is_zero((uint8_t *)s->vaddr + s->size - page_size, page_size));
 
+	/* vm_ops->access() on the mapping is refused once the device is gone */
+	ret = read_proc_self_mem(s->vaddr, &val, sizeof(val));
+	igt_debug("[%s] /proc/self/mem read: ret=%zd errno=%s\n", when, ret,
+		  ret < 0 ? strerror(errno) : "-");
+	igt_assert_eq(ret, -1);
+	igt_assert_eq(errno, EIO);
+
 	/* New mappings are refused */
 	vaddr = mmap(NULL, s->size, PROT_READ, MAP_PRIVATE, s->fd, 0);
 	igt_assert(vaddr == MAP_FAILED);
@@ -2986,8 +3019,9 @@ static void unbind_rebind_recover(void)
 /**
  * SUBTEST: unbind-rebind-stream
  * Description: Open OA streams with mmapped OA buffers and test the effects of unbind
- *		and rebind: streams die, mmaps read a zeroed dummy page, no new streams can
- *		be opened on the removed device and the device works after rebind.
+ *		and rebind: streams die, mmaps read a zeroed dummy page and refuse access
+ *		through /proc/self/mem, no new streams can be opened on the removed device
+ *		and the device works after rebind.
  */
 static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
 {
-- 
2.55.0


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

* [PATCH v2 6/8] tests/intel/xe_oa: Check that blocked OA stream waiters are woken up on unbind
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (4 preceding siblings ...)
  2026-11-04  0:55 ` [PATCH v2 5/8] tests/intel/xe_oa: Check vm_ops->access on " Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  6:42   ` Shekhar Chauhan
  2026-11-04  0:55 ` [PATCH v2 7/8] tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test Umesh Nerlige Ramappa
                   ` (4 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

Add a variant that opens the stream disabled. A disabled stream
produces no OA data, so a reader blocked in read() and a poller blocked
in poll() stay blocked until the stream dies. Check that unbind wakes
them up with ENODEV and POLLERR | POLLHUP.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 137 ++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 131 insertions(+), 6 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 8474d506612b..f1fe5f44c408 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -17,6 +17,7 @@
 #include <dirent.h>
 #include <time.h>
 #include <poll.h>
+#include <pthread.h>
 #include <math.h>
 
 #include "drm.h"
@@ -2864,6 +2865,7 @@ static bool mem_is_zero(const void *vaddr, size_t len)
 }
 
 #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
+#define UNBIND_STREAM_DISABLED		(1 << 1)
 
 #define UNBIND_MAX_STREAMS	16
 
@@ -2878,12 +2880,25 @@ struct unbind_stream {
 	size_t size;
 };
 
+struct unbind_waiter {
+	pthread_t thread;
+	int fd;
+	size_t report_size;
+	int ret;
+	int err;
+	short revents;
+};
+
 static char unbind_pci_slot[NAME_MAX];
 static bool unbind_state_stale;
 static struct unbind_stream unbind_streams[UNBIND_MAX_STREAMS];
 static int unbind_num_streams;
+static struct unbind_waiter unbind_reader_waiter, unbind_poller_waiter;
+static bool unbind_waiters_started;
+static volatile bool unbind_waiters_stop;
 
-static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau)
+static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau,
+			       unsigned int flags)
 {
 	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
 	uint64_t fmt = test_set->perf_oa_format;
@@ -2904,6 +2919,10 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
 	s->properties[n++] = __ff(fmt);
 	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_PERIOD_EXPONENT;
 	s->properties[n++] = oa_exponent_default;
+	if (flags & UNBIND_STREAM_DISABLED) {
+		s->properties[n++] = DRM_XE_OA_PROPERTY_OA_DISABLED;
+		s->properties[n++] = true;
+	}
 	igt_assert_lte(n, ARRAY_SIZE(s->properties));
 
 	s->param.num_properties = n / 2;
@@ -2983,6 +3002,93 @@ static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
 	igt_assert_eq(errno, ENODEV);
 }
 
+/*
+ * Blocking read until it fails. Run on a disabled stream, which produces no OA data, so the
+ * read blocks until the stream dies.
+ */
+static void *unbind_reader(void *arg)
+{
+	struct unbind_waiter *w = arg;
+	size_t size = w->report_size * 64;
+	uint8_t *buf = malloc(size);
+
+	/* No igt_assert outside the main thread, report through the waiter result */
+	if (!buf) {
+		w->ret = -1;
+		w->err = ENOMEM;
+		return NULL;
+	}
+
+	do {
+		w->ret = read(w->fd, buf, size);
+		w->err = errno;
+	} while (!unbind_waiters_stop &&
+		 (w->ret > 0 || (w->ret < 0 && (w->err == EINTR || w->err == EIO))));
+
+	free(buf);
+	return NULL;
+}
+
+/* Poll until the stream reports an error, also on a disabled stream so it blocks */
+static void *unbind_poller(void *arg)
+{
+	struct unbind_waiter *w = arg;
+	struct pollfd pfd = { .fd = w->fd, .events = POLLIN };
+
+	do {
+		pfd.revents = 0;
+		w->ret = poll(&pfd, 1, -1);
+		w->err = errno;
+	} while (!unbind_waiters_stop &&
+		 ((w->ret > 0 && !(pfd.revents & (POLLERR | POLLHUP))) ||
+		  (w->ret < 0 && w->err == EINTR)));
+
+	w->revents = pfd.revents;
+	return NULL;
+}
+
+static void unbind_waiters_start(struct unbind_stream *s)
+{
+	struct unbind_waiter *reader = &unbind_reader_waiter, *poller = &unbind_poller_waiter;
+
+	memset(reader, 0, sizeof(*reader));
+	memset(poller, 0, sizeof(*poller));
+	reader->fd = s->fd;
+	poller->fd = s->fd;
+	reader->report_size = s->report_size;
+	unbind_waiters_stop = false;
+
+	igt_assert_eq(pthread_create(&reader->thread, NULL, unbind_reader, reader), 0);
+	if (pthread_create(&poller->thread, NULL, unbind_poller, poller)) {
+		unbind_waiters_stop = true;
+		pthread_join(reader->thread, NULL);
+		igt_assert_f(false, "failed to create poller thread\n");
+	}
+	unbind_waiters_started = true;
+
+	/* Let the waiters block */
+	usleep(100 * 1000);
+}
+
+static void unbind_waiters_join(void)
+{
+	struct unbind_waiter *reader = &unbind_reader_waiter, *poller = &unbind_poller_waiter;
+
+	igt_set_timeout(60, "OA stream waiters not woken up on unbind");
+	pthread_join(reader->thread, NULL);
+	pthread_join(poller->thread, NULL);
+	unbind_waiters_started = false;
+	igt_reset_timeout();
+
+	igt_debug("reader: ret=%d errno=%s\n", reader->ret, strerror(reader->err));
+	igt_assert_eq(reader->ret, -1);
+	igt_assert_eq(reader->err, ENODEV);
+
+	igt_debug("poller: ret=%d revents=0x%x\n", poller->ret, poller->revents);
+	igt_assert_eq(poller->ret, 1);
+	igt_assert_eq(poller->revents, POLLERR | POLLHUP);
+}
+
 /*
  * Restore a bound device and fresh device state if an unbind/rebind test bailed out
  * half way, so the remaining subtests can run.
@@ -2992,6 +3098,13 @@ static void unbind_rebind_recover(void)
 	char path[PATH_MAX];
 	int i;
 
+	if (unbind_waiters_started) {
+		unbind_waiters_stop = true;
+		pthread_join(unbind_reader_waiter.thread, NULL);
+		pthread_join(unbind_poller_waiter.thread, NULL);
+		unbind_waiters_started = false;
+	}
+
 	for (i = 0; i < unbind_num_streams; i++) {
 		struct unbind_stream *s = &unbind_streams[i];
 
@@ -3019,24 +3132,32 @@ static void unbind_rebind_recover(void)
 /**
  * SUBTEST: unbind-rebind-stream
  * Description: Open OA streams with mmapped OA buffers and test the effects of unbind
- *		and rebind: streams die, mmaps read a zeroed dummy page and refuse access
- *		through /proc/self/mem, no new streams can be opened on the removed device
- *		and the device works after rebind.
+ *		and rebind: streams die, waiters are woken up, mmaps read a zeroed dummy
+ *		page and refuse access through /proc/self/mem, no new streams can be
+ *		opened on the removed device and the device works after rebind.
  */
 static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
 {
 	struct unbind_stream *streams = unbind_streams;
 	struct unbind_stream *primary = &streams[0];
+	bool disabled = flags & UNBIND_STREAM_DISABLED;
 	int ret, i;
 
 	igt_device_get_pci_slot_name(drm_fd, unbind_pci_slot);
 	igt_debug("Device %s\n", unbind_pci_slot);
 
 	unbind_num_streams = 0;
-	unbind_stream_open(&streams[unbind_num_streams++], oau0);
+	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags);
 	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
 
-	unbind_stream_check_live(primary);
+	/*
+	 * A disabled stream produces no OA data, so a reader and a poller stay blocked on it
+	 * until unbind kills the stream
+	 */
+	if (disabled)
+		unbind_waiters_start(primary);
+	else
+		unbind_stream_check_live(primary);
 
 	/* Guard against a wedged unbind/bind */
 	igt_set_timeout(60, "xe unbind timed out (wedged?)");
@@ -3047,6 +3168,9 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
 	igt_reset_timeout();
 	igt_assert_f(ret == 0, "xe unbind failed: %s\n", strerror(-ret));
 
+	if (disabled)
+		unbind_waiters_join();
+
 	for (i = 0; i < unbind_num_streams; i++)
 		unbind_stream_check_dead(&streams[i], "after-unbind");
 
@@ -5566,6 +5690,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 		} unbind_variants[] = {
 			{ "close", UNBIND_CLOSE_BEFORE_REBIND },
 			{ "open", 0 },
+			{ "disabled", UNBIND_STREAM_DISABLED },
 		};
 
 		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {
-- 
2.55.0


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

* [PATCH v2 7/8] tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (5 preceding siblings ...)
  2026-11-04  0:55 ` [PATCH v2 6/8] tests/intel/xe_oa: Check that blocked OA stream waiters are woken up on unbind Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  7:11   ` Shekhar Chauhan
  2026-11-04  0:55 ` [PATCH v2 8/8] tests/intel/xe_oa: Add an all OA units " Umesh Nerlige Ramappa
                   ` (3 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

Open the stream on an exec queue with preemption disabled. Unbind then
also restores the OA context state with an LRI batch on the exec queue
and restores preemption and timeslicing.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 28 +++++++++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index f1fe5f44c408..ffc1971cb361 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -2866,6 +2866,7 @@ static bool mem_is_zero(const void *vaddr, size_t len)
 
 #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
 #define UNBIND_STREAM_DISABLED		(1 << 1)
+#define UNBIND_EXEC_QUEUE		(1 << 2)
 
 #define UNBIND_MAX_STREAMS	16
 
@@ -2898,7 +2899,8 @@ static bool unbind_waiters_started;
 static volatile bool unbind_waiters_stop;
 
 static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau,
-			       unsigned int flags)
+			       unsigned int flags, uint32_t exec_q,
+			       const struct drm_xe_engine_class_instance *hwe)
 {
 	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
 	uint64_t fmt = test_set->perf_oa_format;
@@ -2923,6 +2925,14 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
 		s->properties[n++] = DRM_XE_OA_PROPERTY_OA_DISABLED;
 		s->properties[n++] = true;
 	}
+	if (exec_q) {
+		s->properties[n++] = DRM_XE_OA_PROPERTY_EXEC_QUEUE_ID;
+		s->properties[n++] = exec_q;
+		s->properties[n++] = DRM_XE_OA_PROPERTY_OA_ENGINE_INSTANCE;
+		s->properties[n++] = hwe->engine_instance;
+		s->properties[n++] = DRM_XE_OA_PROPERTY_NO_PREEMPT;
+		s->properties[n++] = true;
+	}
 	igt_assert_lte(n, ARRAY_SIZE(s->properties));
 
 	s->param.num_properties = n / 2;
@@ -3140,14 +3150,22 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
 {
 	struct unbind_stream *streams = unbind_streams;
 	struct unbind_stream *primary = &streams[0];
+	const struct drm_xe_engine_class_instance *hwe = NULL;
 	bool disabled = flags & UNBIND_STREAM_DISABLED;
+	uint32_t vm, exec_q = 0;
 	int ret, i;
 
 	igt_device_get_pci_slot_name(drm_fd, unbind_pci_slot);
 	igt_debug("Device %s\n", unbind_pci_slot);
 
+	if (flags & UNBIND_EXEC_QUEUE) {
+		hwe = oa_unit_engine(oau0);
+		vm = xe_vm_create(drm_fd, 0, 0);
+		exec_q = xe_exec_queue_create_deconst(drm_fd, vm, hwe, 0);
+	}
+
 	unbind_num_streams = 0;
-	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags);
+	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags, exec_q, hwe);
 	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
 
 	/*
@@ -3185,7 +3203,10 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
 		igt_reset_timeout();
 	}
 
-	/* Drop all state of the removed device, the drm fd also refers to it */
+	/*
+	 * Drop all state of the removed device, the drm fd also refers to it. The exec
+	 * queue and vm can't be destroyed on a removed device, they go with the drm fd.
+	 */
 	oa_device_fini();
 
 	igt_set_timeout(60, "xe bind timed out (wedged?)");
@@ -5691,6 +5712,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 			{ "close", UNBIND_CLOSE_BEFORE_REBIND },
 			{ "open", 0 },
 			{ "disabled", UNBIND_STREAM_DISABLED },
+			{ "exec-queue", UNBIND_EXEC_QUEUE },
 		};
 
 		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {
-- 
2.55.0


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

* [PATCH v2 8/8] tests/intel/xe_oa: Add an all OA units variant to the unbind/rebind test
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (6 preceding siblings ...)
  2026-11-04  0:55 ` [PATCH v2 7/8] tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test Umesh Nerlige Ramappa
@ 2026-11-04  0:55 ` Umesh Nerlige Ramappa
  2026-11-26  7:06   ` Shekhar Chauhan
  2026-11-04  2:19 ` ✓ Xe.CI.BAT: success for Test unbinding PCI device while OA stream is open (rev2) Patchwork
                   ` (2 subsequent siblings)
  10 siblings, 1 reply; 19+ messages in thread
From: Umesh Nerlige Ramappa @ 2026-11-04  0:55 UTC (permalink / raw)
  To: igt-dev, shekhar.chauhan; +Cc: harish.chegondi

Open a stream with a mmapped OA buffer on every OA unit, so that unbind
quiesces streams on all GTs and OA units at once, and run all checks on
each of them.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/xe_oa.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index ffc1971cb361..4eb0b13f00b1 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -2867,6 +2867,7 @@ static bool mem_is_zero(const void *vaddr, size_t len)
 #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
 #define UNBIND_STREAM_DISABLED		(1 << 1)
 #define UNBIND_EXEC_QUEUE		(1 << 2)
+#define UNBIND_ALL_UNITS		(1 << 3)
 
 #define UNBIND_MAX_STREAMS	16
 
@@ -3152,6 +3153,7 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
 	struct unbind_stream *primary = &streams[0];
 	const struct drm_xe_engine_class_instance *hwe = NULL;
 	bool disabled = flags & UNBIND_STREAM_DISABLED;
+	const struct drm_xe_oa_unit *oau;
 	uint32_t vm, exec_q = 0;
 	int ret, i;
 
@@ -3166,6 +3168,14 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
 
 	unbind_num_streams = 0;
 	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags, exec_q, hwe);
+	if (flags & UNBIND_ALL_UNITS) {
+		for_each_oa_unit(oau) {
+			if (oau->oa_unit_id == oau0->oa_unit_id)
+				continue;
+			igt_assert_lt(unbind_num_streams, UNBIND_MAX_STREAMS);
+			unbind_stream_open(&streams[unbind_num_streams++], oau, flags, 0, NULL);
+		}
+	}
 	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
 
 	/*
@@ -5713,6 +5723,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
 			{ "open", 0 },
 			{ "disabled", UNBIND_STREAM_DISABLED },
 			{ "exec-queue", UNBIND_EXEC_QUEUE },
+			{ "all-units", UNBIND_ALL_UNITS },
 		};
 
 		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {
-- 
2.55.0


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

* ✓ Xe.CI.BAT: success for Test unbinding PCI device while OA stream is open (rev2)
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (7 preceding siblings ...)
  2026-11-04  0:55 ` [PATCH v2 8/8] tests/intel/xe_oa: Add an all OA units " Umesh Nerlige Ramappa
@ 2026-11-04  2:19 ` Patchwork
  2026-11-04  2:39 ` ✗ i915.CI.BAT: failure " Patchwork
  2026-11-04 17:42 ` ✗ Xe.CI.FULL: " Patchwork
  10 siblings, 0 replies; 19+ messages in thread
From: Patchwork @ 2026-11-04  2:19 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

== Series Details ==

Series: Test unbinding PCI device while OA stream is open (rev2)
URL   : https://patchwork.freedesktop.org/series/177301/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_9177_BAT -> XEIGTPW_16098_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (15 -> 15)
------------------------------

  No changes in participating hosts


Changes
-------

  No changes found


Build changes
-------------

  * IGT: IGT_9177 -> IGTPW_16098
  * Linux: xe-6058-34c3200b517db45a621c4963d87759823be13bbd -> xe-6059-d11bbfdac0f3d443b367857ffe683ae6bb80d560

  IGTPW_16098: 16098
  IGT_9177: 9177
  xe-6058-34c3200b517db45a621c4963d87759823be13bbd: 34c3200b517db45a621c4963d87759823be13bbd
  xe-6059-d11bbfdac0f3d443b367857ffe683ae6bb80d560: d11bbfdac0f3d443b367857ffe683ae6bb80d560

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/index.html

[-- Attachment #2: Type: text/html, Size: 1550 bytes --]

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

* ✗ i915.CI.BAT: failure for Test unbinding PCI device while OA stream is open (rev2)
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (8 preceding siblings ...)
  2026-11-04  2:19 ` ✓ Xe.CI.BAT: success for Test unbinding PCI device while OA stream is open (rev2) Patchwork
@ 2026-11-04  2:39 ` Patchwork
  2026-11-04 17:42 ` ✗ Xe.CI.FULL: " Patchwork
  10 siblings, 0 replies; 19+ messages in thread
From: Patchwork @ 2026-11-04  2:39 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]

== Series Details ==

Series: Test unbinding PCI device while OA stream is open (rev2)
URL   : https://patchwork.freedesktop.org/series/177301/
State : failure

== Summary ==

CI Bug Log - changes from IGT_9177 -> IGTPW_16098
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with IGTPW_16098 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_16098, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16098/index.html

Participating hosts (40 -> 39)
------------------------------

  Missing    (1): bat-dg2-13 

Possible new issues
-------------------

  Here are the unknown changes that may have been introduced in IGTPW_16098:

### IGT changes ###

#### Possible regressions ####

  * igt@i915_pm_rpm@module-reload:
    - bat-adls-6:         [PASS][1] -> [FAIL][2]
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9177/bat-adls-6/igt@i915_pm_rpm@module-reload.html
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16098/bat-adls-6/igt@i915_pm_rpm@module-reload.html

  
Known issues
------------

  Here are the changes found in IGTPW_16098 that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@i915_pm_rpm@module-reload:
    - bat-adlp-6:         [PASS][3] -> [DMESG-WARN][4] ([i915#15673]) +78 other tests dmesg-warn
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9177/bat-adlp-6/igt@i915_pm_rpm@module-reload.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16098/bat-adlp-6/igt@i915_pm_rpm@module-reload.html

  
  [i915#15673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15673


Build changes
-------------

  * CI: CI-20190529 -> None
  * IGT: IGT_9177 -> IGTPW_16098

  CI-20190529: 20190529
  CI_DRM_19443: d11bbfdac0f3d443b367857ffe683ae6bb80d560 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_16098: 16098
  IGT_9177: 9177

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16098/index.html

[-- Attachment #2: Type: text/html, Size: 2866 bytes --]

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

* ✗ Xe.CI.FULL: failure for Test unbinding PCI device while OA stream is open (rev2)
  2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
                   ` (9 preceding siblings ...)
  2026-11-04  2:39 ` ✗ i915.CI.BAT: failure " Patchwork
@ 2026-11-04 17:42 ` Patchwork
  10 siblings, 0 replies; 19+ messages in thread
From: Patchwork @ 2026-11-04 17:42 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 66581 bytes --]

== Series Details ==

Series: Test unbinding PCI device while OA stream is open (rev2)
URL   : https://patchwork.freedesktop.org/series/177301/
State : failure

== Summary ==

CI Bug Log - changes from XEIGT_9177_FULL -> XEIGTPW_16098_FULL
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with XEIGTPW_16098_FULL absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in XEIGTPW_16098_FULL, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them
  to document this new failure mode, which will reduce false positives in CI.

  

Participating hosts (3 -> 3)
------------------------------

  No changes in participating hosts

Possible new issues
-------------------

  Here are the unknown changes that may have been introduced in XEIGTPW_16098_FULL:

### IGT changes ###

#### Possible regressions ####

  * igt@xe_oa@unbind-rebind-stream@close (NEW):
    - shard-bmg:          NOTRUN -> [INCOMPLETE][1] +1 other test incomplete
   [1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@xe_oa@unbind-rebind-stream@close.html
    - shard-ptl:          NOTRUN -> [INCOMPLETE][2] +1 other test incomplete
   [2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@xe_oa@unbind-rebind-stream@close.html
    - shard-lnl:          NOTRUN -> [INCOMPLETE][3] +1 other test incomplete
   [3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-3/igt@xe_oa@unbind-rebind-stream@close.html

  
New tests
---------

  New tests have been introduced between XEIGT_9177_FULL and XEIGTPW_16098_FULL:

### New IGT tests (81) ###

  * igt@kms_chamelium_sharpness_filter@filter-basic:
    - Statuses : 3 skip(s)
    - Exec time: [0.0] s

  * igt@kms_sharpness_filter@filter-basic:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 4.99] s

  * igt@kms_sharpness_filter@filter-basic@pipe-a-edp-1-basic:
    - Statuses : 2 pass(s)
    - Exec time: [0.37, 0.45] s

  * igt@kms_sharpness_filter@filter-basic@pipe-b-edp-1-basic:
    - Statuses : 2 pass(s)
    - Exec time: [1.45, 1.50] s

  * igt@kms_sharpness_filter@filter-basic@pipe-c-edp-1-basic:
    - Statuses : 2 pass(s)
    - Exec time: [1.45, 1.49] s

  * igt@kms_sharpness_filter@filter-basic@pipe-d-edp-1-basic:
    - Statuses : 1 pass(s)
    - Exec time: [1.49] s

  * igt@kms_sharpness_filter@filter-dpms:
    - Statuses : 1 pass(s)
    - Exec time: [6.95] s

  * igt@kms_sharpness_filter@filter-dpms@pipe-a-edp-1-dpms:
    - Statuses : 1 pass(s)
    - Exec time: [1.56] s

  * igt@kms_sharpness_filter@filter-dpms@pipe-b-edp-1-dpms:
    - Statuses : 1 pass(s)
    - Exec time: [2.70] s

  * igt@kms_sharpness_filter@filter-dpms@pipe-c-edp-1-dpms:
    - Statuses : 1 pass(s)
    - Exec time: [2.63] s

  * igt@kms_sharpness_filter@filter-scaler-downscale:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 5.38] s

  * igt@kms_sharpness_filter@filter-scaler-downscale@pipe-a-edp-1-downscale:
    - Statuses : 2 pass(s)
    - Exec time: [0.45, 0.52] s

  * igt@kms_sharpness_filter@filter-scaler-downscale@pipe-b-edp-1-downscale:
    - Statuses : 2 pass(s)
    - Exec time: [1.49, 1.59] s

  * igt@kms_sharpness_filter@filter-scaler-downscale@pipe-c-edp-1-downscale:
    - Statuses : 2 pass(s)
    - Exec time: [1.56, 1.61] s

  * igt@kms_sharpness_filter@filter-scaler-downscale@pipe-d-edp-1-downscale:
    - Statuses : 1 pass(s)
    - Exec time: [1.60] s

  * igt@kms_sharpness_filter@filter-scaler-upscale:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 5.27] s

  * igt@kms_sharpness_filter@filter-scaler-upscale@pipe-a-edp-1-upscale:
    - Statuses : 2 pass(s)
    - Exec time: [0.41, 0.46] s

  * igt@kms_sharpness_filter@filter-scaler-upscale@pipe-b-edp-1-upscale:
    - Statuses : 2 pass(s)
    - Exec time: [1.50, 1.55] s

  * igt@kms_sharpness_filter@filter-scaler-upscale@pipe-c-edp-1-upscale:
    - Statuses : 2 pass(s)
    - Exec time: [1.47, 1.61] s

  * igt@kms_sharpness_filter@filter-scaler-upscale@pipe-d-edp-1-upscale:
    - Statuses : 1 pass(s)
    - Exec time: [1.60] s

  * igt@kms_sharpness_filter@filter-strength:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.04, 28.95] s

  * igt@kms_sharpness_filter@filter-strength@pipe-a-edp-1-strength-1:
    - Statuses : 2 pass(s)
    - Exec time: [0.37, 0.42] s

  * igt@kms_sharpness_filter@filter-strength@pipe-a-edp-1-strength-128:
    - Statuses : 2 pass(s)
    - Exec time: [1.48, 1.52] s

  * igt@kms_sharpness_filter@filter-strength@pipe-a-edp-1-strength-191:
    - Statuses : 2 pass(s)
    - Exec time: [1.43, 1.49] s

  * igt@kms_sharpness_filter@filter-strength@pipe-a-edp-1-strength-255:
    - Statuses : 2 pass(s)
    - Exec time: [1.48, 1.52] s

  * igt@kms_sharpness_filter@filter-strength@pipe-a-edp-1-strength-64:
    - Statuses : 2 pass(s)
    - Exec time: [1.48, 1.52] s

  * igt@kms_sharpness_filter@filter-strength@pipe-b-edp-1-strength-1:
    - Statuses : 2 pass(s)
    - Exec time: [1.43, 1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-b-edp-1-strength-128:
    - Statuses : 2 pass(s)
    - Exec time: [1.47, 1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-b-edp-1-strength-191:
    - Statuses : 2 pass(s)
    - Exec time: [1.46, 1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-b-edp-1-strength-255:
    - Statuses : 2 pass(s)
    - Exec time: [1.47, 1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-b-edp-1-strength-64:
    - Statuses : 2 pass(s)
    - Exec time: [1.47, 1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-c-edp-1-strength-1:
    - Statuses : 2 pass(s)
    - Exec time: [1.46, 1.49] s

  * igt@kms_sharpness_filter@filter-strength@pipe-c-edp-1-strength-128:
    - Statuses : 2 pass(s)
    - Exec time: [1.47, 1.48] s

  * igt@kms_sharpness_filter@filter-strength@pipe-c-edp-1-strength-191:
    - Statuses : 2 pass(s)
    - Exec time: [1.45, 1.49] s

  * igt@kms_sharpness_filter@filter-strength@pipe-c-edp-1-strength-255:
    - Statuses : 2 pass(s)
    - Exec time: [1.45, 1.48] s

  * igt@kms_sharpness_filter@filter-strength@pipe-c-edp-1-strength-64:
    - Statuses : 2 pass(s)
    - Exec time: [1.46, 1.49] s

  * igt@kms_sharpness_filter@filter-strength@pipe-d-edp-1-strength-1:
    - Statuses : 1 pass(s)
    - Exec time: [1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-d-edp-1-strength-128:
    - Statuses : 1 pass(s)
    - Exec time: [1.49] s

  * igt@kms_sharpness_filter@filter-strength@pipe-d-edp-1-strength-191:
    - Statuses : 1 pass(s)
    - Exec time: [1.51] s

  * igt@kms_sharpness_filter@filter-strength@pipe-d-edp-1-strength-255:
    - Statuses : 1 pass(s)
    - Exec time: [1.50] s

  * igt@kms_sharpness_filter@filter-strength@pipe-d-edp-1-strength-64:
    - Statuses : 1 pass(s)
    - Exec time: [1.49] s

  * igt@kms_sharpness_filter@filter-suspend:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 9.97] s

  * igt@kms_sharpness_filter@filter-suspend@pipe-a-edp-1-suspend:
    - Statuses : 2 pass(s)
    - Exec time: [3.65, 5.38] s

  * igt@kms_sharpness_filter@filter-suspend@pipe-c-edp-1-suspend:
    - Statuses : 1 pass(s)
    - Exec time: [4.75] s

  * igt@kms_sharpness_filter@filter-suspend@pipe-d-edp-1-suspend:
    - Statuses : 1 pass(s)
    - Exec time: [4.55] s

  * igt@kms_sharpness_filter@filter-tap:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 5.50] s

  * igt@kms_sharpness_filter@filter-tap@pipe-a-edp-1-tap-5:
    - Statuses : 2 pass(s)
    - Exec time: [1.26, 1.27] s

  * igt@kms_sharpness_filter@filter-tap@pipe-b-edp-1-tap-5:
    - Statuses : 2 pass(s)
    - Exec time: [1.35, 1.39] s

  * igt@kms_sharpness_filter@filter-tap@pipe-c-edp-1-tap-5:
    - Statuses : 2 pass(s)
    - Exec time: [1.25, 1.40] s

  * igt@kms_sharpness_filter@filter-tap@pipe-d-edp-1-tap-5:
    - Statuses : 1 pass(s)
    - Exec time: [1.39] s

  * igt@kms_sharpness_filter@filter-toggle:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 5.51] s

  * igt@kms_sharpness_filter@filter-toggle@pipe-a-edp-1-toggle:
    - Statuses : 2 pass(s)
    - Exec time: [0.53, 0.58] s

  * igt@kms_sharpness_filter@filter-toggle@pipe-b-edp-1-toggle:
    - Statuses : 2 pass(s)
    - Exec time: [1.66, 1.67] s

  * igt@kms_sharpness_filter@filter-toggle@pipe-c-edp-1-toggle:
    - Statuses : 2 pass(s)
    - Exec time: [1.55, 1.61] s

  * igt@kms_sharpness_filter@filter-toggle@pipe-d-edp-1-toggle:
    - Statuses : 1 pass(s)
    - Exec time: [1.60] s

  * igt@kms_sharpness_filter@invalid-filter-with-plane:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 1.47] s

  * igt@kms_sharpness_filter@invalid-filter-with-plane@pipe-a-edp-1-invalid-filter-with-plane:
    - Statuses : 2 pass(s)
    - Exec time: [0.33, 0.39] s

  * igt@kms_sharpness_filter@invalid-filter-with-plane@pipe-b-edp-1-invalid-filter-with-plane:
    - Statuses : 2 pass(s)
    - Exec time: [0.31, 0.35] s

  * igt@kms_sharpness_filter@invalid-filter-with-plane@pipe-c-edp-1-invalid-filter-with-plane:
    - Statuses : 2 pass(s)
    - Exec time: [0.31, 0.35] s

  * igt@kms_sharpness_filter@invalid-filter-with-plane@pipe-d-edp-1-invalid-filter-with-plane:
    - Statuses : 1 pass(s)
    - Exec time: [0.35] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaler:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.03, 0.62] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaler@pipe-a-edp-1-invalid-filter-with-scaler:
    - Statuses : 2 pass(s)
    - Exec time: [0.14, 0.24] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaler@pipe-b-edp-1-invalid-filter-with-scaler:
    - Statuses : 2 pass(s)
    - Exec time: [0.11, 0.13] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaler@pipe-c-edp-1-invalid-filter-with-scaler:
    - Statuses : 2 pass(s)
    - Exec time: [0.11, 0.12] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaler@pipe-d-edp-1-invalid-filter-with-scaler:
    - Statuses : 1 pass(s)
    - Exec time: [0.12] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.03, 10.82] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-a-edp-1-invalid-filter-with-scaling-mode-aspec:
    - Statuses : 2 pass(s)
    - Exec time: [1.36, 1.49] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-a-edp-1-invalid-filter-with-scaling-mode-fulls:
    - Statuses : 2 pass(s)
    - Exec time: [0.28, 0.31] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-b-edp-1-invalid-filter-with-scaling-mode-aspec:
    - Statuses : 2 pass(s)
    - Exec time: [1.36, 1.50] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-b-edp-1-invalid-filter-with-scaling-mode-fulls:
    - Statuses : 2 pass(s)
    - Exec time: [1.37, 1.44] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-c-edp-1-invalid-filter-with-scaling-mode-aspec:
    - Statuses : 2 pass(s)
    - Exec time: [1.37, 1.52] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-c-edp-1-invalid-filter-with-scaling-mode-fulls:
    - Statuses : 2 pass(s)
    - Exec time: [1.36, 1.52] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-d-edp-1-invalid-filter-with-scaling-mode-aspec:
    - Statuses : 1 pass(s)
    - Exec time: [1.49] s

  * igt@kms_sharpness_filter@invalid-filter-with-scaling-mode@pipe-d-edp-1-invalid-filter-with-scaling-mode-fulls:
    - Statuses : 1 pass(s)
    - Exec time: [1.50] s

  * igt@kms_sharpness_filter@invalid-plane-with-filter:
    - Statuses : 2 pass(s) 1 skip(s)
    - Exec time: [0.02, 4.96] s

  * igt@kms_sharpness_filter@invalid-plane-with-filter@pipe-a-edp-1-invalid-plane-with-filter:
    - Statuses : 2 pass(s)
    - Exec time: [0.31, 0.45] s

  * igt@kms_sharpness_filter@invalid-plane-with-filter@pipe-b-edp-1-invalid-plane-with-filter:
    - Statuses : 2 pass(s)
    - Exec time: [1.34, 1.46] s

  * igt@kms_sharpness_filter@invalid-plane-with-filter@pipe-c-edp-1-invalid-plane-with-filter:
    - Statuses : 2 pass(s)
    - Exec time: [1.39, 1.50] s

  * igt@kms_sharpness_filter@invalid-plane-with-filter@pipe-d-edp-1-invalid-plane-with-filter:
    - Statuses : 1 pass(s)
    - Exec time: [1.50] s

  * igt@xe_oa@unbind-rebind-stream:
    - Statuses : 3 incomplete(s)
    - Exec time: [0.0] s

  * igt@xe_oa@unbind-rebind-stream@close:
    - Statuses : 3 incomplete(s)
    - Exec time: [0.0] s

  

Known issues
------------

  Here are the changes found in XEIGTPW_16098_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@kms_async_flips@alternate-sync-async-flip:
    - shard-lnl:          [PASS][4] -> [FAIL][5] ([Intel XE#3718] / [Intel XE#7265]) +1 other test fail
   [4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-3/igt@kms_async_flips@alternate-sync-async-flip.html
   [5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-4/igt@kms_async_flips@alternate-sync-async-flip.html

  * igt@kms_async_flips@alternate-sync-async-flip-atomic:
    - shard-bmg:          [PASS][6] -> [FAIL][7] ([Intel XE#3718] / [Intel XE#6078])
   [6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-2/igt@kms_async_flips@alternate-sync-async-flip-atomic.html
   [7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_async_flips@alternate-sync-async-flip-atomic.html

  * igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-b-hdmi-a-3:
    - shard-bmg:          [PASS][8] -> [FAIL][9] ([Intel XE#6078])
   [8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-2/igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-b-hdmi-a-3.html
   [9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-b-hdmi-a-3.html

  * igt@kms_atomic_transition@plane-all-modeset-transition-fencing:
    - shard-ptl:          NOTRUN -> [SKIP][10] ([Intel XE#5947])
   [10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@kms_atomic_transition@plane-all-modeset-transition-fencing.html

  * igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels:
    - shard-bmg:          NOTRUN -> [SKIP][11] ([Intel XE#2370])
   [11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html

  * igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
    - shard-ptl:          NOTRUN -> [SKIP][12] ([Intel XE#6925])
   [12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html

  * igt@kms_big_fb@linear-64bpp-rotate-90:
    - shard-bmg:          NOTRUN -> [SKIP][13] ([Intel XE#2327]) +2 other tests skip
   [13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-8/igt@kms_big_fb@linear-64bpp-rotate-90.html
    - shard-ptl:          NOTRUN -> [SKIP][14] ([Intel XE#5901]) +2 other tests skip
   [14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-6/igt@kms_big_fb@linear-64bpp-rotate-90.html

  * igt@kms_big_fb@y-tiled-addfb:
    - shard-bmg:          NOTRUN -> [SKIP][15] ([Intel XE#2328] / [Intel XE#7367])
   [15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_big_fb@y-tiled-addfb.html
    - shard-ptl:          NOTRUN -> [SKIP][16] ([Intel XE#5850])
   [16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-6/igt@kms_big_fb@y-tiled-addfb.html

  * igt@kms_big_fb@y-tiled-addfb-size-offset-overflow:
    - shard-ptl:          NOTRUN -> [SKIP][17] ([Intel XE#5851])
   [17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_big_fb@y-tiled-addfb-size-offset-overflow.html

  * igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
    - shard-bmg:          NOTRUN -> [SKIP][18] ([Intel XE#1124]) +4 other tests skip
   [18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip.html

  * igt@kms_big_fb@yf-tiled-8bpp-rotate-270:
    - shard-ptl:          NOTRUN -> [SKIP][19] ([Intel XE#5808]) +3 other tests skip
   [19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-6/igt@kms_big_fb@yf-tiled-8bpp-rotate-270.html

  * igt@kms_bw@connected-linear-tiling-4-displays-target-3840x2160p:
    - shard-bmg:          NOTRUN -> [SKIP][20] ([Intel XE#7679])
   [20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_bw@connected-linear-tiling-4-displays-target-3840x2160p.html
    - shard-ptl:          NOTRUN -> [SKIP][21] ([Intel XE#7679])
   [21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_bw@connected-linear-tiling-4-displays-target-3840x2160p.html

  * igt@kms_bw@linear-tiling-1-displays-target-1920x1080p:
    - shard-bmg:          [PASS][22] -> [SKIP][23] ([Intel XE#367]) +1 other test skip
   [22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-7/igt@kms_bw@linear-tiling-1-displays-target-1920x1080p.html
   [23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-4/igt@kms_bw@linear-tiling-1-displays-target-1920x1080p.html

  * igt@kms_bw@linear-tiling-3-displays-target-1920x1080p:
    - shard-ptl:          NOTRUN -> [SKIP][24] ([Intel XE#367]) +1 other test skip
   [24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-5/igt@kms_bw@linear-tiling-3-displays-target-1920x1080p.html

  * igt@kms_bw@linear-tiling-4-displays-target-2560x1440p:
    - shard-bmg:          NOTRUN -> [SKIP][25] ([Intel XE#367]) +3 other tests skip
   [25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-6/igt@kms_bw@linear-tiling-4-displays-target-2560x1440p.html

  * igt@kms_ccs@bad-rotation-90-4-tiled-lnl-ccs@pipe-c-dp-2:
    - shard-bmg:          NOTRUN -> [SKIP][26] ([Intel XE#2652]) +7 other tests skip
   [26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_ccs@bad-rotation-90-4-tiled-lnl-ccs@pipe-c-dp-2.html

  * igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs@pipe-c-hdmi-a-3:
    - shard-bmg:          [PASS][27] -> [INCOMPLETE][28] ([Intel XE#7084] / [Intel XE#8150])
   [27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-4/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs@pipe-c-hdmi-a-3.html
   [28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-4/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs@pipe-c-hdmi-a-3.html

  * igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs:
    - shard-bmg:          NOTRUN -> [SKIP][29] ([Intel XE#3432]) +1 other test skip
   [29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs.html
    - shard-ptl:          NOTRUN -> [SKIP][30] ([Intel XE#5822]) +6 other tests skip
   [30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_ccs@crc-primary-suspend-4-tiled-dg2-mc-ccs.html

  * igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-rc-ccs-cc:
    - shard-bmg:          NOTRUN -> [SKIP][31] ([Intel XE#2887]) +6 other tests skip
   [31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_ccs@crc-sprite-planes-basic-4-tiled-dg2-rc-ccs-cc.html

  * igt@kms_chamelium_color@ctm-green-to-red:
    - shard-bmg:          NOTRUN -> [SKIP][32] ([Intel XE#2325] / [Intel XE#7358])
   [32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_chamelium_color@ctm-green-to-red.html

  * igt@kms_chamelium_color@gamma:
    - shard-ptl:          NOTRUN -> [SKIP][33] ([Intel XE#5824])
   [33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@kms_chamelium_color@gamma.html

  * igt@kms_chamelium_edid@dp-edid-change-during-hibernate:
    - shard-bmg:          NOTRUN -> [SKIP][34] ([Intel XE#2252]) +6 other tests skip
   [34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_chamelium_edid@dp-edid-change-during-hibernate.html

  * igt@kms_chamelium_hpd@dp-hpd-after-suspend:
    - shard-ptl:          NOTRUN -> [SKIP][35] ([Intel XE#2252]) +3 other tests skip
   [35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_chamelium_hpd@dp-hpd-after-suspend.html

  * igt@kms_color_pipeline@plane-lut1d-pre-ctm3x4@pipe-d-plane-4:
    - shard-bmg:          NOTRUN -> [SKIP][36] ([Intel XE#6969]) +7 other tests skip
   [36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_color_pipeline@plane-lut1d-pre-ctm3x4@pipe-d-plane-4.html

  * igt@kms_content_protection@dp-mst-type-1-suspend-resume:
    - shard-ptl:          NOTRUN -> [SKIP][37] ([Intel XE#6974])
   [37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@kms_content_protection@dp-mst-type-1-suspend-resume.html

  * igt@kms_content_protection@legacy-hdcp14@pipe-a-dp-2:
    - shard-bmg:          NOTRUN -> [FAIL][38] ([Intel XE#1178] / [Intel XE#3304] / [Intel XE#7374]) +2 other tests fail
   [38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_content_protection@legacy-hdcp14@pipe-a-dp-2.html

  * igt@kms_content_protection@lic-type-0-hdcp14@pipe-a-dp-1:
    - shard-bmg:          NOTRUN -> [FAIL][39] ([Intel XE#3304])
   [39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@kms_content_protection@lic-type-0-hdcp14@pipe-a-dp-1.html

  * igt@kms_content_protection@mei-interface:
    - shard-bmg:          NOTRUN -> [SKIP][40] ([Intel XE#7642])
   [40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_content_protection@mei-interface.html
    - shard-ptl:          NOTRUN -> [SKIP][41] ([Intel XE#5845])
   [41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_content_protection@mei-interface.html

  * igt@kms_content_protection@uevent-hdcp14:
    - shard-bmg:          NOTRUN -> [FAIL][42] ([Intel XE#6707] / [Intel XE#7439]) +1 other test fail
   [42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_content_protection@uevent-hdcp14.html

  * igt@kms_cursor_crc@cursor-offscreen-32x10:
    - shard-bmg:          NOTRUN -> [SKIP][43] ([Intel XE#2320]) +1 other test skip
   [43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_cursor_crc@cursor-offscreen-32x10.html

  * igt@kms_cursor_crc@cursor-rapid-movement-64x21:
    - shard-ptl:          NOTRUN -> [SKIP][44] ([Intel XE#5900]) +1 other test skip
   [44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_cursor_crc@cursor-rapid-movement-64x21.html

  * igt@kms_cursor_legacy@2x-flip-vs-cursor-legacy:
    - shard-ptl:          NOTRUN -> [SKIP][45] ([Intel XE#5962]) +2 other tests skip
   [45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_cursor_legacy@2x-flip-vs-cursor-legacy.html

  * igt@kms_cursor_legacy@cursora-vs-flipa-atomic-transitions-varying-size:
    - shard-bmg:          [PASS][46] -> [DMESG-FAIL][47] ([Intel XE#7774])
   [46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-9/igt@kms_cursor_legacy@cursora-vs-flipa-atomic-transitions-varying-size.html
   [47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_cursor_legacy@cursora-vs-flipa-atomic-transitions-varying-size.html

  * igt@kms_cursor_legacy@cursorb-vs-flipb-toggle:
    - shard-ptl:          NOTRUN -> [SKIP][48] ([Intel XE#5962] / [Intel XE#7343]) +1 other test skip
   [48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_cursor_legacy@cursorb-vs-flipb-toggle.html

  * igt@kms_dp_link_training@non-uhbr-mst-direct-train:
    - shard-ptl:          NOTRUN -> [SKIP][49] ([Intel XE#9532])
   [49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-5/igt@kms_dp_link_training@non-uhbr-mst-direct-train.html

  * igt@kms_dp_link_training@non-uhbr-sst-direct-train:
    - shard-ptl:          NOTRUN -> [SKIP][50] ([Intel XE#9534])
   [50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@kms_dp_link_training@non-uhbr-sst-direct-train.html

  * igt@kms_dp_link_training@uhbr-mst-direct-train:
    - shard-bmg:          NOTRUN -> [SKIP][51] ([Intel XE#9527])
   [51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@kms_dp_link_training@uhbr-mst-direct-train.html
    - shard-ptl:          NOTRUN -> [SKIP][52] ([Intel XE#9527])
   [52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_dp_link_training@uhbr-mst-direct-train.html

  * igt@kms_dp_link_training@uhbr-sst:
    - shard-bmg:          NOTRUN -> [SKIP][53] ([Intel XE#9535])
   [53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_dp_link_training@uhbr-sst.html

  * igt@kms_dsc@dsc-with-bpc-formats:
    - shard-bmg:          NOTRUN -> [SKIP][54] ([Intel XE#8265])
   [54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_dsc@dsc-with-bpc-formats.html

  * igt@kms_dsc@dsc-with-formats-bigjoiner:
    - shard-ptl:          NOTRUN -> [SKIP][55] ([Intel XE#5907])
   [55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_dsc@dsc-with-formats-bigjoiner.html

  * igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-dirtyfb-tests:
    - shard-bmg:          NOTRUN -> [SKIP][56] ([Intel XE#4422] / [Intel XE#7442])
   [56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-9/igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-dirtyfb-tests.html

  * igt@kms_fbcon_fbt@fbc:
    - shard-bmg:          NOTRUN -> [SKIP][57] ([Intel XE#4156] / [Intel XE#7425])
   [57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_fbcon_fbt@fbc.html

  * igt@kms_fbcon_fbt@psr-suspend:
    - shard-bmg:          NOTRUN -> [SKIP][58] ([Intel XE#8680])
   [58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-6/igt@kms_fbcon_fbt@psr-suspend.html

  * igt@kms_feature_discovery@display-4x:
    - shard-bmg:          NOTRUN -> [SKIP][59] ([Intel XE#1138] / [Intel XE#7344])
   [59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_feature_discovery@display-4x.html

  * igt@kms_flip@2x-absolute-wf_vblank-interruptible:
    - shard-ptl:          NOTRUN -> [SKIP][60] ([Intel XE#2316]) +2 other tests skip
   [60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_flip@2x-absolute-wf_vblank-interruptible.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
    - shard-lnl:          [PASS][61] -> [FAIL][62] ([Intel XE#301])
   [61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-2/igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1.html
   [62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-8/igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1.html

  * igt@kms_flip_scaled_crc@flip-32bpp-linear-to-64bpp-linear-downscaling@pipe-a-default-mode:
    - shard-ptl:          NOTRUN -> [SKIP][63] ([Intel XE#5828]) +1 other test skip
   [63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_flip_scaled_crc@flip-32bpp-linear-to-64bpp-linear-downscaling@pipe-a-default-mode.html

  * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling:
    - shard-bmg:          NOTRUN -> [SKIP][64] ([Intel XE#7178] / [Intel XE#7351]) +3 other tests skip
   [64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-8/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-downscaling.html

  * igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling:
    - shard-bmg:          NOTRUN -> [SKIP][65] ([Intel XE#7178] / [Intel XE#7349])
   [65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling.html

  * igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling:
    - shard-ptl:          NOTRUN -> [SKIP][66] ([Intel XE#7178]) +4 other tests skip
   [66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling.html

  * igt@kms_flip_scaled_crc@flip-nv12-linear-to-nv12-linear-reflect-x:
    - shard-bmg:          NOTRUN -> [SKIP][67] ([Intel XE#7179])
   [67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-6/igt@kms_flip_scaled_crc@flip-nv12-linear-to-nv12-linear-reflect-x.html

  * igt@kms_frontbuffer_tracking@drrs-1p-primscrn-pri-shrfb-draw-blt:
    - shard-ptl:          NOTRUN -> [SKIP][68] ([Intel XE#5800] / [Intel XE#6312]) +3 other tests skip
   [68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-7/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-pri-shrfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@drrshdr-rgb565-draw-render:
    - shard-ptl:          NOTRUN -> [SKIP][69] ([Intel XE#6312]) +7 other tests skip
   [69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@kms_frontbuffer_tracking@drrshdr-rgb565-draw-render.html

  * igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
    - shard-bmg:          NOTRUN -> [SKIP][70] ([Intel XE#4141]) +5 other tests skip
   [70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw.html

  * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-onoff:
    - shard-ptl:          NOTRUN -> [SKIP][71] ([Intel XE#5812]) +41 other tests skip
   [71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-onoff.html

  * igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-mmap-wc:
    - shard-bmg:          NOTRUN -> [SKIP][72] ([Intel XE#2311]) +38 other tests skip
   [72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-cur-indfb-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@fbcdrrshdr-argb161616f-draw-mmap-wc:
    - shard-bmg:          NOTRUN -> [SKIP][73] ([Intel XE#7061])
   [73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@kms_frontbuffer_tracking@fbcdrrshdr-argb161616f-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@fbchdr-rgb565-draw-mmap-wc:
    - shard-ptl:          NOTRUN -> [SKIP][74] ([Intel XE#7865]) +13 other tests skip
   [74]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_frontbuffer_tracking@fbchdr-rgb565-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@fbcpsrhdr-argb161616f-draw-blt:
    - shard-ptl:          NOTRUN -> [SKIP][75] ([Intel XE#7061]) +1 other test skip
   [75]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_frontbuffer_tracking@fbcpsrhdr-argb161616f-draw-blt.html

  * igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-blt:
    - shard-bmg:          NOTRUN -> [SKIP][76] ([Intel XE#2313]) +39 other tests skip
   [76]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-4/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@psr-argb161616f-draw-blt:
    - shard-bmg:          NOTRUN -> [SKIP][77] ([Intel XE#7061] / [Intel XE#7356]) +1 other test skip
   [77]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-9/igt@kms_frontbuffer_tracking@psr-argb161616f-draw-blt.html
    - shard-ptl:          NOTRUN -> [SKIP][78] ([Intel XE#7061] / [Intel XE#7356]) +2 other tests skip
   [78]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@kms_frontbuffer_tracking@psr-argb161616f-draw-blt.html

  * igt@kms_hdmi_audio_bw@audio-bw-hblank80:
    - shard-bmg:          [PASS][79] -> [FAIL][80] ([Intel XE#9313])
   [79]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-8/igt@kms_hdmi_audio_bw@audio-bw-hblank80.html
   [80]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_hdmi_audio_bw@audio-bw-hblank80.html

  * igt@kms_hdr@invalid-hdr:
    - shard-bmg:          [PASS][81] -> [SKIP][82] ([Intel XE#1503])
   [81]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-8/igt@kms_hdr@invalid-hdr.html
   [82]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_hdr@invalid-hdr.html

  * igt@kms_hdr@static-toggle:
    - shard-ptl:          NOTRUN -> [SKIP][83] ([Intel XE#5917] / [Intel XE#6174])
   [83]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_hdr@static-toggle.html

  * igt@kms_joiner@basic-big-joiner:
    - shard-bmg:          NOTRUN -> [SKIP][84] ([Intel XE#6901]) +1 other test skip
   [84]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-4/igt@kms_joiner@basic-big-joiner.html
    - shard-ptl:          NOTRUN -> [SKIP][85] ([Intel XE#6901]) +1 other test skip
   [85]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_joiner@basic-big-joiner.html

  * igt@kms_joiner@basic-force-ultra-joiner:
    - shard-ptl:          NOTRUN -> [SKIP][86] ([Intel XE#6900])
   [86]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@kms_joiner@basic-force-ultra-joiner.html

  * igt@kms_joiner@invalid-modeset-force-ultra-joiner:
    - shard-bmg:          NOTRUN -> [SKIP][87] ([Intel XE#6911] / [Intel XE#7466])
   [87]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_joiner@invalid-modeset-force-ultra-joiner.html

  * igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
    - shard-bmg:          NOTRUN -> [SKIP][88] ([Intel XE#7591])
   [88]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_multipipe_modeset@basic-max-pipe-crc-check.html

  * igt@kms_plane@pixel-format-4-tiled-modifier@pipe-a-plane-5:
    - shard-bmg:          NOTRUN -> [SKIP][89] ([Intel XE#8303]) +3 other tests skip
   [89]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_plane@pixel-format-4-tiled-modifier@pipe-a-plane-5.html

  * igt@kms_plane@pixel-format-x-tiled-modifier:
    - shard-ptl:          NOTRUN -> [SKIP][90] ([Intel XE#7283]) +3 other tests skip
   [90]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@kms_plane@pixel-format-x-tiled-modifier.html

  * igt@kms_plane@pixel-format-y-tiled-modifier:
    - shard-bmg:          NOTRUN -> [SKIP][91] ([Intel XE#7283]) +4 other tests skip
   [91]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@kms_plane@pixel-format-y-tiled-modifier.html

  * igt@kms_plane_lowres@tiling-none@pipe-b-edp-1:
    - shard-ptl:          NOTRUN -> [SKIP][92] ([Intel XE#5844]) +4 other tests skip
   [92]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@kms_plane_lowres@tiling-none@pipe-b-edp-1.html

  * igt@kms_plane_multiple@2x-tiling-y:
    - shard-bmg:          NOTRUN -> [SKIP][93] ([Intel XE#5021] / [Intel XE#7377])
   [93]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-10/igt@kms_plane_multiple@2x-tiling-y.html
    - shard-ptl:          NOTRUN -> [SKIP][94] ([Intel XE#4596] / [Intel XE#5854])
   [94]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_plane_multiple@2x-tiling-y.html

  * igt@kms_plane_multiple@tiling-y:
    - shard-bmg:          NOTRUN -> [SKIP][95] ([Intel XE#5020] / [Intel XE#7348])
   [95]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_plane_multiple@tiling-y.html

  * igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a:
    - shard-bmg:          NOTRUN -> [SKIP][96] ([Intel XE#2763] / [Intel XE#6886]) +4 other tests skip
   [96]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a.html

  * igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b:
    - shard-ptl:          NOTRUN -> [SKIP][97] ([Intel XE#6886]) +4 other tests skip
   [97]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b.html

  * igt@kms_pm_dc@dc5-dpms-negative:
    - shard-ptl:          NOTRUN -> [SKIP][98] ([Intel XE#1131])
   [98]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_pm_dc@dc5-dpms-negative.html

  * igt@kms_pm_rpm@dpms-non-lpsp:
    - shard-ptl:          NOTRUN -> [SKIP][99] ([Intel XE#5849])
   [99]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_pm_rpm@dpms-non-lpsp.html

  * igt@kms_pm_rpm@package-g7:
    - shard-bmg:          NOTRUN -> [SKIP][100] ([Intel XE#6814] / [Intel XE#7428])
   [100]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-4/igt@kms_pm_rpm@package-g7.html

  * igt@kms_psr2_sf@fbc-pr-plane-move-sf-dmg-area:
    - shard-ptl:          NOTRUN -> [SKIP][101] ([Intel XE#7304]) +1 other test skip
   [101]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_psr2_sf@fbc-pr-plane-move-sf-dmg-area.html

  * igt@kms_psr2_sf@fbc-psr2-cursor-plane-move-continuous-sf:
    - shard-bmg:          NOTRUN -> [SKIP][102] ([Intel XE#1489]) +5 other tests skip
   [102]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-3/igt@kms_psr2_sf@fbc-psr2-cursor-plane-move-continuous-sf.html
    - shard-ptl:          NOTRUN -> [SKIP][103] ([Intel XE#5858] / [Intel XE#7304]) +3 other tests skip
   [103]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@kms_psr2_sf@fbc-psr2-cursor-plane-move-continuous-sf.html

  * igt@kms_psr2_sf@fbc-psr2-cursor-plane-move-continuous-sf@pipe-a-edp-1:
    - shard-ptl:          NOTRUN -> [SKIP][104] ([Intel XE#5858]) +1 other test skip
   [104]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@kms_psr2_sf@fbc-psr2-cursor-plane-move-continuous-sf@pipe-a-edp-1.html

  * igt@kms_psr2_su@page_flip-xrgb8888:
    - shard-ptl:          NOTRUN -> [SKIP][105] ([Intel XE#7413])
   [105]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_psr2_su@page_flip-xrgb8888.html

  * igt@kms_psr@fbc-pr-no-drrs:
    - shard-bmg:          NOTRUN -> [SKIP][106] ([Intel XE#2234] / [Intel XE#2850]) +9 other tests skip
   [106]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_psr@fbc-pr-no-drrs.html
    - shard-ptl:          NOTRUN -> [SKIP][107] ([Intel XE#1406]) +1 other test skip
   [107]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-5/igt@kms_psr@fbc-pr-no-drrs.html

  * igt@kms_psr@fbc-psr2-sprite-plane-onoff@edp-1:
    - shard-ptl:          NOTRUN -> [SKIP][108] ([Intel XE#1406] / [Intel XE#5835]) +1 other test skip
   [108]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-5/igt@kms_psr@fbc-psr2-sprite-plane-onoff@edp-1.html

  * igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
    - shard-bmg:          NOTRUN -> [SKIP][109] ([Intel XE#2330] / [Intel XE#5813])
   [109]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0.html
    - shard-ptl:          NOTRUN -> [SKIP][110] ([Intel XE#5813])
   [110]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0.html

  * igt@kms_setmode@invalid-clone-single-crtc:
    - shard-ptl:          NOTRUN -> [SKIP][111] ([Intel XE#5910])
   [111]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@kms_setmode@invalid-clone-single-crtc.html

  * igt@kms_sharpness_filter@filter-toggle (NEW):
    - shard-bmg:          NOTRUN -> [SKIP][112] ([Intel XE#6503])
   [112]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_sharpness_filter@filter-toggle.html

  * igt@kms_vrr@flip-dpms@pipe-a-edp-1:
    - shard-ptl:          [PASS][113] -> [FAIL][114] ([Intel XE#4227] / [Intel XE#7397]) +1 other test fail
   [113]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-ptl-4/igt@kms_vrr@flip-dpms@pipe-a-edp-1.html
   [114]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@kms_vrr@flip-dpms@pipe-a-edp-1.html

  * igt@kms_vrr@seamless-rr-switch-virtual:
    - shard-bmg:          NOTRUN -> [SKIP][115] ([Intel XE#1499] / [Intel XE#9271])
   [115]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_vrr@seamless-rr-switch-virtual.html

  * igt@xe_compute_preempt@compute-preempt-many-vram-evict@engine-drm_xe_engine_class_compute:
    - shard-bmg:          [PASS][116] -> [ABORT][117] ([Intel XE#1727]) +1 other test abort
   [116]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-10/igt@xe_compute_preempt@compute-preempt-many-vram-evict@engine-drm_xe_engine_class_compute.html
   [117]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-3/igt@xe_compute_preempt@compute-preempt-many-vram-evict@engine-drm_xe_engine_class_compute.html

  * igt@xe_evict@evict-mixed-threads-large-multi-vm:
    - shard-ptl:          NOTRUN -> [SKIP][118] ([Intel XE#5764]) +2 other tests skip
   [118]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@xe_evict@evict-mixed-threads-large-multi-vm.html

  * igt@xe_exec_balancer@many-cm-virtual-userptr:
    - shard-ptl:          NOTRUN -> [SKIP][119] ([Intel XE#7482]) +9 other tests skip
   [119]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-6/igt@xe_exec_balancer@many-cm-virtual-userptr.html

  * igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr:
    - shard-bmg:          NOTRUN -> [SKIP][120] ([Intel XE#2322] / [Intel XE#7372]) +3 other tests skip
   [120]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html
    - shard-ptl:          NOTRUN -> [SKIP][121] ([Intel XE#5575] / [Intel XE#7484]) +3 other tests skip
   [121]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@xe_exec_basic@multigpu-many-execqueues-many-vm-bindexecqueue-userptr.html

  * igt@xe_exec_fault_mode@many-execqueues-multi-queue-imm:
    - shard-bmg:          NOTRUN -> [SKIP][122] ([Intel XE#8374]) +7 other tests skip
   [122]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-8/igt@xe_exec_fault_mode@many-execqueues-multi-queue-imm.html

  * igt@xe_exec_fault_mode@many-multi-queue-userptr-prefetch:
    - shard-ptl:          NOTRUN -> [SKIP][123] ([Intel XE#8374]) +7 other tests skip
   [123]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@xe_exec_fault_mode@many-multi-queue-userptr-prefetch.html

  * igt@xe_exec_multi_queue@exec-sanity:
    - shard-ptl:          NOTRUN -> [SKIP][124] ([Intel XE#8364]) +13 other tests skip
   [124]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@xe_exec_multi_queue@exec-sanity.html

  * igt@xe_exec_multi_queue@max-queues-basic:
    - shard-bmg:          NOTRUN -> [SKIP][125] ([Intel XE#8364]) +17 other tests skip
   [125]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-8/igt@xe_exec_multi_queue@max-queues-basic.html

  * igt@xe_exec_reset@multi-queue-cat-error-on-secondary:
    - shard-ptl:          NOTRUN -> [SKIP][126] ([Intel XE#8369])
   [126]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@xe_exec_reset@multi-queue-cat-error-on-secondary.html

  * igt@xe_exec_system_allocator@threads-many-execqueues-mmap-remap-ro:
    - shard-bmg:          NOTRUN -> [SKIP][127] ([Intel XE#8589]) +1 other test skip
   [127]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_exec_system_allocator@threads-many-execqueues-mmap-remap-ro.html

  * igt@xe_exec_threads@threads-bal-shared-vm-userptr-rebind:
    - shard-bmg:          [PASS][128] -> [SKIP][129] ([Intel XE#8589]) +2 other tests skip
   [128]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-8/igt@xe_exec_threads@threads-bal-shared-vm-userptr-rebind.html
   [129]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_exec_threads@threads-bal-shared-vm-userptr-rebind.html

  * igt@xe_exec_threads@threads-multi-queue-mixed-shared-vm-userptr-rebind:
    - shard-bmg:          NOTRUN -> [SKIP][130] ([Intel XE#8378]) +7 other tests skip
   [130]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-9/igt@xe_exec_threads@threads-multi-queue-mixed-shared-vm-userptr-rebind.html

  * igt@xe_exec_threads@threads-multi-queue-userptr-rebind:
    - shard-ptl:          NOTRUN -> [SKIP][131] ([Intel XE#8378]) +4 other tests skip
   [131]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@xe_exec_threads@threads-multi-queue-userptr-rebind.html

  * igt@xe_madvise@atomic-cpu:
    - shard-ptl:          NOTRUN -> [SKIP][132] ([Intel XE#7980])
   [132]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@xe_madvise@atomic-cpu.html

  * igt@xe_mmap@vram:
    - shard-ptl:          NOTRUN -> [SKIP][133] ([Intel XE#5776])
   [133]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-6/igt@xe_mmap@vram.html

  * igt@xe_multigpu_svm@mgpu-coherency-prefetch:
    - shard-ptl:          NOTRUN -> [SKIP][134] ([Intel XE#6964])
   [134]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-8/igt@xe_multigpu_svm@mgpu-coherency-prefetch.html

  * igt@xe_multigpu_svm@mgpu-pagefault-prefetch:
    - shard-bmg:          NOTRUN -> [SKIP][135] ([Intel XE#6964])
   [135]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@xe_multigpu_svm@mgpu-pagefault-prefetch.html

  * igt@xe_page_reclaim@random:
    - shard-ptl:          NOTRUN -> [SKIP][136] ([Intel XE#7793]) +1 other test skip
   [136]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-3/igt@xe_page_reclaim@random.html
    - shard-bmg:          NOTRUN -> [SKIP][137] ([Intel XE#7793])
   [137]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-3/igt@xe_page_reclaim@random.html

  * igt@xe_pat@xa-app-transient-media-off:
    - shard-bmg:          NOTRUN -> [SKIP][138] ([Intel XE#7590]) +1 other test skip
   [138]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_pat@xa-app-transient-media-off.html
    - shard-ptl:          NOTRUN -> [SKIP][139] ([Intel XE#7590])
   [139]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@xe_pat@xa-app-transient-media-off.html

  * igt@xe_pm@s3-d3hot-basic-exec:
    - shard-ptl:          NOTRUN -> [SKIP][140] ([Intel XE#6867])
   [140]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-2/igt@xe_pm@s3-d3hot-basic-exec.html

  * igt@xe_pm@s4-exec-after:
    - shard-lnl:          [PASS][141] -> [ABORT][142] ([Intel XE#9362])
   [141]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-7/igt@xe_pm@s4-exec-after.html
   [142]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-5/igt@xe_pm@s4-exec-after.html

  * igt@xe_pm_residency@gt-c6-freeze@gt0:
    - shard-bmg:          [PASS][143] -> [FAIL][144] ([Intel XE#9254])
   [143]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-7/igt@xe_pm_residency@gt-c6-freeze@gt0.html
   [144]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@xe_pm_residency@gt-c6-freeze@gt0.html

  * igt@xe_prefetch_fault@prefetch-fault-svm:
    - shard-ptl:          NOTRUN -> [SKIP][145] ([Intel XE#7599])
   [145]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-4/igt@xe_prefetch_fault@prefetch-fault-svm.html

  * igt@xe_pxp@pxp-stale-queue-post-termination-irq:
    - shard-bmg:          NOTRUN -> [SKIP][146] ([Intel XE#4733] / [Intel XE#7417]) +3 other tests skip
   [146]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_pxp@pxp-stale-queue-post-termination-irq.html

  * igt@xe_query@multigpu-query-mem-usage:
    - shard-bmg:          NOTRUN -> [SKIP][147] ([Intel XE#944])
   [147]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-3/igt@xe_query@multigpu-query-mem-usage.html

  * igt@xe_vm@overcommit-fault-vram-lr-no-overcommit:
    - shard-ptl:          NOTRUN -> [SKIP][148] ([Intel XE#9597]) +1 other test skip
   [148]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-ptl-1/igt@xe_vm@overcommit-fault-vram-lr-no-overcommit.html

  
#### Possible fixes ####

  * igt@kms_cursor_legacy@flip-vs-cursor-atomic:
    - shard-bmg:          [FAIL][149] ([Intel XE#7809]) -> [PASS][150]
   [149]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-8/igt@kms_cursor_legacy@flip-vs-cursor-atomic.html
   [150]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_cursor_legacy@flip-vs-cursor-atomic.html

  * igt@kms_flip@flip-vs-absolute-wf_vblank:
    - shard-lnl:          [FAIL][151] ([Intel XE#5408] / [Intel XE#6266]) -> [PASS][152] +1 other test pass
   [151]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-4/igt@kms_flip@flip-vs-absolute-wf_vblank.html
   [152]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-4/igt@kms_flip@flip-vs-absolute-wf_vblank.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1:
    - shard-lnl:          [FAIL][153] ([Intel XE#301] / [Intel XE#3149]) -> [PASS][154]
   [153]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-2/igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1.html
   [154]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-8/igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1.html

  * igt@kms_flip@flip-vs-expired-vblank@a-edp1:
    - shard-lnl:          [FAIL][155] ([Intel XE#301]) -> [PASS][156] +1 other test pass
   [155]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-2/igt@kms_flip@flip-vs-expired-vblank@a-edp1.html
   [156]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-2/igt@kms_flip@flip-vs-expired-vblank@a-edp1.html

  * igt@kms_hdmi_audio_bw@audio-bw-hblank160:
    - shard-bmg:          [FAIL][157] ([Intel XE#9313]) -> [PASS][158]
   [157]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-7/igt@kms_hdmi_audio_bw@audio-bw-hblank160.html
   [158]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@kms_hdmi_audio_bw@audio-bw-hblank160.html

  * igt@xe_configfs@ctx-restore-post-bb-invalid:
    - shard-bmg:          [ABORT][159] ([Intel XE#9463]) -> [PASS][160]
   [159]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-4/igt@xe_configfs@ctx-restore-post-bb-invalid.html
   [160]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_configfs@ctx-restore-post-bb-invalid.html

  * igt@xe_pm_residency@gt-c6-freeze@gt1:
    - shard-bmg:          [FAIL][161] ([Intel XE#9254]) -> [PASS][162] +1 other test pass
   [161]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-7/igt@xe_pm_residency@gt-c6-freeze@gt1.html
   [162]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-7/igt@xe_pm_residency@gt-c6-freeze@gt1.html

  * igt@xe_pm_residency@idle-residency@gt0:
    - shard-bmg:          [FAIL][163] -> [PASS][164]
   [163]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-1/igt@xe_pm_residency@idle-residency@gt0.html
   [164]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_pm_residency@idle-residency@gt0.html

  * igt@xe_sriov_flr@flr-twice:
    - shard-bmg:          [FAIL][165] ([Intel XE#6569]) -> [PASS][166]
   [165]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-5/igt@xe_sriov_flr@flr-twice.html
   [166]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-1/igt@xe_sriov_flr@flr-twice.html

  
#### Warnings ####

  * igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lim-lut1d:
    - shard-bmg:          [SKIP][167] ([Intel XE#7358]) -> [SKIP][168] ([Intel XE#8589])
   [167]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-6/igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lim-lut1d.html
   [168]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@kms_chamelium_color_pipeline@plane-fixed-matrix-yuv-rgb-bt2020-lim-lut1d.html

  * igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions:
    - shard-lnl:          [SKIP][169] ([Intel XE#309] / [Intel XE#7343]) -> [SKIP][170] ([Intel XE#309] / [Intel XE#7343] / [Intel XE#7935])
   [169]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-3/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions.html
   [170]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-8/igt@kms_cursor_legacy@cursorb-vs-flipb-atomic-transitions.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible:
    - shard-lnl:          [FAIL][171] ([Intel XE#301] / [Intel XE#3149]) -> [FAIL][172] ([Intel XE#301])
   [171]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-lnl-2/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
   [172]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-lnl-8/igt@kms_flip@flip-vs-expired-vblank-interruptible.html

  * igt@kms_hdmi_audio_bw@suspend-disk-audio-recovery:
    - shard-bmg:          [FAIL][173] ([Intel XE#9319] / [Intel XE#9346]) -> [FAIL][174] ([Intel XE#9346])
   [173]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-4/igt@kms_hdmi_audio_bw@suspend-disk-audio-recovery.html
   [174]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-4/igt@kms_hdmi_audio_bw@suspend-disk-audio-recovery.html

  * igt@kms_hdr@brightness-with-hdr:
    - shard-bmg:          [SKIP][175] ([Intel XE#3544]) -> [SKIP][176] ([Intel XE#3374] / [Intel XE#3544])
   [175]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-1/igt@kms_hdr@brightness-with-hdr.html
   [176]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-2/igt@kms_hdr@brightness-with-hdr.html

  * igt@kms_tiled_display@basic-test-pattern:
    - shard-bmg:          [FAIL][177] ([Intel XE#1729] / [Intel XE#7424]) -> [SKIP][178] ([Intel XE#2426] / [Intel XE#5848])
   [177]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-1/igt@kms_tiled_display@basic-test-pattern.html
   [178]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-6/igt@kms_tiled_display@basic-test-pattern.html

  * igt@xe_exec_threads@threads-multi-queue-cm-basic:
    - shard-bmg:          [SKIP][179] ([Intel XE#8378]) -> [SKIP][180] ([Intel XE#8589])
   [179]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9177/shard-bmg-10/igt@xe_exec_threads@threads-multi-queue-cm-basic.html
   [180]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/shard-bmg-5/igt@xe_exec_threads@threads-multi-queue-cm-basic.html

  
  [Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
  [Intel XE#1131]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1131
  [Intel XE#1138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1138
  [Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
  [Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
  [Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
  [Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
  [Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
  [Intel XE#1727]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1727
  [Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
  [Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
  [Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
  [Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
  [Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
  [Intel XE#2316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2316
  [Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
  [Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
  [Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
  [Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
  [Intel XE#2328]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2328
  [Intel XE#2330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2330
  [Intel XE#2370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2370
  [Intel XE#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
  [Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
  [Intel XE#2763]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2763
  [Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
  [Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
  [Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
  [Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
  [Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
  [Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
  [Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
  [Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432
  [Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
  [Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
  [Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718
  [Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
  [Intel XE#4156]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4156
  [Intel XE#4227]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4227
  [Intel XE#4422]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4422
  [Intel XE#4596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4596
  [Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
  [Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
  [Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
  [Intel XE#5408]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5408
  [Intel XE#5575]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5575
  [Intel XE#5764]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5764
  [Intel XE#5776]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5776
  [Intel XE#5800]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5800
  [Intel XE#5808]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5808
  [Intel XE#5812]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5812
  [Intel XE#5813]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5813
  [Intel XE#5822]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5822
  [Intel XE#5824]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5824
  [Intel XE#5828]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5828
  [Intel XE#5835]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5835
  [Intel XE#5844]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5844
  [Intel XE#5845]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5845
  [Intel XE#5848]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5848
  [Intel XE#5849]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5849
  [Intel XE#5850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5850
  [Intel XE#5851]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5851
  [Intel XE#5854]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5854
  [Intel XE#5858]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5858
  [Intel XE#5900]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5900
  [Intel XE#5901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5901
  [Intel XE#5907]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5907
  [Intel XE#5910]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5910
  [Intel XE#5917]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5917
  [Intel XE#5947]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5947
  [Intel XE#5962]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5962
  [Intel XE#6078]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6078
  [Intel XE#6174]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6174
  [Intel XE#6266]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6266
  [Intel XE#6312]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6312
  [Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
  [Intel XE#6569]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6569
  [Intel XE#6707]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6707
  [Intel XE#6814]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6814
  [Intel XE#6867]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6867
  [Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
  [Intel XE#6900]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6900
  [Intel XE#6901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6901
  [Intel XE#6911]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6911
  [Intel XE#6925]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6925
  [Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
  [Intel XE#6969]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6969
  [Intel XE#6974]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6974
  [Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
  [Intel XE#7084]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7084
  [Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
  [Intel XE#7179]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7179
  [Intel XE#7265]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7265
  [Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
  [Intel XE#7304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7304
  [Intel XE#7343]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7343
  [Intel XE#7344]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7344
  [Intel XE#7348]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7348
  [Intel XE#7349]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7349
  [Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351
  [Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
  [Intel XE#7358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7358
  [Intel XE#7367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7367
  [Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
  [Intel XE#7374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7374
  [Intel XE#7377]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7377
  [Intel XE#7397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7397
  [Intel XE#7413]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7413
  [Intel XE#7417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7417
  [Intel XE#7424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7424
  [Intel XE#7425]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7425
  [Intel XE#7428]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7428
  [Intel XE#7439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7439
  [Intel XE#7442]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7442
  [Intel XE#7466]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7466
  [Intel XE#7482]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7482
  [Intel XE#7484]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7484
  [Intel XE#7590]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7590
  [Intel XE#7591]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7591
  [Intel XE#7599]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7599
  [Intel XE#7642]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7642
  [Intel XE#7679]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7679
  [Intel XE#7774]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7774
  [Intel XE#7793]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7793
  [Intel XE#7809]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7809
  [Intel XE#7865]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7865
  [Intel XE#7935]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7935
  [Intel XE#7980]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7980
  [Intel XE#8150]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8150
  [Intel XE#8265]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8265
  [Intel XE#8303]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8303
  [Intel XE#8364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8364
  [Intel XE#8369]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8369
  [Intel XE#8374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8374
  [Intel XE#8378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8378
  [Intel XE#8589]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8589
  [Intel XE#8680]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8680
  [Intel XE#9254]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9254
  [Intel XE#9271]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9271
  [Intel XE#9313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9313
  [Intel XE#9319]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9319
  [Intel XE#9346]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9346
  [Intel XE#9362]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9362
  [Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
  [Intel XE#9463]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9463
  [Intel XE#9527]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9527
  [Intel XE#9532]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9532
  [Intel XE#9534]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9534
  [Intel XE#9535]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9535
  [Intel XE#9597]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9597


Build changes
-------------

  * IGT: IGT_9177 -> IGTPW_16098
  * Linux: xe-6058-34c3200b517db45a621c4963d87759823be13bbd -> xe-6059-d11bbfdac0f3d443b367857ffe683ae6bb80d560

  IGTPW_16098: 16098
  IGT_9177: 9177
  xe-6058-34c3200b517db45a621c4963d87759823be13bbd: 34c3200b517db45a621c4963d87759823be13bbd
  xe-6059-d11bbfdac0f3d443b367857ffe683ae6bb80d560: d11bbfdac0f3d443b367857ffe683ae6bb80d560

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16098/index.html

[-- Attachment #2: Type: text/html, Size: 75490 bytes --]

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

* Re: [PATCH v2 5/8] tests/intel/xe_oa: Check vm_ops->access on OA buffer mmaps across unbind
  2026-11-04  0:55 ` [PATCH v2 5/8] tests/intel/xe_oa: Check vm_ops->access on " Umesh Nerlige Ramappa
@ 2026-11-26  5:55   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  5:55 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> The OA buffer mapping is VM_PFNMAP, so reading it through
> /proc/self/mem goes through the vm_ops->access() of the mapping. Check
> that this works before unbind and fails with EIO after, since access is
> refused once the device is unplugged.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> ---
>   tests/intel/xe_oa.c | 38 ++++++++++++++++++++++++++++++++++++--
>   1 file changed, 36 insertions(+), 2 deletions(-)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index e4b63c982200..8474d506612b 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -2831,6 +2831,26 @@ static void probe_stream_after_removal(int fd, const char *when)
>   	igt_assert_eq(err, ENODEV);
>   }
>   
> +/*
> + * Read through /proc/self/mem. The OA buffer mapping is VM_PFNMAP, so this goes through
> + * the vm_ops->access() of the mapping rather than through its page tables.
> + */
> +static ssize_t read_proc_self_mem(const void *vaddr, void *buf, size_t len)
> +{
> +	ssize_t ret;
> +	int fd, err;
> +
> +	fd = open("/proc/self/mem", O_RDONLY);
> +	igt_assert_lte(0, fd);
> +
> +	ret = pread(fd, buf, len, (off_t)(uintptr_t)vaddr);
> +	err = errno;
> +	close(fd);
> +	errno = err;
> +
> +	return ret;
> +}
> +
>   static bool mem_is_zero(const void *vaddr, size_t len)
>   {
>   	const uint8_t *p = vaddr;
> @@ -2868,6 +2888,7 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
>   	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
>   	uint64_t fmt = test_set->perf_oa_format;
>   	struct drm_xe_oa_stream_info info = {};
> +	uint32_t val;
>   	int n = 0;
>   
>   	s->oa_unit_id = oau->oa_unit_id;
> @@ -2899,6 +2920,9 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
>   
>   	/* Fault in the mapping while the device is still bound */
>   	(void)READ_ONCE(*(const volatile uint32_t *)s->vaddr);
> +
> +	/* vm_ops->access() works on the mapping while the device is bound */
> +	igt_assert_eq(read_proc_self_mem(s->vaddr, &val, sizeof(val)), sizeof(val));
>   }
>   
>   static void unbind_stream_close(struct unbind_stream *s)
> @@ -2931,6 +2955,8 @@ static void unbind_stream_check_live(struct unbind_stream *s)
>   static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
>   {
>   	size_t page_size = sysconf(_SC_PAGESIZE);
> +	uint32_t val;
> +	ssize_t ret;
>   	void *vaddr;
>   
>   	igt_debug("[%s] checking stream on oa unit %d\n", when, s->oa_unit_id);
> @@ -2944,6 +2970,13 @@ static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
>   	igt_assert(mem_is_zero(s->vaddr, page_size));
>   	igt_assert(mem_is_zero((uint8_t *)s->vaddr + s->size - page_size, page_size));
>   
> +	/* vm_ops->access() on the mapping is refused once the device is gone */
> +	ret = read_proc_self_mem(s->vaddr, &val, sizeof(val));
> +	igt_debug("[%s] /proc/self/mem read: ret=%zd errno=%s\n", when, ret,
> +		  ret < 0 ? strerror(errno) : "-");

In patch 2, and even in this patch (at the top), we're always saving 
errno.  Can we do the same here?  Like, err = errno?

-shekhar

> +	igt_assert_eq(ret, -1);
> +	igt_assert_eq(errno, EIO);
> +
>   	/* New mappings are refused */
>   	vaddr = mmap(NULL, s->size, PROT_READ, MAP_PRIVATE, s->fd, 0);
>   	igt_assert(vaddr == MAP_FAILED);
> @@ -2986,8 +3019,9 @@ static void unbind_rebind_recover(void)
>   /**
>    * SUBTEST: unbind-rebind-stream
>    * Description: Open OA streams with mmapped OA buffers and test the effects of unbind
> - *		and rebind: streams die, mmaps read a zeroed dummy page, no new streams can
> - *		be opened on the removed device and the device works after rebind.
> + *		and rebind: streams die, mmaps read a zeroed dummy page and refuse access
> + *		through /proc/self/mem, no new streams can be opened on the removed device
> + *		and the device works after rebind.
>    */
>   static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
>   {

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

* Re: [PATCH v2 6/8] tests/intel/xe_oa: Check that blocked OA stream waiters are woken up on unbind
  2026-11-04  0:55 ` [PATCH v2 6/8] tests/intel/xe_oa: Check that blocked OA stream waiters are woken up on unbind Umesh Nerlige Ramappa
@ 2026-11-26  6:42   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  6:42 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> Add a variant that opens the stream disabled. A disabled stream
> produces no OA data, so a reader blocked in read() and a poller blocked
> in poll() stay blocked until the stream dies. Check that unbind wakes
> them up with ENODEV and POLLERR | POLLHUP.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> ---
>   tests/intel/xe_oa.c | 137 ++++++++++++++++++++++++++++++++++++++++++--
>   1 file changed, 131 insertions(+), 6 deletions(-)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index 8474d506612b..f1fe5f44c408 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -17,6 +17,7 @@
>   #include <dirent.h>
>   #include <time.h>
>   #include <poll.h>
> +#include <pthread.h>
>   #include <math.h>
>   
>   #include "drm.h"
> @@ -2864,6 +2865,7 @@ static bool mem_is_zero(const void *vaddr, size_t len)
>   }
>   
>   #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
> +#define UNBIND_STREAM_DISABLED		(1 << 1)
>   
>   #define UNBIND_MAX_STREAMS	16
>   
> @@ -2878,12 +2880,25 @@ struct unbind_stream {
>   	size_t size;
>   };
>   
> +struct unbind_waiter {
> +	pthread_t thread;
> +	int fd;
> +	size_t report_size;
> +	int ret;
> +	int err;
> +	short revents;
> +};
> +
>   static char unbind_pci_slot[NAME_MAX];
>   static bool unbind_state_stale;
>   static struct unbind_stream unbind_streams[UNBIND_MAX_STREAMS];
>   static int unbind_num_streams;
> +static struct unbind_waiter unbind_reader_waiter, unbind_poller_waiter;
> +static bool unbind_waiters_started;
> +static volatile bool unbind_waiters_stop;
>   
> -static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau)
> +static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau,
> +			       unsigned int flags)
>   {
>   	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
>   	uint64_t fmt = test_set->perf_oa_format;
> @@ -2904,6 +2919,10 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
>   	s->properties[n++] = __ff(fmt);
>   	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_PERIOD_EXPONENT;
>   	s->properties[n++] = oa_exponent_default;
> +	if (flags & UNBIND_STREAM_DISABLED) {
> +		s->properties[n++] = DRM_XE_OA_PROPERTY_OA_DISABLED;
> +		s->properties[n++] = true;
> +	}
>   	igt_assert_lte(n, ARRAY_SIZE(s->properties));
>   
>   	s->param.num_properties = n / 2;
> @@ -2983,6 +3002,93 @@ static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
>   	igt_assert_eq(errno, ENODEV);
>   }
>   
> +/*
> + * Blocking read until it fails. Run on a disabled stream, which produces no OA data, so the
> + * read blocks until the stream dies.
> + */
> +static void *unbind_reader(void *arg)
> +{
> +	struct unbind_waiter *w = arg;
> +	size_t size = w->report_size * 64;
> +	uint8_t *buf = malloc(size);
> +
> +	/* No igt_assert outside the main thread, report through the waiter result */
> +	if (!buf) {
> +		w->ret = -1;
> +		w->err = ENOMEM;
> +		return NULL;
> +	}
> +
> +	do {
> +		w->ret = read(w->fd, buf, size);
> +		w->err = errno;
> +	} while (!unbind_waiters_stop &&
> +		 (w->ret > 0 || (w->ret < 0 && (w->err == EINTR || w->err == EIO))));
> +
> +	free(buf);
> +	return NULL;
> +}
> +
> +/* Poll until the stream reports an error, also on a disabled stream so it blocks */
> +static void *unbind_poller(void *arg)
> +{
> +	struct unbind_waiter *w = arg;
> +	struct pollfd pfd = { .fd = w->fd, .events = POLLIN };
> +
> +	do {
> +		pfd.revents = 0;
> +		w->ret = poll(&pfd, 1, -1);
> +		w->err = errno;
> +	} while (!unbind_waiters_stop &&
> +		 ((w->ret > 0 && !(pfd.revents & (POLLERR | POLLHUP))) ||
> +		  (w->ret < 0 && w->err == EINTR)));
> +
> +	w->revents = pfd.revents;
> +	return NULL;
> +}
> +
> +static void unbind_waiters_start(struct unbind_stream *s)
> +{
> +	struct unbind_waiter *reader = &unbind_reader_waiter, *poller = &unbind_poller_waiter;
> +
> +	memset(reader, 0, sizeof(*reader));
> +	memset(poller, 0, sizeof(*poller));
> +	reader->fd = s->fd;
> +	poller->fd = s->fd;
> +	reader->report_size = s->report_size;
> +	unbind_waiters_stop = false;
> +
> +	igt_assert_eq(pthread_create(&reader->thread, NULL, unbind_reader, reader), 0);
> +	if (pthread_create(&poller->thread, NULL, unbind_poller, poller)) {
> +		unbind_waiters_stop = true;
> +		pthread_join(reader->thread, NULL);
> +		igt_assert_f(false, "failed to create poller thread\n");
> +	}
> +	unbind_waiters_started = true;
> +
> +	/* Let the waiters block */
> +	usleep(100 * 1000);
> +}
> +
> +static void unbind_waiters_join(void)
> +{
> +	struct unbind_waiter *reader = &unbind_reader_waiter, *poller = &unbind_poller_waiter;
> +
> +	igt_set_timeout(60, "OA stream waiters not woken up on unbind");
> +	pthread_join(reader->thread, NULL);
> +	pthread_join(poller->thread, NULL);
> +	unbind_waiters_started = false;
> +	igt_reset_timeout();
> +
> +	igt_debug("reader: ret=%d errno=%s\n", reader->ret, strerror(reader->err));
> +	igt_assert_eq(reader->ret, -1);
> +	igt_assert_eq(reader->err, ENODEV);
> +
> +	igt_debug("poller: ret=%d revents=0x%x\n", poller->ret, poller->revents);
> +	igt_assert_eq(poller->ret, 1);
> +	igt_assert_eq(poller->revents, POLLERR | POLLHUP);
> +}
> +
>   /*
>    * Restore a bound device and fresh device state if an unbind/rebind test bailed out
>    * half way, so the remaining subtests can run.
> @@ -2992,6 +3098,13 @@ static void unbind_rebind_recover(void)
>   	char path[PATH_MAX];
>   	int i;
>   
> +	if (unbind_waiters_started) {
> +		unbind_waiters_stop = true;
> +		pthread_join(unbind_reader_waiter.thread, NULL);
> +		pthread_join(unbind_poller_waiter.thread, NULL);
> +		unbind_waiters_started = false;
> +	}

If unbind fails for any reason, then both threads are still blocked 
inside read() or poll().  So, setting unbind_waiters_stop = true, won't 
wake them up.  And, pthread_join() will hang forever.  To avoid this, 
can we instead call pthread_cancel() before pthread_join() so that they 
wake up?

-shekhar

> +
>   	for (i = 0; i < unbind_num_streams; i++) {
>   		struct unbind_stream *s = &unbind_streams[i];
>   
> @@ -3019,24 +3132,32 @@ static void unbind_rebind_recover(void)
>   /**
>    * SUBTEST: unbind-rebind-stream
>    * Description: Open OA streams with mmapped OA buffers and test the effects of unbind
> - *		and rebind: streams die, mmaps read a zeroed dummy page and refuse access
> - *		through /proc/self/mem, no new streams can be opened on the removed device
> - *		and the device works after rebind.
> + *		and rebind: streams die, waiters are woken up, mmaps read a zeroed dummy
> + *		page and refuse access through /proc/self/mem, no new streams can be
> + *		opened on the removed device and the device works after rebind.
>    */
>   static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
>   {
>   	struct unbind_stream *streams = unbind_streams;
>   	struct unbind_stream *primary = &streams[0];
> +	bool disabled = flags & UNBIND_STREAM_DISABLED;
>   	int ret, i;
>   
>   	igt_device_get_pci_slot_name(drm_fd, unbind_pci_slot);
>   	igt_debug("Device %s\n", unbind_pci_slot);
>   
>   	unbind_num_streams = 0;
> -	unbind_stream_open(&streams[unbind_num_streams++], oau0);
> +	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags);
>   	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
>   
> -	unbind_stream_check_live(primary);
> +	/*
> +	 * A disabled stream produces no OA data, so a reader and a poller stay blocked on it
> +	 * until unbind kills the stream
> +	 */
> +	if (disabled)
> +		unbind_waiters_start(primary);
> +	else
> +		unbind_stream_check_live(primary);
>   
>   	/* Guard against a wedged unbind/bind */
>   	igt_set_timeout(60, "xe unbind timed out (wedged?)");
> @@ -3047,6 +3168,9 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
>   	igt_reset_timeout();
>   	igt_assert_f(ret == 0, "xe unbind failed: %s\n", strerror(-ret));
>   
> +	if (disabled)
> +		unbind_waiters_join();
> +
>   	for (i = 0; i < unbind_num_streams; i++)
>   		unbind_stream_check_dead(&streams[i], "after-unbind");
>   
> @@ -5566,6 +5690,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
>   		} unbind_variants[] = {
>   			{ "close", UNBIND_CLOSE_BEFORE_REBIND },
>   			{ "open", 0 },
> +			{ "disabled", UNBIND_STREAM_DISABLED },
>   		};
>   
>   		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

* Re: [PATCH v2 8/8] tests/intel/xe_oa: Add an all OA units variant to the unbind/rebind test
  2026-11-04  0:55 ` [PATCH v2 8/8] tests/intel/xe_oa: Add an all OA units " Umesh Nerlige Ramappa
@ 2026-11-26  7:06   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  7:06 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> Open a stream with a mmapped OA buffer on every OA unit, so that unbind
> quiesces streams on all GTs and OA units at once, and run all checks on
> each of them.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> ---
>   tests/intel/xe_oa.c | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index ffc1971cb361..4eb0b13f00b1 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -2867,6 +2867,7 @@ static bool mem_is_zero(const void *vaddr, size_t len)
>   #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
>   #define UNBIND_STREAM_DISABLED		(1 << 1)
>   #define UNBIND_EXEC_QUEUE		(1 << 2)
> +#define UNBIND_ALL_UNITS		(1 << 3)
>   
>   #define UNBIND_MAX_STREAMS	16
>   
> @@ -3152,6 +3153,7 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
>   	struct unbind_stream *primary = &streams[0];
>   	const struct drm_xe_engine_class_instance *hwe = NULL;
>   	bool disabled = flags & UNBIND_STREAM_DISABLED;
> +	const struct drm_xe_oa_unit *oau;
>   	uint32_t vm, exec_q = 0;
>   	int ret, i;
>   
> @@ -3166,6 +3168,14 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
>   
>   	unbind_num_streams = 0;
>   	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags, exec_q, hwe);
> +	if (flags & UNBIND_ALL_UNITS) {
> +		for_each_oa_unit(oau) {
> +			if (oau->oa_unit_id == oau0->oa_unit_id)
> +				continue;
> +			igt_assert_lt(unbind_num_streams, UNBIND_MAX_STREAMS);
> +			unbind_stream_open(&streams[unbind_num_streams++], oau, flags, 0, NULL);
> +		}
> +	}
>   	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
Right after this, from the previous patch, we have:

     if (disabled)
         unbind_waiters_start(primary);
     else
         unbind_stream_check_live(primary);

and, here we only check the primary stream.  In other places in previous 
patches, we have a 'for' loop to traverse over all the streams.  Can we 
have a for loop here as well to traverse all the streams (which is what 
the commit descr and the code here tries to do).

-shekhar

>   
>   	/*
> @@ -5713,6 +5723,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
>   			{ "open", 0 },
>   			{ "disabled", UNBIND_STREAM_DISABLED },
>   			{ "exec-queue", UNBIND_EXEC_QUEUE },
> +			{ "all-units", UNBIND_ALL_UNITS },
>   		};
>   
>   		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

* Re: [PATCH v2 2/8] tests/intel/xe_oa: Add unbind/rebind test with an open OA stream
  2026-11-04  0:55 ` [PATCH v2 2/8] tests/intel/xe_oa: Add unbind/rebind test with an open OA stream Umesh Nerlige Ramappa
@ 2026-11-26  7:09   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  7:09 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> Open an OA stream, unbind and rebind the xe device, and check the
> stream fd after removal and after the rebind: poll reports
> POLLERR | POLLHUP, and read and the stream ioctls fail with ENODEV.
>
> Run variants that close the stream before or after the rebind. Rebuild
> the device state after the rebind, or after a failed variant, so that
> the remaining subtests run.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

LGTM,

Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>

> ---
>   tests/intel/xe_oa.c | 239 ++++++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 239 insertions(+)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index 8758ab15bf46..046d57c3f4e8 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -22,6 +22,7 @@
>   #include "drm.h"
>   #include "igt.h"
>   #include "igt_device.h"
> +#include "igt_pci.h"
>   #include "igt_syncobj.h"
>   #include "igt_sysfs.h"
>   #include "xe/xe_ioctl.h"
> @@ -2778,6 +2779,225 @@ test_enable_disable(const struct drm_xe_oa_unit *oau)
>   	__perf_close(stream_fd);
>   }
>   
> +/*
> + * The stream fd of a removed device stays valid but the stream is dead: poll reports
> + * POLLERR | POLLHUP and read and all stream ioctls fail with -ENODEV. This holds after
> + * rebind too, since the stream belongs to the removed device instance.
> + */
> +static void probe_stream_after_removal(int fd, const char *when)
> +{
> +	struct drm_xe_oa_stream_info info = {};
> +	uint8_t buf[4096];
> +	struct pollfd pfd = { .fd = fd, .events = POLLIN };
> +	int ret, err;
> +
> +	ret = poll(&pfd, 1, 1000);
> +	err = errno;
> +	igt_debug("[%s] poll: ret=%d revents=0x%x errno=%s\n", when, ret, pfd.revents,
> +		  ret < 0 ? strerror(err) : "-");
> +	igt_assert_eq(ret, 1);
> +	igt_assert_eq(pfd.revents, POLLERR | POLLHUP);
> +
> +	errno = 0;
> +	ret = read(fd, buf, sizeof(buf));
> +	err = errno;
> +	igt_debug("[%s] read: ret=%d errno=%s\n", when, ret, ret < 0 ? strerror(err) : "-");
> +	igt_assert_eq(ret, -1);
> +	igt_assert_eq(err, ENODEV);
> +
> +	errno = 0;
> +	ret = igt_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_INFO, &info);
> +	err = errno;
> +	igt_debug("[%s] ioctl INFO: ret=%d errno=%s oa_buf_size=%" PRIu64 "\n", when, ret,
> +		  ret < 0 ? strerror(err) : "-", (uint64_t)info.oa_buf_size);
> +	igt_assert_eq(ret, -1);
> +	igt_assert_eq(err, ENODEV);
> +	igt_assert_eq_u64(info.oa_buf_size, 0);
> +
> +	errno = 0;
> +	ret = igt_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_DISABLE, 0);
> +	err = errno;
> +	igt_debug("[%s] ioctl DISABLE: ret=%d errno=%s\n", when, ret,
> +		  ret < 0 ? strerror(err) : "-");
> +	igt_assert_eq(ret, -1);
> +	igt_assert_eq(err, ENODEV);
> +
> +	errno = 0;
> +	ret = igt_ioctl(fd, DRM_XE_OBSERVATION_IOCTL_ENABLE, 0);
> +	err = errno;
> +	igt_debug("[%s] ioctl ENABLE: ret=%d errno=%s\n", when, ret,
> +		  ret < 0 ? strerror(err) : "-");
> +	igt_assert_eq(ret, -1);
> +	igt_assert_eq(err, ENODEV);
> +}
> +
> +#define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
> +
> +#define UNBIND_MAX_STREAMS	16
> +
> +struct unbind_stream {
> +	/* Not a drm_xe_oa_unit pointer, the query data is freed on unbind */
> +	int oa_unit_id;
> +	uint64_t properties[20];
> +	struct intel_xe_oa_open_prop param;
> +	size_t report_size;
> +	int fd;
> +};
> +
> +static char unbind_pci_slot[NAME_MAX];
> +static bool unbind_state_stale;
> +static struct unbind_stream unbind_streams[UNBIND_MAX_STREAMS];
> +static int unbind_num_streams;
> +
> +static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau)
> +{
> +	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
> +	uint64_t fmt = test_set->perf_oa_format;
> +	int n = 0;
> +
> +	s->oa_unit_id = oau->oa_unit_id;
> +	s->fd = -1;
> +	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_UNIT_ID;
> +	s->properties[n++] = oau->oa_unit_id;
> +	s->properties[n++] = DRM_XE_OA_PROPERTY_SAMPLE_OA;
> +	s->properties[n++] = true;
> +	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_METRIC_SET;
> +	s->properties[n++] = test_set->perf_oa_metrics_set;
> +	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_FORMAT;
> +	s->properties[n++] = __ff(fmt);
> +	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_PERIOD_EXPONENT;
> +	s->properties[n++] = oa_exponent_default;
> +	igt_assert_lte(n, ARRAY_SIZE(s->properties));
> +
> +	s->param.num_properties = n / 2;
> +	s->param.properties_ptr = to_user_pointer(s->properties);
> +	s->report_size = get_oa_format(fmt).size;
> +
> +	s->fd = intel_xe_perf_ioctl(drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, &s->param);
> +	igt_assert_lte(0, s->fd);
> +}
> +
> +static void unbind_stream_close(struct unbind_stream *s)
> +{
> +	close(s->fd);
> +	s->fd = -1;
> +}
> +
> +/* Make sure the stream is live before pulling the device */
> +static void unbind_stream_check_live(struct unbind_stream *s)
> +{
> +	struct pollfd pfd = { .fd = s->fd, .events = POLLIN };
> +	uint8_t buf[s->report_size * 4];
> +	int ret;
> +
> +	igt_assert_lt(0, poll(&pfd, 1, 2000));
> +	ret = read(s->fd, buf, sizeof(buf));
> +	igt_debug("Pre-unbind read: ret=%d\n", ret);
> +	igt_assert_lt(0, ret);
> +}
> +
> +static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
> +{
> +	igt_debug("[%s] checking stream on oa unit %d\n", when, s->oa_unit_id);
> +
> +	probe_stream_after_removal(s->fd, when);
> +}
> +
> +/*
> + * Restore a bound device and fresh device state if an unbind/rebind test bailed out
> + * half way, so the remaining subtests can run.
> + */
> +static void unbind_rebind_recover(void)
> +{
> +	char path[PATH_MAX];
> +	int i;
> +
> +	for (i = 0; i < unbind_num_streams; i++) {
> +		struct unbind_stream *s = &unbind_streams[i];
> +
> +		if (s->fd >= 0)
> +			close(s->fd);
> +	}
> +	unbind_num_streams = 0;
> +
> +	if (!unbind_state_stale)
> +		return;
> +
> +	igt_info("Recovering xe on %s after failed unbind/rebind test\n", unbind_pci_slot);
> +	oa_device_fini();
> +
> +	snprintf(path, sizeof(path), "/sys/bus/pci/drivers/xe/%s", unbind_pci_slot);
> +	if (access(path, F_OK))
> +		igt_pci_driver_bind("xe", unbind_pci_slot);
> +
> +	oa_device_init();
> +	unbind_state_stale = false;
> +}
> +
> +/**
> + * SUBTEST: unbind-rebind-stream
> + * Description: Open an OA stream and test the effects of unbind and rebind: the stream
> + *		dies and the device works after rebind.
> + */
> +static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
> +{
> +	struct unbind_stream *streams = unbind_streams;
> +	struct unbind_stream *primary = &streams[0];
> +	int ret, i;
> +
> +	igt_device_get_pci_slot_name(drm_fd, unbind_pci_slot);
> +	igt_debug("Device %s\n", unbind_pci_slot);
> +
> +	unbind_num_streams = 0;
> +	unbind_stream_open(&streams[unbind_num_streams++], oau0);
> +	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
> +
> +	unbind_stream_check_live(primary);
> +
> +	/* Guard against a wedged unbind/bind */
> +	igt_set_timeout(60, "xe unbind timed out (wedged?)");
> +	igt_debug("Unbinding xe from %s with %d stream(s) open\n", unbind_pci_slot,
> +		  unbind_num_streams);
> +	unbind_state_stale = true;
> +	ret = igt_pci_driver_unbind("xe", unbind_pci_slot);
> +	igt_reset_timeout();
> +	igt_assert_f(ret == 0, "xe unbind failed: %s\n", strerror(-ret));
> +
> +	for (i = 0; i < unbind_num_streams; i++)
> +		unbind_stream_check_dead(&streams[i], "after-unbind");
> +
> +	if (flags & UNBIND_CLOSE_BEFORE_REBIND) {
> +		igt_set_timeout(60, "stream close timed out (wedged?)");
> +		for (i = 0; i < unbind_num_streams; i++)
> +			unbind_stream_close(&streams[i]);
> +		igt_reset_timeout();
> +	}
> +
> +	/* Drop all state of the removed device, the drm fd also refers to it */
> +	oa_device_fini();
> +
> +	igt_set_timeout(60, "xe bind timed out (wedged?)");
> +	igt_debug("Rebinding xe to %s\n", unbind_pci_slot);
> +	ret = igt_pci_driver_bind("xe", unbind_pci_slot);
> +	igt_reset_timeout();
> +	igt_assert_f(ret == 0, "xe bind failed: %s\n", strerror(-ret));
> +
> +	/* Restore state for the remaining subtests/fixtures */
> +	oa_device_init();
> +	unbind_state_stale = false;
> +
> +	if (!(flags & UNBIND_CLOSE_BEFORE_REBIND)) {
> +		for (i = 0; i < unbind_num_streams; i++)
> +			unbind_stream_check_dead(&streams[i], "after-rebind");
> +
> +		igt_set_timeout(60, "stream close timed out (wedged?)");
> +		for (i = 0; i < unbind_num_streams; i++)
> +			unbind_stream_close(&streams[i]);
> +		igt_reset_timeout();
> +	}
> +	unbind_num_streams = 0;
> +}
> +
>   /**
>    * SUBTEST: short-reads
>    * Description: Test behavior for short reads
> @@ -5251,6 +5471,25 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
>   		}
>   	}
>   
> +	igt_subtest_with_dynamic("unbind-rebind-stream") {
> +		const struct {
> +			const char *name;
> +			unsigned int flags;
> +		} unbind_variants[] = {
> +			{ "close", UNBIND_CLOSE_BEFORE_REBIND },
> +			{ "open", 0 },
> +		};
> +
> +		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {
> +			igt_dynamic_f("%s", unbind_variants[i].name)
> +				test_unbind_rebind(oau0, unbind_variants[i].flags);
> +
> +			/* Device state is rebuilt on rebind, or after a failed variant */
> +			unbind_rebind_recover();
> +			oau0 = oa_unit_by_id(drm_fd, 0);
> +		}
> +	}
> +
>   	igt_fixture() {
>   		oa_device_fini();
>   		disable_trace_log();

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

* Re: [PATCH v2 3/8] tests/intel/xe_oa: Check that a removed device can't open OA streams
  2026-11-04  0:55 ` [PATCH v2 3/8] tests/intel/xe_oa: Check that a removed device can't open OA streams Umesh Nerlige Ramappa
@ 2026-11-26  7:10   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  7:10 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> An OA ioctl that races with unbind must not reach OA once it is torn
> down. Check that STREAM_OPEN on the drm fd of the removed device fails
> with ENODEV.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

LGTM,

Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>

> ---
>   tests/intel/xe_oa.c | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index 046d57c3f4e8..e10b77bca1b2 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -2937,7 +2937,8 @@ static void unbind_rebind_recover(void)
>   /**
>    * SUBTEST: unbind-rebind-stream
>    * Description: Open an OA stream and test the effects of unbind and rebind: the stream
> - *		dies and the device works after rebind.
> + *		dies, no new streams can be opened on the removed device and the device
> + *		works after rebind.
>    */
>   static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
>   {
> @@ -2966,6 +2967,10 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
>   	for (i = 0; i < unbind_num_streams; i++)
>   		unbind_stream_check_dead(&streams[i], "after-unbind");
>   
> +	/* The drm fd of the removed device can't open new streams */
> +	intel_xe_perf_ioctl_err(drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, &primary->param,
> +				ENODEV);
> +
>   	if (flags & UNBIND_CLOSE_BEFORE_REBIND) {
>   		igt_set_timeout(60, "stream close timed out (wedged?)");
>   		for (i = 0; i < unbind_num_streams; i++)

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

* Re: [PATCH v2 4/8] tests/intel/xe_oa: Check OA buffer mmaps across unbind
  2026-11-04  0:55 ` [PATCH v2 4/8] tests/intel/xe_oa: Check OA buffer mmaps across unbind Umesh Nerlige Ramappa
@ 2026-11-26  7:10   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  7:10 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> mmap the OA buffer before unbind. Unbind zaps the mapping and refaults
> get a zeroed dummy page, so check that the mapping reads zeros
> afterwards, after making sure it held OA reports before. Also check
> that new mmaps of the stream fd fail with ENODEV.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

LGTM,

Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>

> ---
>   tests/intel/xe_oa.c | 55 ++++++++++++++++++++++++++++++++++++++++++---
>   1 file changed, 52 insertions(+), 3 deletions(-)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index e10b77bca1b2..e4b63c982200 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -2831,6 +2831,18 @@ static void probe_stream_after_removal(int fd, const char *when)
>   	igt_assert_eq(err, ENODEV);
>   }
>   
> +static bool mem_is_zero(const void *vaddr, size_t len)
> +{
> +	const uint8_t *p = vaddr;
> +	size_t i;
> +
> +	for (i = 0; i < len; i++)
> +		if (p[i])
> +			return false;
> +
> +	return true;
> +}
> +
>   #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
>   
>   #define UNBIND_MAX_STREAMS	16
> @@ -2842,6 +2854,8 @@ struct unbind_stream {
>   	struct intel_xe_oa_open_prop param;
>   	size_t report_size;
>   	int fd;
> +	void *vaddr;
> +	size_t size;
>   };
>   
>   static char unbind_pci_slot[NAME_MAX];
> @@ -2853,10 +2867,12 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
>   {
>   	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
>   	uint64_t fmt = test_set->perf_oa_format;
> +	struct drm_xe_oa_stream_info info = {};
>   	int n = 0;
>   
>   	s->oa_unit_id = oau->oa_unit_id;
>   	s->fd = -1;
> +	s->vaddr = NULL;
>   	s->properties[n++] = DRM_XE_OA_PROPERTY_OA_UNIT_ID;
>   	s->properties[n++] = oau->oa_unit_id;
>   	s->properties[n++] = DRM_XE_OA_PROPERTY_SAMPLE_OA;
> @@ -2875,10 +2891,20 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
>   
>   	s->fd = intel_xe_perf_ioctl(drm_fd, DRM_XE_OBSERVATION_OP_STREAM_OPEN, &s->param);
>   	igt_assert_lte(0, s->fd);
> +
> +	do_ioctl(s->fd, DRM_XE_OBSERVATION_IOCTL_INFO, &info);
> +	s->size = info.oa_buf_size;
> +	s->vaddr = mmap(NULL, s->size, PROT_READ, MAP_PRIVATE, s->fd, 0);
> +	igt_assert(s->vaddr != MAP_FAILED);
> +
> +	/* Fault in the mapping while the device is still bound */
> +	(void)READ_ONCE(*(const volatile uint32_t *)s->vaddr);
>   }
>   
>   static void unbind_stream_close(struct unbind_stream *s)
>   {
> +	igt_assert_eq(munmap(s->vaddr, s->size), 0);
> +	s->vaddr = NULL;
>   	close(s->fd);
>   	s->fd = -1;
>   }
> @@ -2894,13 +2920,34 @@ static void unbind_stream_check_live(struct unbind_stream *s)
>   	ret = read(s->fd, buf, sizeof(buf));
>   	igt_debug("Pre-unbind read: ret=%d\n", ret);
>   	igt_assert_lt(0, ret);
> +
> +	/*
> +	 * Reports are written from the start of the OA buffer, so the mapping holds data
> +	 * now. Makes the zeroed dummy page check after unbind meaningful.
> +	 */
> +	igt_assert(!mem_is_zero(s->vaddr, s->report_size));
>   }
>   
>   static void unbind_stream_check_dead(struct unbind_stream *s, const char *when)
>   {
> +	size_t page_size = sysconf(_SC_PAGESIZE);
> +	void *vaddr;
> +
>   	igt_debug("[%s] checking stream on oa unit %d\n", when, s->oa_unit_id);
>   
>   	probe_stream_after_removal(s->fd, when);
> +
> +	/*
> +	 * Unbind zaps the existing mapping and refaults get a zeroed dummy page instead of
> +	 * the OA buffer: check first and last page
> +	 */
> +	igt_assert(mem_is_zero(s->vaddr, page_size));
> +	igt_assert(mem_is_zero((uint8_t *)s->vaddr + s->size - page_size, page_size));
> +
> +	/* New mappings are refused */
> +	vaddr = mmap(NULL, s->size, PROT_READ, MAP_PRIVATE, s->fd, 0);
> +	igt_assert(vaddr == MAP_FAILED);
> +	igt_assert_eq(errno, ENODEV);
>   }
>   
>   /*
> @@ -2915,6 +2962,8 @@ static void unbind_rebind_recover(void)
>   	for (i = 0; i < unbind_num_streams; i++) {
>   		struct unbind_stream *s = &unbind_streams[i];
>   
> +		if (s->vaddr && s->vaddr != MAP_FAILED)
> +			munmap(s->vaddr, s->size);
>   		if (s->fd >= 0)
>   			close(s->fd);
>   	}
> @@ -2936,9 +2985,9 @@ static void unbind_rebind_recover(void)
>   
>   /**
>    * SUBTEST: unbind-rebind-stream
> - * Description: Open an OA stream and test the effects of unbind and rebind: the stream
> - *		dies, no new streams can be opened on the removed device and the device
> - *		works after rebind.
> + * Description: Open OA streams with mmapped OA buffers and test the effects of unbind
> + *		and rebind: streams die, mmaps read a zeroed dummy page, no new streams can
> + *		be opened on the removed device and the device works after rebind.
>    */
>   static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int flags)
>   {

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

* Re: [PATCH v2 7/8] tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test
  2026-11-04  0:55 ` [PATCH v2 7/8] tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test Umesh Nerlige Ramappa
@ 2026-11-26  7:11   ` Shekhar Chauhan
  0 siblings, 0 replies; 19+ messages in thread
From: Shekhar Chauhan @ 2026-11-26  7:11 UTC (permalink / raw)
  To: Umesh Nerlige Ramappa, igt-dev; +Cc: harish.chegondi


On 11/4/2026 6:25, Umesh Nerlige Ramappa wrote:
> Open the stream on an exec queue with preemption disabled. Unbind then
> also restores the OA context state with an LRI batch on the exec queue
> and restores preemption and timeslicing.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

LGTM,

Reviewed-by: Shekhar Chauhan <shekhar.chauhan@intel.com>

> ---
>   tests/intel/xe_oa.c | 28 +++++++++++++++++++++++++---
>   1 file changed, 25 insertions(+), 3 deletions(-)
>
> diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
> index f1fe5f44c408..ffc1971cb361 100644
> --- a/tests/intel/xe_oa.c
> +++ b/tests/intel/xe_oa.c
> @@ -2866,6 +2866,7 @@ static bool mem_is_zero(const void *vaddr, size_t len)
>   
>   #define UNBIND_CLOSE_BEFORE_REBIND	(1 << 0)
>   #define UNBIND_STREAM_DISABLED		(1 << 1)
> +#define UNBIND_EXEC_QUEUE		(1 << 2)
>   
>   #define UNBIND_MAX_STREAMS	16
>   
> @@ -2898,7 +2899,8 @@ static bool unbind_waiters_started;
>   static volatile bool unbind_waiters_stop;
>   
>   static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_unit *oau,
> -			       unsigned int flags)
> +			       unsigned int flags, uint32_t exec_q,
> +			       const struct drm_xe_engine_class_instance *hwe)
>   {
>   	struct intel_xe_perf_metric_set *test_set = oa_unit_metric_set(oau);
>   	uint64_t fmt = test_set->perf_oa_format;
> @@ -2923,6 +2925,14 @@ static void unbind_stream_open(struct unbind_stream *s, const struct drm_xe_oa_u
>   		s->properties[n++] = DRM_XE_OA_PROPERTY_OA_DISABLED;
>   		s->properties[n++] = true;
>   	}
> +	if (exec_q) {
> +		s->properties[n++] = DRM_XE_OA_PROPERTY_EXEC_QUEUE_ID;
> +		s->properties[n++] = exec_q;
> +		s->properties[n++] = DRM_XE_OA_PROPERTY_OA_ENGINE_INSTANCE;
> +		s->properties[n++] = hwe->engine_instance;
> +		s->properties[n++] = DRM_XE_OA_PROPERTY_NO_PREEMPT;
> +		s->properties[n++] = true;
> +	}
>   	igt_assert_lte(n, ARRAY_SIZE(s->properties));
>   
>   	s->param.num_properties = n / 2;
> @@ -3140,14 +3150,22 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
>   {
>   	struct unbind_stream *streams = unbind_streams;
>   	struct unbind_stream *primary = &streams[0];
> +	const struct drm_xe_engine_class_instance *hwe = NULL;
>   	bool disabled = flags & UNBIND_STREAM_DISABLED;
> +	uint32_t vm, exec_q = 0;
>   	int ret, i;
>   
>   	igt_device_get_pci_slot_name(drm_fd, unbind_pci_slot);
>   	igt_debug("Device %s\n", unbind_pci_slot);
>   
> +	if (flags & UNBIND_EXEC_QUEUE) {
> +		hwe = oa_unit_engine(oau0);
> +		vm = xe_vm_create(drm_fd, 0, 0);
> +		exec_q = xe_exec_queue_create_deconst(drm_fd, vm, hwe, 0);
> +	}
> +
>   	unbind_num_streams = 0;
> -	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags);
> +	unbind_stream_open(&streams[unbind_num_streams++], oau0, flags, exec_q, hwe);
>   	igt_debug("Opened %d OA stream(s)\n", unbind_num_streams);
>   
>   	/*
> @@ -3185,7 +3203,10 @@ static void test_unbind_rebind(const struct drm_xe_oa_unit *oau0, unsigned int f
>   		igt_reset_timeout();
>   	}
>   
> -	/* Drop all state of the removed device, the drm fd also refers to it */
> +	/*
> +	 * Drop all state of the removed device, the drm fd also refers to it. The exec
> +	 * queue and vm can't be destroyed on a removed device, they go with the drm fd.
> +	 */
>   	oa_device_fini();
>   
>   	igt_set_timeout(60, "xe bind timed out (wedged?)");
> @@ -5691,6 +5712,7 @@ int igt_main_args("b:td", long_options, help_str, opt_handler, NULL)
>   			{ "close", UNBIND_CLOSE_BEFORE_REBIND },
>   			{ "open", 0 },
>   			{ "disabled", UNBIND_STREAM_DISABLED },
> +			{ "exec-queue", UNBIND_EXEC_QUEUE },
>   		};
>   
>   		for (int i = 0; i < ARRAY_SIZE(unbind_variants); i++) {

-- 
Shekhar Chauhan
Linux Graphics Software Engineer
Linux Platform Enabling
Intel Corporation


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

end of thread, other threads:[~2026-11-26  7:14 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04  0:55 [PATCH v2 0/8] Test unbinding PCI device while OA stream is open Umesh Nerlige Ramappa
2026-11-04  0:55 ` [PATCH v2 1/8] tests/intel/xe_oa: Move device setup and teardown into helpers Umesh Nerlige Ramappa
2026-11-04  0:55 ` [PATCH v2 2/8] tests/intel/xe_oa: Add unbind/rebind test with an open OA stream Umesh Nerlige Ramappa
2026-11-26  7:09   ` Shekhar Chauhan
2026-11-04  0:55 ` [PATCH v2 3/8] tests/intel/xe_oa: Check that a removed device can't open OA streams Umesh Nerlige Ramappa
2026-11-26  7:10   ` Shekhar Chauhan
2026-11-04  0:55 ` [PATCH v2 4/8] tests/intel/xe_oa: Check OA buffer mmaps across unbind Umesh Nerlige Ramappa
2026-11-26  7:10   ` Shekhar Chauhan
2026-11-04  0:55 ` [PATCH v2 5/8] tests/intel/xe_oa: Check vm_ops->access on " Umesh Nerlige Ramappa
2026-11-26  5:55   ` Shekhar Chauhan
2026-11-04  0:55 ` [PATCH v2 6/8] tests/intel/xe_oa: Check that blocked OA stream waiters are woken up on unbind Umesh Nerlige Ramappa
2026-11-26  6:42   ` Shekhar Chauhan
2026-11-04  0:55 ` [PATCH v2 7/8] tests/intel/xe_oa: Add an exec queue variant to the unbind/rebind test Umesh Nerlige Ramappa
2026-11-26  7:11   ` Shekhar Chauhan
2026-11-04  0:55 ` [PATCH v2 8/8] tests/intel/xe_oa: Add an all OA units " Umesh Nerlige Ramappa
2026-11-26  7:06   ` Shekhar Chauhan
2026-11-04  2:19 ` ✓ Xe.CI.BAT: success for Test unbinding PCI device while OA stream is open (rev2) Patchwork
2026-11-04  2:39 ` ✗ i915.CI.BAT: failure " Patchwork
2026-11-04 17:42 ` ✗ Xe.CI.FULL: " Patchwork

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.