Skip to contentSkip to conversation

i915/perf: Add test to query CS timestamp

PATCH In review Umesh Nerlige Ramappa 3 participants 6 messages Mar 5, 2021 – Mar 13, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i915/perf: Add test to query CS timestamp

Add tests to query CS timestamps for different engines.

v2:
- remove flag parameter
- assert for minimum usable values rather than maximum

v3:
- use clock id for cpu timestamps (Lionel)
- check if query is supported (Ashutosh)
- test bad queries

v4: (Chris, Tvrtko)
- cs_timestamp is a misnomer, use cs_cycles instead
- use cs cycle frequency returned in the query
- omit size parameter

v5:
- use __for_each_physical_engine (Lionel)
- check for ENODEV (Umesh)

v6: Use 2 cpu timestamps to calculate reg read time (Lionel)

---
 include/drm-uapi/i915_drm.h |  48 +++++++++
 tests/i915/i915_query.c     | 189 ++++++++++++++++++++++++++++++++++++
 2 files changed, 237 insertions(+)
include/drm-uapi/i915_drm.h +48 -0
index bf9ea471..0e50302f 100644
@@ -2176,6 +2176,10 @@ struct drm_i915_query_item {
 #define DRM_I915_QUERY_TOPOLOGY_INFO    1
 #define DRM_I915_QUERY_ENGINE_INFO	2
 #define DRM_I915_QUERY_PERF_CONFIG      3
+	/**
+	 * Query Command Streamer timestamp register.
+	 */
+#define DRM_I915_QUERY_CS_CYCLES	4
 /* Must be kept compact -- no holes and well documented */
 
 	/*
@@ -2309,6 +2313,50 @@ struct drm_i915_engine_info {
 	__u64 rsvd1[4];
 };
 
+/**
+ * struct drm_i915_query_cs_cycles
+ *
+ * The query returns the command streamer cycles and the frequency that can be
+ * used to calculate the command streamer timestamp. In addition the query
+ * returns a set of cpu timestamps that indicate when the command streamer cycle
+ * count was captured.
+ */
+struct drm_i915_query_cs_cycles {
+	/** Engine for which command streamer cycles is queried. */
+	struct i915_engine_class_instance engine;
+
+	/** Must be zero. */
+	__u32 flags;
+
+	/**
+	 * Command streamer cycles as read from the command streamer
+	 * register at 0x358 offset.
+	 */
+	__u64 cs_cycles;
+
+	/** Frequency of the cs cycles in Hz. */
+	__u64 cs_frequency;
+
+	/**
+	 * CPU timestamps in ns. cpu_timestamp[0] is captured before reading the
+	 * cs_cycles register using the reference clockid set by the user.
+	 * cpu_timestamp[1] is the time taken in ns to read the lower dword of
+	 * the cs_cycles register.
+	 */
+	__u64 cpu_timestamp[2];
+
+	/**
+	 * Reference clock id for CPU timestamp. For definition, see
+	 * clock_gettime(2) and perf_event_open(2). Supported clock ids are
+	 * CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_REALTIME, CLOCK_BOOTTIME,
+	 * CLOCK_TAI.
+	 */
+	__s32 clockid;
+
+	/** Must be zero. */
+	__u32 rsvd;
+};
+
 /**
  * struct drm_i915_query_engine_info
  *
tests/i915/i915_query.c +189 -0

201 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw
Quoted 16 lines · Umesh Nerlige Ramappa

Add tests to query CS timestamps for different engines.

v2:
- remove flag parameter
- assert for minimum usable values rather than maximum

v3:
- use clock id for cpu timestamps (Lionel)
- check if query is supported (Ashutosh)
- test bad queries

v4: (Chris, Tvrtko)
- cs_timestamp is a misnomer, use cs_cycles instead
- use cs cycle frequency returned in the query
- omit size parameter

Quoted 7 lines

v5:
- use __for_each_physical_engine (Lionel)
- check for ENODEV (Umesh)

v6: Use 2 cpu timestamps to calculate reg read time (Lionel)

Missed out the previous R-b from Lionel. The only additional change is logs printing time taken to read the register.

Thanks,
Umesh

Quoted 285 lines

---
include/drm-uapi/i915_drm.h | 48 +++++++++
tests/i915/i915_query.c | 189 ++++++++++++++++++++++++++++++++++++

2 files changed, 237 insertions(+)
include/drm-uapi/i915_drm.h +48 -0
index bf9ea471..0e50302f 100644
@@ -2176,6 +2176,10 @@ struct drm_i915_query_item {
 #define DRM_I915_QUERY_TOPOLOGY_INFO    1
 #define DRM_I915_QUERY_ENGINE_INFO	2
 #define DRM_I915_QUERY_PERF_CONFIG      3
+	/**
+	 * Query Command Streamer timestamp register.
+	 */
+#define DRM_I915_QUERY_CS_CYCLES	4
 /* Must be kept compact -- no holes and well documented */
 
 	/*
@@ -2309,6 +2313,50 @@ struct drm_i915_engine_info {
 	__u64 rsvd1[4];
 };
 
+/**
+ * struct drm_i915_query_cs_cycles
+ *
+ * The query returns the command streamer cycles and the frequency that can be
+ * used to calculate the command streamer timestamp. In addition the query
+ * returns a set of cpu timestamps that indicate when the command streamer cycle
+ * count was captured.
+ */
+struct drm_i915_query_cs_cycles {
+	/** Engine for which command streamer cycles is queried. */
+	struct i915_engine_class_instance engine;
+
+	/** Must be zero. */
+	__u32 flags;
+
+	/**
+	 * Command streamer cycles as read from the command streamer
+	 * register at 0x358 offset.
+	 */
+	__u64 cs_cycles;
+
+	/** Frequency of the cs cycles in Hz. */
+	__u64 cs_frequency;
+
+	/**
+	 * CPU timestamps in ns. cpu_timestamp[0] is captured before reading the
+	 * cs_cycles register using the reference clockid set by the user.
+	 * cpu_timestamp[1] is the time taken in ns to read the lower dword of
+	 * the cs_cycles register.
+	 */
+	__u64 cpu_timestamp[2];
+
+	/**
+	 * Reference clock id for CPU timestamp. For definition, see
+	 * clock_gettime(2) and perf_event_open(2). Supported clock ids are
+	 * CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_REALTIME, CLOCK_BOOTTIME,
+	 * CLOCK_TAI.
+	 */
+	__s32 clockid;
+
+	/** Must be zero. */
+	__u32 rsvd;
+};
+
 /**
 * struct drm_i915_query_engine_info
 *
tests/i915/i915_query.c +189 -0
index 29b938e9..2ab3905b 100644
@@ -267,6 +267,182 @@ eu_available(const struct drm_i915_query_topology_info *topo_info,
 				eu / 8] >> (eu % 8)) & 1;
 }
 
+static bool query_cs_cycles_supported(int fd)
+{
+	struct drm_i915_query_item item = {
+		.query_id = DRM_I915_QUERY_CS_CYCLES,
+	};
+
+	return __i915_query_items(fd, &item, 1) == 0 && item.length > 0;
+}
+
+static void __query_cs_cycles(int i915, void *data, int err)
+{
+	struct drm_i915_query_item item = {
+		.query_id = DRM_I915_QUERY_CS_CYCLES,
+		.data_ptr = to_user_pointer(data),
+		.length = sizeof(struct drm_i915_query_cs_cycles),
+	};
+
+	i915_query_items(i915, &item, 1);
+
+	if (err)
+		igt_assert(item.length == -err);
+}
+
+static bool engine_has_cs_cycles(int i915, uint16_t class, uint16_t instance)
+{
+	struct drm_i915_query_cs_cycles ts = {};
+	struct drm_i915_query_item item = {
+		.query_id = DRM_I915_QUERY_CS_CYCLES,
+		.data_ptr = to_user_pointer(&ts),
+		.length = sizeof(struct drm_i915_query_cs_cycles),
+	};
+
+	ts.engine.engine_class = class;
+	ts.engine.engine_instance = instance;
+
+	i915_query_items(i915, &item, 1);
+
+	return item.length != -ENODEV;
+}
+
+static void
+__cs_cycles(int i915, struct i915_engine_class_instance *engine)
+{
+	struct drm_i915_query_cs_cycles ts1 = {};
+	struct drm_i915_query_cs_cycles ts2 = {};
+	uint64_t delta_cpu, delta_cs, delta_delta;
+	int i, usable = 0;
+	struct {
+		int32_t id;
+		const char *name;
+	} clock[] = {
+		{ CLOCK_MONOTONIC, "CLOCK_MONOTONIC" },
+		{ CLOCK_MONOTONIC_RAW, "CLOCK_MONOTONIC_RAW" },
+		{ CLOCK_REALTIME, "CLOCK_REALTIME" },
+		{ CLOCK_BOOTTIME, "CLOCK_BOOTTIME" },
+		{ CLOCK_TAI, "CLOCK_TAI" },
+	};
+
+	igt_debug("engine[%u:%u]\n",
+		  engine->engine_class,
+		  engine->engine_instance);
+
+	/* Try a new clock every 10 iterations. */
+#define NUM_SNAPSHOTS 10
+	for (i = 0; i < NUM_SNAPSHOTS * ARRAY_SIZE(clock); i++) {
+		int index = i / NUM_SNAPSHOTS;
+
+		ts1.engine = *engine;
+		ts1.clockid = clock[index].id;
+
+		ts2.engine = *engine;
+		ts2.clockid = clock[index].id;
+
+		__query_cs_cycles(i915, &ts1, 0);
+		__query_cs_cycles(i915, &ts2, 0);
+
+		igt_debug("[1] cpu_ts before %llu, reg read time %llu\n",
+			  ts1.cpu_timestamp[0],
+			  ts1.cpu_timestamp[1]);
+		igt_debug("[1] cs_ts %llu, freq %llu Hz\n",
+			  ts1.cs_cycles, ts1.cs_frequency);
+
+		igt_debug("[2] cpu_ts before %llu, reg read time %llu\n",
+			  ts2.cpu_timestamp[0],
+			  ts2.cpu_timestamp[1]);
+		igt_debug("[2] cs_ts %llu, freq %llu Hz\n",
+			  ts2.cs_cycles, ts2.cs_frequency);
+
+		delta_cpu = ts2.cpu_timestamp[0] - ts1.cpu_timestamp[0];
+		delta_cs = (ts2.cs_cycles - ts1.cs_cycles) *
+			   NSEC_PER_SEC / ts1.cs_frequency;
+
+		igt_debug("delta_cpu[%lu], delta_cs[%lu]\n",
+			  delta_cpu, delta_cs);
+
+		delta_delta = delta_cpu > delta_cs ?
+			       delta_cpu - delta_cs :
+			       delta_cs - delta_cpu;
+		igt_debug("delta_delta %lu\n", delta_delta);
+
+		if (delta_delta < 5000)
+			usable++;
+
+		/*
+		 * User needs few good snapshots of the timestamps to
+		 * synchronize cpu time with cs time. Check if we have enough
+		 * usable values before moving to the next clockid.
+		 */
+		if (!((i + 1) % NUM_SNAPSHOTS)) {
+			igt_debug("clock %s\n", clock[index].name);
+			igt_debug("usable %d\n", usable);
+			igt_assert(usable > 2);
+			usable = 0;
+		}
+	}
+}
+
+static void test_cs_cycles(int i915)
+{
+	const struct intel_execution_engine2 *e;
+	struct i915_engine_class_instance engine;
+
+	__for_each_physical_engine(i915, e) {
+		if (engine_has_cs_cycles(i915, e->class, e->instance)) {
+			engine.engine_class = e->class;
+			engine.engine_instance = e->instance;
+			__cs_cycles(i915, &engine);
+		}
+	}
+}
+
+static void test_cs_cycles_invalid(int i915)
+{
+	struct i915_engine_class_instance engine;
+	const struct intel_execution_engine2 *e;
+	struct drm_i915_query_cs_cycles ts = {};
+
+	/* get one engine */
+	__for_each_physical_engine(i915, e)
+		break;
+
+	/* bad engines */
+	ts.engine.engine_class = e->class;
+	ts.engine.engine_instance = -1;
+	__query_cs_cycles(i915, &ts, EINVAL);
+
+	ts.engine.engine_class = -1;
+	ts.engine.engine_instance = e->instance;
+	__query_cs_cycles(i915, &ts, EINVAL);
+
+	ts.engine.engine_class = -1;
+	ts.engine.engine_instance = -1;
+	__query_cs_cycles(i915, &ts, EINVAL);
+
+	/* non zero flags */
+	ts.flags = 1;
+	ts.engine.engine_class = e->class;
+	ts.engine.engine_instance = e->instance;
+	__query_cs_cycles(i915, &ts, EINVAL);
+
+	/* non zero rsvd field */
+	ts.flags = 0;
+	ts.rsvd = 1;
+	__query_cs_cycles(i915, &ts, EINVAL);
+
+	/* bad clockid */
+	ts.rsvd = 0;
+	ts.clockid = -1;
+	__query_cs_cycles(i915, &ts, EINVAL);
+
+	/* sanity check */
+	engine.engine_class = e->class;
+	engine.engine_instance = e->instance;
+	__cs_cycles(i915, &engine);
+}
+
 /*
 * Verify that we get coherent values between the legacy getparam slice/subslice
 * masks and the new topology query.
@@ -783,6 +959,19 @@ igt_main
 			engines(fd);
 	}
 
+	igt_subtest_group {
+		igt_fixture {
+			igt_require(intel_gen(devid) >= 6);
+			igt_require(query_cs_cycles_supported(fd));
+		}
+
+		igt_subtest("cs-cycles")
+			test_cs_cycles(fd);
+
+		igt_subtest("cs-cycles-invalid")
+			test_cs_cycles_invalid(fd);
+	}
+
 	igt_fixture {
 		close(fd);
 	}
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for i915/perf: Add test to query CS timestamp (rev3)

In reply to Umesh Nerlige Ramappa
== Series Details ==

== Series Details ==

Series: i915/perf: Add test to query CS timestamp (rev3)
URL : https://patchwork.freedesktop.org/series/87553/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_9836 -> IGTPW_5580
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][1] ([fdo#109271]) +23 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-soraka/igt@gem_exec_fence@[email protected]

* igt@gem_exec_gttfill@basic:
- fi-kbl-8809g: [PASS][2] -> [TIMEOUT][3] ([i915#3145])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/fi-kbl-8809g/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-8809g/igt@[email protected]

* igt@gem_exec_suspend@basic-s3:
- fi-tgl-u2: [PASS][4] -> [FAIL][5] ([i915#1888])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/fi-tgl-u2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-tgl-u2/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-soraka/igt@[email protected]

* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][7] ([i915#1886] / [i915#2291])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html

* igt@i915_selftest@live@hangcheck:
- fi-icl-y: [PASS][8] -> [INCOMPLETE][9] ([i915#2782] / [i915#926])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/fi-icl-y/igt@i915_selftest@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-icl-y/igt@i915_selftest@[email protected]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][10] ([fdo#109271] / [fdo#111827]) +8 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-soraka/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-kbl-soraka: NOTRUN -> [FAIL][11] ([i915#49])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-soraka/igt@[email protected]

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#533])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-soraka/igt@[email protected]

* igt@runner@aborted:
- fi-icl-y: NOTRUN -> [FAIL][13] ([i915#2782])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-icl-y/igt@[email protected]

#### Possible fixes ####

* igt@gem_tiled_blits@basic:
- fi-kbl-8809g: [TIMEOUT][14] ([i915#3145]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/fi-kbl-8809g/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/fi-kbl-8809g/igt@[email protected]

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#3145]: https://gitlab.freedesktop.org/drm/intel/issues/3145
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#926]: https://gitlab.freedesktop.org/drm/intel/issues/926

Participating hosts (43 -> 39)
------------------------------

Additional (1): fi-kbl-soraka
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-dg1-1 fi-bdw-samus

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

* CI: CI-20190529 -> None
* IGT: IGT_6024 -> IGTPW_5580

CI-20190529: 20190529
CI_DRM_9836: 8449e42c5aab6666ce79a2c9f5e75ddd31b9b50e @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5580: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/index.html
IGT_6024: d8e03fe437f0c328c96717a92ad97719c02ba2cd @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Testlist changes ==

+igt@i915_query@cs-cycles
+igt@i915_query@cs-cycles-invalid

== Logs ==

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

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw
In reply to Umesh Nerlige Ramappa

Quoting Umesh Nerlige Ramappa (2021-03-05 19:37:08)

Quoted 113 lines

Add tests to query CS timestamps for different engines.

v2:
- remove flag parameter
- assert for minimum usable values rather than maximum

v3:
- use clock id for cpu timestamps (Lionel)
- check if query is supported (Ashutosh)
- test bad queries

v4: (Chris, Tvrtko)
- cs_timestamp is a misnomer, use cs_cycles instead
- use cs cycle frequency returned in the query
- omit size parameter

v5:
- use __for_each_physical_engine (Lionel)
- check for ENODEV (Umesh)

v6: Use 2 cpu timestamps to calculate reg read time (Lionel)

---
 include/drm-uapi/i915_drm.h |  48 +++++++++
 tests/i915/i915_query.c     | 189 ++++++++++++++++++++++++++++++++++++
 2 files changed, 237 insertions(+)
include/drm-uapi/i915_drm.h +48 -0
index bf9ea471..0e50302f 100644
@@ -2176,6 +2176,10 @@ struct drm_i915_query_item {
 #define DRM_I915_QUERY_TOPOLOGY_INFO    1
 #define DRM_I915_QUERY_ENGINE_INFO     2
 #define DRM_I915_QUERY_PERF_CONFIG      3
+       /**
+        * Query Command Streamer timestamp register.
+        */
+#define DRM_I915_QUERY_CS_CYCLES       4
 /* Must be kept compact -- no holes and well documented */
 
        /*
@@ -2309,6 +2313,50 @@ struct drm_i915_engine_info {
        __u64 rsvd1[4];
 };
 
+/**
+ * struct drm_i915_query_cs_cycles
+ *
+ * The query returns the command streamer cycles and the frequency that can be
+ * used to calculate the command streamer timestamp. In addition the query
+ * returns a set of cpu timestamps that indicate when the command streamer cycle
+ * count was captured.
+ */
+struct drm_i915_query_cs_cycles {
+       /** Engine for which command streamer cycles is queried. */
+       struct i915_engine_class_instance engine;
+
+       /** Must be zero. */
+       __u32 flags;
+
+       /**
+        * Command streamer cycles as read from the command streamer
+        * register at 0x358 offset.
+        */
+       __u64 cs_cycles;
+
+       /** Frequency of the cs cycles in Hz. */
+       __u64 cs_frequency;
+
+       /**
+        * CPU timestamps in ns. cpu_timestamp[0] is captured before reading the
+        * cs_cycles register using the reference clockid set by the user.
+        * cpu_timestamp[1] is the time taken in ns to read the lower dword of
+        * the cs_cycles register.
+        */
+       __u64 cpu_timestamp[2];
+
+       /**
+        * Reference clock id for CPU timestamp. For definition, see
+        * clock_gettime(2) and perf_event_open(2). Supported clock ids are
+        * CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_REALTIME, CLOCK_BOOTTIME,
+        * CLOCK_TAI.
+        */
+       __s32 clockid;
+
+       /** Must be zero. */
+       __u32 rsvd;
+};
+
 /**
  * struct drm_i915_query_engine_info
  *
tests/i915/i915_query.c +11 -0
index 29b938e9..2ab3905b 100644
@@ -267,6 +267,182 @@ eu_available(const struct drm_i915_query_topology_info *topo_info,
                                eu / 8] >> (eu % 8)) & 1;
 }
 
+static bool query_cs_cycles_supported(int fd)
+{
+       struct drm_i915_query_item item = {
+               .query_id = DRM_I915_QUERY_CS_CYCLES,
+       };
+
+       return __i915_query_items(fd, &item, 1) == 0 && item.length > 0;
+}
+
+static void __query_cs_cycles(int i915, void *data, int err)
+{

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 290

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+       struct drm_i915_query_item item = {
+               .query_id = DRM_I915_QUERY_CS_CYCLES,
+               .data_ptr = to_user_pointer(data),
+               .length = sizeof(struct drm_i915_query_cs_cycles),
+       };
+
+       i915_query_items(i915, &item, 1);
+
+       if (err)
+               igt_assert(item.length == -err);

igt_assert_eq(item.length, -err);

s/err/expect/

I was looking for how err was being returned from i915_query_items....

And might as well pass in -EINVAL.

Quoted 8 lines
tests/i915/i915_query.c +8 -0
+}
+
+static bool engine_has_cs_cycles(int i915, uint16_t class, uint16_t instance)
+{
+       struct drm_i915_query_cs_cycles ts = {};
+       struct drm_i915_query_item item = {
+               .query_id = DRM_I915_QUERY_CS_CYCLES,
+               .data_ptr = to_user_pointer(&ts),

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 308

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+               .length = sizeof(struct drm_i915_query_cs_cycles),
+       };
+
+       ts.engine.engine_class = class;
+       ts.engine.engine_instance = instance;
+
+       i915_query_items(i915, &item, 1);
+
+       return item.length != -ENODEV;
+}

Let's refactor the duplicated code

static void __query_cs_cycles(int i915, void *data)

{
       struct drm_i915_query_item item = {
               .query_id = DRM_I915_QUERY_CS_CYCLES,
               .data_ptr = to_user_pointer(data),
               .length = sizeof(struct drm_i915_query_cs_cycles),
       };

       i915_query_items(i915, &item, 1);
       return item.length;
}

static bool query_cs_cycles_supported(int fd)

{
	return __query_cs_cycles(fd, NULL) > 0;
}

static bool engine_has_cs_cycles(int i915, uint16_t class, uint16_t instance)

{
       struct drm_i915_query_cs_cycles ts = {
	       .engine = { class, instance }
       };

       return __query_cs_cycles(i915, &ts) != -ENODEV;
}
Quoted 25 lines
tests/i915/i915_query.c +25 -0
+static void
+__cs_cycles(int i915, struct i915_engine_class_instance *engine)
+{
+       struct drm_i915_query_cs_cycles ts1 = {};
+       struct drm_i915_query_cs_cycles ts2 = {};
+       uint64_t delta_cpu, delta_cs, delta_delta;
+       int i, usable = 0;
+       struct {
+               int32_t id;
+               const char *name;
+       } clock[] = {
+               { CLOCK_MONOTONIC, "CLOCK_MONOTONIC" },
+               { CLOCK_MONOTONIC_RAW, "CLOCK_MONOTONIC_RAW" },
+               { CLOCK_REALTIME, "CLOCK_REALTIME" },
+               { CLOCK_BOOTTIME, "CLOCK_BOOTTIME" },
+               { CLOCK_TAI, "CLOCK_TAI" },
+       };
+
+       igt_debug("engine[%u:%u]\n",
+                 engine->engine_class,
+                 engine->engine_instance);
+
+       /* Try a new clock every 10 iterations. */
+#define NUM_SNAPSHOTS 10
+       for (i = 0; i < NUM_SNAPSHOTS * ARRAY_SIZE(clock); i++) {

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 344

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+               int index = i / NUM_SNAPSHOTS;
+
+               ts1.engine = *engine;
+               ts1.clockid = clock[index].id;
+
+               ts2.engine = *engine;
+               ts2.clockid = clock[index].id;
+
+               __query_cs_cycles(i915, &ts1, 0);
+               __query_cs_cycles(i915, &ts2, 0);

igt_assert_eq(__query_cs_cycles(i915, &ts1), 0);
igt_assert_eq(__query_cs_cycles(i915, &ts2), 0);

Quoted 17 lines
tests/i915/i915_query.c +17 -0
+
+               igt_debug("[1] cpu_ts before %llu, reg read time %llu\n",
+                         ts1.cpu_timestamp[0],
+                         ts1.cpu_timestamp[1]);
+               igt_debug("[1] cs_ts %llu, freq %llu Hz\n",
+                         ts1.cs_cycles, ts1.cs_frequency);
+
+               igt_debug("[2] cpu_ts before %llu, reg read time %llu\n",
+                         ts2.cpu_timestamp[0],
+                         ts2.cpu_timestamp[1]);
+               igt_debug("[2] cs_ts %llu, freq %llu Hz\n",
+                         ts2.cs_cycles, ts2.cs_frequency);
+
+               delta_cpu = ts2.cpu_timestamp[0] - ts1.cpu_timestamp[0];
+               delta_cs = (ts2.cs_cycles - ts1.cs_cycles) *
+                          NSEC_PER_SEC / ts1.cs_frequency;
+

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 371

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+               igt_debug("delta_cpu[%lu], delta_cs[%lu]\n",
+                         delta_cpu, delta_cs);
+
+               delta_delta = delta_cpu > delta_cs ?
+                              delta_cpu - delta_cs :
+                              delta_cs - delta_cpu;
+               igt_debug("delta_delta %lu\n", delta_delta);
+
+               if (delta_delta < 5000)
+                       usable++;

Nothing is keeping the CS awake, its counter is allowed to switch off between reads.

I would run this test with a spinner in the background

uint32_t ctx = gem_context_create_for_engine(i915, engine.class, engine.instance); igt_spin_t *spin = igt_spin_new(i915, ctx);
gem_context_destroy(i915, ctx);

...

igt_spin_free(i915, spin);

And even repeat the test to see if the counter does switch off. Although we can hypothesis that one day it may be replaced by an always running counter.

Quoted 28 lines
tests/i915/i915_query.c +28 -0
+
+               /*
+                * User needs few good snapshots of the timestamps to
+                * synchronize cpu time with cs time. Check if we have enough
+                * usable values before moving to the next clockid.
+                */
+               if (!((i + 1) % NUM_SNAPSHOTS)) {
+                       igt_debug("clock %s\n", clock[index].name);
+                       igt_debug("usable %d\n", usable);
+                       igt_assert(usable > 2);
+                       usable = 0;
+               }
+       }
+}
+
+static void test_cs_cycles(int i915)
+{
+       const struct intel_execution_engine2 *e;
+       struct i915_engine_class_instance engine;
+
+       __for_each_physical_engine(i915, e) {
+               if (engine_has_cs_cycles(i915, e->class, e->instance)) {
+                       engine.engine_class = e->class;
+                       engine.engine_instance = e->instance;
+                       __cs_cycles(i915, &engine);
+               }
+       }
+}

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 409

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+
+static void test_cs_cycles_invalid(int i915)
+{
+       struct i915_engine_class_instance engine;
+       const struct intel_execution_engine2 *e;
+       struct drm_i915_query_cs_cycles ts = {};
+
+       /* get one engine */
+       __for_each_physical_engine(i915, e)
+               break;
	/* sanity check engine selection is valid */
	ts.engine.engine_class = e->class;
	ts.engine.engine_instance = e->instance;
	igt_assert_eq(__query_cs_cycles(i915, &ts), 0);

Otherwise you won't know that the EINVALs are because it didn't like the flags or class or instance in a moment.

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 414

Quoted 4 lines
tests/i915/i915_query.c +4 -0
+       /* bad engines */
+       ts.engine.engine_class = e->class;
+       ts.engine.engine_instance = -1;
+       __query_cs_cycles(i915, &ts, EINVAL);
	igt_assert_eq(__query_cs_cycles(i915, &ts), -EINVAL);
	...
Quoted 35 lines
tests/i915/i915_query.c +31 -0
+
+       ts.engine.engine_class = -1;
+       ts.engine.engine_instance = e->instance;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       ts.engine.engine_class = -1;
+       ts.engine.engine_instance = -1;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* non zero flags */
+       ts.flags = 1;
+       ts.engine.engine_class = e->class;
+       ts.engine.engine_instance = e->instance;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* non zero rsvd field */
+       ts.flags = 0;
+       ts.rsvd = 1;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* bad clockid */
+       ts.rsvd = 0;
+       ts.clockid = -1;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* sanity check */
+       engine.engine_class = e->class;
+       engine.engine_instance = e->instance;
+       __cs_cycles(i915, &engine);
+}
+
 /*
  * Verify that we get coherent values between the legacy getparam slice/subslice
  * masks and the new topology query.

tests/i915/i915_query.c igt_main · line 965

Quoted 7 lines
tests/i915/i915_query.c +4 -0
@@ -783,6 +959,19 @@ igt_main
                        engines(fd);
        }
 
+       igt_subtest_group {
+               igt_fixture {
+                       igt_require(intel_gen(devid) >= 6);
+                       igt_require(query_cs_cycles_supported(fd));

query_cs_cycles_supported() should cover gen >= 6, and the test itself is not gen specific (i.e no instructions that require a later gen).

tests/i915/i915_query.c igt_main · line 972

Quoted 7 lines
tests/i915/i915_query.c +7 -0
+               }
+
+               igt_subtest("cs-cycles")
+                       test_cs_cycles(fd);
+
+               igt_subtest("cs-cycles-invalid")
+                       test_cs_cycles_invalid(fd);

Do the invalid check first, it's just neater flow when using --run cs-cycles*

Quoted 8 lines
tests/i915/i915_query.c +2 -0
+       }
+
        igt_fixture {
                close(fd);
        }
Signature · 1 line
2.20.1

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#4 lore raw
Quoted 168 lines · Chris Wilson

Quoting Umesh Nerlige Ramappa (2021-03-05 19:37:08)

Quoted 113 lines

Add tests to query CS timestamps for different engines.

v2:
- remove flag parameter
- assert for minimum usable values rather than maximum

v3:
- use clock id for cpu timestamps (Lionel)
- check if query is supported (Ashutosh)
- test bad queries

v4: (Chris, Tvrtko)
- cs_timestamp is a misnomer, use cs_cycles instead
- use cs cycle frequency returned in the query
- omit size parameter

v5:
- use __for_each_physical_engine (Lionel)
- check for ENODEV (Umesh)

v6: Use 2 cpu timestamps to calculate reg read time (Lionel)

---
 include/drm-uapi/i915_drm.h |  48 +++++++++
 tests/i915/i915_query.c     | 189 ++++++++++++++++++++++++++++++++++++
 2 files changed, 237 insertions(+)
include/drm-uapi/i915_drm.h +48 -0
index bf9ea471..0e50302f 100644
@@ -2176,6 +2176,10 @@ struct drm_i915_query_item {
 #define DRM_I915_QUERY_TOPOLOGY_INFO    1
 #define DRM_I915_QUERY_ENGINE_INFO     2
 #define DRM_I915_QUERY_PERF_CONFIG      3
+       /**
+        * Query Command Streamer timestamp register.
+        */
+#define DRM_I915_QUERY_CS_CYCLES       4
 /* Must be kept compact -- no holes and well documented */
 
        /*
@@ -2309,6 +2313,50 @@ struct drm_i915_engine_info {
        __u64 rsvd1[4];
 };
 
+/**
+ * struct drm_i915_query_cs_cycles
+ *
+ * The query returns the command streamer cycles and the frequency that can be
+ * used to calculate the command streamer timestamp. In addition the query
+ * returns a set of cpu timestamps that indicate when the command streamer cycle
+ * count was captured.
+ */
+struct drm_i915_query_cs_cycles {
+       /** Engine for which command streamer cycles is queried. */
+       struct i915_engine_class_instance engine;
+
+       /** Must be zero. */
+       __u32 flags;
+
+       /**
+        * Command streamer cycles as read from the command streamer
+        * register at 0x358 offset.
+        */
+       __u64 cs_cycles;
+
+       /** Frequency of the cs cycles in Hz. */
+       __u64 cs_frequency;
+
+       /**
+        * CPU timestamps in ns. cpu_timestamp[0] is captured before reading the
+        * cs_cycles register using the reference clockid set by the user.
+        * cpu_timestamp[1] is the time taken in ns to read the lower dword of
+        * the cs_cycles register.
+        */
+       __u64 cpu_timestamp[2];
+
+       /**
+        * Reference clock id for CPU timestamp. For definition, see
+        * clock_gettime(2) and perf_event_open(2). Supported clock ids are
+        * CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_REALTIME, CLOCK_BOOTTIME,
+        * CLOCK_TAI.
+        */
+       __s32 clockid;
+
+       /** Must be zero. */
+       __u32 rsvd;
+};
+
 /**
  * struct drm_i915_query_engine_info
  *
tests/i915/i915_query.c +11 -0
index 29b938e9..2ab3905b 100644
@@ -267,6 +267,182 @@ eu_available(const struct drm_i915_query_topology_info *topo_info,
                                eu / 8] >> (eu % 8)) & 1;
 }
 
+static bool query_cs_cycles_supported(int fd)
+{
+       struct drm_i915_query_item item = {
+               .query_id = DRM_I915_QUERY_CS_CYCLES,
+       };
+
+       return __i915_query_items(fd, &item, 1) == 0 && item.length > 0;
+}
+
+static void __query_cs_cycles(int i915, void *data, int err)
+{

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 290

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+       struct drm_i915_query_item item = {
+               .query_id = DRM_I915_QUERY_CS_CYCLES,
+               .data_ptr = to_user_pointer(data),
+               .length = sizeof(struct drm_i915_query_cs_cycles),
+       };
+
+       i915_query_items(i915, &item, 1);
+
+       if (err)
+               igt_assert(item.length == -err);

igt_assert_eq(item.length, -err);

s/err/expect/

I was looking for how err was being returned from i915_query_items....

And might as well pass in -EINVAL.

Quoted 8 lines
tests/i915/i915_query.c +8 -0
+}
+
+static bool engine_has_cs_cycles(int i915, uint16_t class, uint16_t instance)
+{
+       struct drm_i915_query_cs_cycles ts = {};
+       struct drm_i915_query_item item = {
+               .query_id = DRM_I915_QUERY_CS_CYCLES,
+               .data_ptr = to_user_pointer(&ts),

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 308

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+               .length = sizeof(struct drm_i915_query_cs_cycles),
+       };
+
+       ts.engine.engine_class = class;
+       ts.engine.engine_instance = instance;
+
+       i915_query_items(i915, &item, 1);
+
+       return item.length != -ENODEV;
+}

Let's refactor the duplicated code

static void __query_cs_cycles(int i915, void *data)

{
      struct drm_i915_query_item item = {
              .query_id = DRM_I915_QUERY_CS_CYCLES,
              .data_ptr = to_user_pointer(data),
              .length = sizeof(struct drm_i915_query_cs_cycles),
      };

      i915_query_items(i915, &item, 1);
      return item.length;
}
Quoted 2 lines

static bool query_cs_cycles_supported(int fd)
{

Thanks for breaking this down. I sent out a new version with these changes. The only thing different is that I need to pass .length = 0 to query for support. Otherwise I see EFAULT due to NULL data on platforms that support this query.

Regards,
Umesh

Quoted 197 lines
	return __query_cs_cycles(fd, NULL) > 0;
}

static bool engine_has_cs_cycles(int i915, uint16_t class, uint16_t instance)

{
      struct drm_i915_query_cs_cycles ts = {
	       .engine = { class, instance }
      };

      return __query_cs_cycles(i915, &ts) != -ENODEV;
}
Quoted 25 lines
tests/i915/i915_query.c +25 -0
+static void
+__cs_cycles(int i915, struct i915_engine_class_instance *engine)
+{
+       struct drm_i915_query_cs_cycles ts1 = {};
+       struct drm_i915_query_cs_cycles ts2 = {};
+       uint64_t delta_cpu, delta_cs, delta_delta;
+       int i, usable = 0;
+       struct {
+               int32_t id;
+               const char *name;
+       } clock[] = {
+               { CLOCK_MONOTONIC, "CLOCK_MONOTONIC" },
+               { CLOCK_MONOTONIC_RAW, "CLOCK_MONOTONIC_RAW" },
+               { CLOCK_REALTIME, "CLOCK_REALTIME" },
+               { CLOCK_BOOTTIME, "CLOCK_BOOTTIME" },
+               { CLOCK_TAI, "CLOCK_TAI" },
+       };
+
+       igt_debug("engine[%u:%u]\n",
+                 engine->engine_class,
+                 engine->engine_instance);
+
+       /* Try a new clock every 10 iterations. */
+#define NUM_SNAPSHOTS 10
+       for (i = 0; i < NUM_SNAPSHOTS * ARRAY_SIZE(clock); i++) {

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 344

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+               int index = i / NUM_SNAPSHOTS;
+
+               ts1.engine = *engine;
+               ts1.clockid = clock[index].id;
+
+               ts2.engine = *engine;
+               ts2.clockid = clock[index].id;
+
+               __query_cs_cycles(i915, &ts1, 0);
+               __query_cs_cycles(i915, &ts2, 0);

igt_assert_eq(__query_cs_cycles(i915, &ts1), 0);
igt_assert_eq(__query_cs_cycles(i915, &ts2), 0);

Quoted 17 lines
tests/i915/i915_query.c +17 -0
+
+               igt_debug("[1] cpu_ts before %llu, reg read time %llu\n",
+                         ts1.cpu_timestamp[0],
+                         ts1.cpu_timestamp[1]);
+               igt_debug("[1] cs_ts %llu, freq %llu Hz\n",
+                         ts1.cs_cycles, ts1.cs_frequency);
+
+               igt_debug("[2] cpu_ts before %llu, reg read time %llu\n",
+                         ts2.cpu_timestamp[0],
+                         ts2.cpu_timestamp[1]);
+               igt_debug("[2] cs_ts %llu, freq %llu Hz\n",
+                         ts2.cs_cycles, ts2.cs_frequency);
+
+               delta_cpu = ts2.cpu_timestamp[0] - ts1.cpu_timestamp[0];
+               delta_cs = (ts2.cs_cycles - ts1.cs_cycles) *
+                          NSEC_PER_SEC / ts1.cs_frequency;
+

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 371

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+               igt_debug("delta_cpu[%lu], delta_cs[%lu]\n",
+                         delta_cpu, delta_cs);
+
+               delta_delta = delta_cpu > delta_cs ?
+                              delta_cpu - delta_cs :
+                              delta_cs - delta_cpu;
+               igt_debug("delta_delta %lu\n", delta_delta);
+
+               if (delta_delta < 5000)
+                       usable++;

Nothing is keeping the CS awake, its counter is allowed to switch off between reads.

I would run this test with a spinner in the background

uint32_t ctx = gem_context_create_for_engine(i915, engine.class, engine.instance); igt_spin_t *spin = igt_spin_new(i915, ctx);
gem_context_destroy(i915, ctx);

...

igt_spin_free(i915, spin);

And even repeat the test to see if the counter does switch off. Although we can hypothesis that one day it may be replaced by an always running counter.

Quoted 28 lines
tests/i915/i915_query.c +28 -0
+
+               /*
+                * User needs few good snapshots of the timestamps to
+                * synchronize cpu time with cs time. Check if we have enough
+                * usable values before moving to the next clockid.
+                */
+               if (!((i + 1) % NUM_SNAPSHOTS)) {
+                       igt_debug("clock %s\n", clock[index].name);
+                       igt_debug("usable %d\n", usable);
+                       igt_assert(usable > 2);
+                       usable = 0;
+               }
+       }
+}
+
+static void test_cs_cycles(int i915)
+{
+       const struct intel_execution_engine2 *e;
+       struct i915_engine_class_instance engine;
+
+       __for_each_physical_engine(i915, e) {
+               if (engine_has_cs_cycles(i915, e->class, e->instance)) {
+                       engine.engine_class = e->class;
+                       engine.engine_instance = e->instance;
+                       __cs_cycles(i915, &engine);
+               }
+       }
+}

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 409

Quoted 10 lines
tests/i915/i915_query.c +10 -0
+
+static void test_cs_cycles_invalid(int i915)
+{
+       struct i915_engine_class_instance engine;
+       const struct intel_execution_engine2 *e;
+       struct drm_i915_query_cs_cycles ts = {};
+
+       /* get one engine */
+       __for_each_physical_engine(i915, e)
+               break;
	/* sanity check engine selection is valid */
	ts.engine.engine_class = e->class;
	ts.engine.engine_instance = e->instance;
	igt_assert_eq(__query_cs_cycles(i915, &ts), 0);

Otherwise you won't know that the EINVALs are because it didn't like the flags or class or instance in a moment.

tests/i915/i915_query.c eu_available(const struct drm_i915_query_topology_info *topo_info, · line 414

Quoted 4 lines
tests/i915/i915_query.c +4 -0
+       /* bad engines */
+       ts.engine.engine_class = e->class;
+       ts.engine.engine_instance = -1;
+       __query_cs_cycles(i915, &ts, EINVAL);
	igt_assert_eq(__query_cs_cycles(i915, &ts), -EINVAL);
	...
Quoted 35 lines
tests/i915/i915_query.c +31 -0
+
+       ts.engine.engine_class = -1;
+       ts.engine.engine_instance = e->instance;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       ts.engine.engine_class = -1;
+       ts.engine.engine_instance = -1;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* non zero flags */
+       ts.flags = 1;
+       ts.engine.engine_class = e->class;
+       ts.engine.engine_instance = e->instance;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* non zero rsvd field */
+       ts.flags = 0;
+       ts.rsvd = 1;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* bad clockid */
+       ts.rsvd = 0;
+       ts.clockid = -1;
+       __query_cs_cycles(i915, &ts, EINVAL);
+
+       /* sanity check */
+       engine.engine_class = e->class;
+       engine.engine_instance = e->instance;
+       __cs_cycles(i915, &engine);
+}
+
 /*
  * Verify that we get coherent values between the legacy getparam slice/subslice
  * masks and the new topology query.

tests/i915/i915_query.c igt_main · line 965

Quoted 7 lines
tests/i915/i915_query.c +4 -0
@@ -783,6 +959,19 @@ igt_main
                        engines(fd);
        }
 
+       igt_subtest_group {
+               igt_fixture {
+                       igt_require(intel_gen(devid) >= 6);
+                       igt_require(query_cs_cycles_supported(fd));

query_cs_cycles_supported() should cover gen >= 6, and the test itself is not gen specific (i.e no instructions that require a later gen).

Quoted 18 lines

tests/i915/i915_query.c igt_main · line 972

Quoted 7 lines
tests/i915/i915_query.c +7 -0
+               }
+
+               igt_subtest("cs-cycles")
+                       test_cs_cycles(fd);
+
+               igt_subtest("cs-cycles-invalid")
+                       test_cs_cycles_invalid(fd);

Do the invalid check first, it's just neater flow when using --run cs-cycles*

Quoted 8 lines
tests/i915/i915_query.c +2 -1
+       }
+
        igt_fixture {
                close(fd);
        }
--

2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

[igt-dev] ✗ Fi.CI.IGT: failure for i915/perf: Add test to query CS timestamp (rev3)

In reply to Umesh Nerlige Ramappa
== Series Details ==

== Series Details ==

Series: i915/perf: Add test to query CS timestamp (rev3)
URL : https://patchwork.freedesktop.org/series/87553/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_9836_full -> IGTPW_5580_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_5580_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_5580_full, please notify your bug team 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_5580/index.html

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_vm_create@destroy-race:
- shard-tglb: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb6/igt@[email protected]

* {igt@i915_query@cs-cycles} (NEW):
- shard-iclb: NOTRUN -> [SKIP][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb3/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb5/igt@[email protected]

* igt@kms_big_fb@y-tiled-64bpp-rotate-180:
- shard-glk: [PASS][4] -> [FAIL][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-glk1/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk1/igt@[email protected]

New tests
---------

New tests have been introduced between CI_DRM_9836_full and IGTPW_5580_full:

### New IGT tests (2) ###

* igt@i915_query@cs-cycles:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

* igt@i915_query@cs-cycles-invalid:
- Statuses :
- Exec time: [None] s

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

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

### IGT changes ###

#### Issues hit ####

* igt@feature_discovery@display-4x:
- shard-tglb: NOTRUN -> [SKIP][6] ([i915#1839])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][7] ([i915#1839])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb8/igt@[email protected]

* igt@gem_create@create-massive:
- shard-kbl: NOTRUN -> [DMESG-WARN][8] ([i915#3002])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl6/igt@[email protected]

* igt@gem_ctx_param@set-priority-not-supported:
- shard-tglb: NOTRUN -> [SKIP][9] ([fdo#109314])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][10] ([fdo#109314])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb5/igt@[email protected]

* igt@gem_ctx_persistence@clone:
- shard-snb: NOTRUN -> [SKIP][11] ([fdo#109271] / [i915#1099]) +6 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb5/igt@[email protected]

* igt@gem_ctx_persistence@hostile:
- shard-hsw: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#1099])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw4/igt@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: [PASS][13] -> [FAIL][14] ([i915#2842])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl4/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl6/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vcs0:
- shard-tglb: NOTRUN -> [FAIL][15] ([i915#2842]) +5 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vcs1:
- shard-kbl: NOTRUN -> [FAIL][16] ([i915#2842])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-iclb: NOTRUN -> [FAIL][17] ([i915#2842]) +6 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb3/igt@gem_exec_fair@[email protected]
- shard-glk: NOTRUN -> [FAIL][18] ([i915#2842]) +1 similar issue
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [PASS][19] -> [FAIL][20] ([i915#2842])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-tglb2/igt@gem_exec_fair@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][21] -> [FAIL][22] ([i915#2842]) +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-glk7/igt@gem_exec_fair@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- shard-iclb: NOTRUN -> [SKIP][23] ([fdo#109313])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][24] ([fdo#109313])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb3/igt@[email protected]

* igt@gem_exec_params@no-blt:
- shard-tglb: NOTRUN -> [SKIP][25] ([fdo#109283])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][26] ([fdo#109283])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb6/igt@[email protected]

* igt@gem_exec_reloc@basic-wide-active@rcs0:
- shard-snb: NOTRUN -> [FAIL][27] ([i915#2389]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb6/igt@gem_exec_reloc@[email protected]

* igt@gem_huc_copy@huc-copy:
- shard-kbl: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#2190])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@[email protected]

* igt@gem_mmap_offset@clear:
- shard-iclb: [PASS][29] -> [FAIL][30] ([i915#3160])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-iclb4/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb5/igt@[email protected]

* igt@gem_pread@exhaustion:
- shard-snb: NOTRUN -> [WARN][31] ([i915#2658])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb5/igt@[email protected]

* igt@gem_pwrite@basic-exhaustion:
- shard-apl: NOTRUN -> [WARN][32] ([i915#2658])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl3/igt@[email protected]

* igt@gem_userptr_blits@input-checking:
- shard-snb: NOTRUN -> [DMESG-WARN][33] ([i915#3002])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb7/igt@[email protected]

* igt@gem_userptr_blits@mmap-offset-invalidate-active@wb:
- shard-snb: NOTRUN -> [SKIP][34] ([fdo#109271]) +393 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb7/igt@gem_userptr_blits@[email protected]

* igt@gem_userptr_blits@process-exit-mmap-busy@wc:
- shard-apl: NOTRUN -> [SKIP][35] ([fdo#109271] / [i915#1699]) +3 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl3/igt@gem_userptr_blits@[email protected]

* igt@gen7_exec_parse@basic-offset:
- shard-iclb: NOTRUN -> [SKIP][36] ([fdo#109289])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb1/igt@[email protected]

* igt@gen9_exec_parse@bb-start-cmd:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#112306])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][38] ([fdo#112306])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb2/igt@[email protected]

* igt@i915_pm_backlight@fade_with_suspend:
- shard-hsw: NOTRUN -> [SKIP][39] ([fdo#109271] / [i915#3012])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw4/igt@i915_pm_backlight@fade_with_suspend.html

* igt@i915_pm_rpm@dpms-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][40] ([fdo#111644] / [i915#1397] / [i915#2411])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][41] ([fdo#110892])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb4/igt@[email protected]

* igt@i915_pm_rpm@modeset-pc8-residency-stress:
- shard-iclb: NOTRUN -> [SKIP][42] ([fdo#109293] / [fdo#109506])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb4/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- shard-hsw: [PASS][43] -> [INCOMPLETE][44] ([i915#2782])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-hsw4/igt@i915_selftest@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw2/igt@i915_selftest@[email protected]

* igt@kms_big_fb@yf-tiled-64bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#111615]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb2/igt@[email protected]

* igt@kms_big_fb@yf-tiled-8bpp-rotate-0:
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#110723]) +1 similar issue
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb2/igt@[email protected]

* igt@kms_big_joiner@invalid-modeset:
- shard-apl: NOTRUN -> [SKIP][47] ([fdo#109271] / [i915#2705])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl8/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-enable-disable-mode:
- shard-iclb: NOTRUN -> [SKIP][48] ([fdo#109284] / [fdo#111827]) +3 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb5/igt@[email protected]
- shard-hsw: NOTRUN -> [SKIP][49] ([fdo#109271] / [fdo#111827])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw2/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][50] ([fdo#109284] / [fdo#111827]) +1 similar issue
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb2/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][51] ([fdo#109271] / [fdo#111827])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk8/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-storm:
- shard-kbl: NOTRUN -> [SKIP][52] ([fdo#109271] / [fdo#111827]) +10 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@[email protected]

* igt@kms_color@pipe-a-ctm-0-75:
- shard-iclb: NOTRUN -> [FAIL][53] ([i915#1149] / [i915#315])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb3/igt@[email protected]

* igt@kms_color@pipe-a-degamma:
- shard-tglb: NOTRUN -> [FAIL][54] ([i915#1149])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [FAIL][55] ([i915#1149])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb8/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-limited-range:
- shard-apl: NOTRUN -> [SKIP][56] ([fdo#109271] / [fdo#111827]) +22 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl8/igt@[email protected]

* igt@kms_color_chamelium@pipe-invalid-ctm-matrix-sizes:
- shard-snb: NOTRUN -> [SKIP][57] ([fdo#109271] / [fdo#111827]) +24 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb5/igt@[email protected]

* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][58] ([i915#1319])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl8/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-512x512-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][59] ([fdo#109279])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109278] / [fdo#109279])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb7/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-256x256-random:
- shard-glk: NOTRUN -> [SKIP][61] ([fdo#109271]) +31 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk2/igt@[email protected]
- shard-hsw: NOTRUN -> [SKIP][62] ([fdo#109271] / [i915#533]) +4 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw4/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-64x21-sliding:
- shard-iclb: NOTRUN -> [SKIP][63] ([fdo#109278]) +9 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb8/igt@[email protected]

* igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][64] ([fdo#109274] / [fdo#109278]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb2/igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size.html

* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-atomic:
- shard-kbl: NOTRUN -> [DMESG-FAIL][65] ([IGT#6])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl4/igt@[email protected]
- shard-apl: NOTRUN -> [DMESG-FAIL][66] ([IGT#6])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl1/igt@[email protected]

* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [PASS][67] -> [INCOMPLETE][68] ([i915#155] / [i915#180] / [i915#636])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl7/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@[email protected]

* igt@kms_flip@2x-blocking-absolute-wf_vblank:
- shard-tglb: NOTRUN -> [SKIP][69] ([fdo#111825]) +11 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb7/igt@kms_flip@2x-blocking-absolute-wf_vblank.html

* igt@kms_flip@2x-wf_vblank-ts-check:
- shard-iclb: NOTRUN -> [SKIP][70] ([fdo#109274]) +1 similar issue
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb1/igt@kms_flip@2x-wf_vblank-ts-check.html

* igt@kms_flip@flip-vs-suspend@b-dp1:
- shard-apl: [PASS][71] -> [DMESG-WARN][72] ([i915#180]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-apl7/igt@kms_flip@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl8/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [PASS][73] -> [DMESG-WARN][74] ([i915#180]) +3 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl6/igt@kms_flip@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl4/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-hdmi-a1:
- shard-hsw: [PASS][75] -> [INCOMPLETE][76] ([i915#2055])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-hsw2/igt@kms_flip@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw4/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs:
- shard-kbl: NOTRUN -> [FAIL][77] ([i915#2641])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][78] ([i915#2587])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb3/igt@[email protected]
- shard-glk: NOTRUN -> [FAIL][79] ([i915#2628])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk6/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][80] ([i915#2641])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-hsw: NOTRUN -> [SKIP][81] ([fdo#109271]) +55 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-wc:
- shard-glk: [PASS][82] -> [FAIL][83] ([i915#49])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-glk5/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-wc.html
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk1/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@fbc-badstride:
- shard-apl: [PASS][84] -> [FAIL][85] ([i915#49])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-apl7/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl7/igt@[email protected]
- shard-kbl: [PASS][86] -> [FAIL][87] ([i915#49])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl6/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl3/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-iclb: NOTRUN -> [SKIP][88] ([fdo#109280]) +14 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb6/igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-shrfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc:
- shard-kbl: NOTRUN -> [SKIP][89] ([fdo#109271]) +101 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl1/igt@[email protected]

* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-d:
- shard-glk: NOTRUN -> [SKIP][90] ([fdo#109271] / [i915#533])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk1/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][91] ([fdo#109271] / [i915#533]) +2 similar issues
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl7/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#533])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: NOTRUN -> [DMESG-WARN][93] ([i915#180])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][94] ([fdo#108145] / [i915#265]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl6/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
- shard-kbl: NOTRUN -> [FAIL][95] ([fdo#108145] / [i915#265]) +2 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl3/igt@[email protected]

* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> [SKIP][96] ([fdo#109271] / [i915#2733])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl3/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html
- shard-kbl: NOTRUN -> [SKIP][97] ([fdo#109271] / [i915#2733])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html
- shard-glk: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#2733])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk7/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html

* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-iclb: NOTRUN -> [SKIP][99] ([i915#2920]) +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb2/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5:
- shard-apl: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#658]) +6 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl1/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][101] ([fdo#109271] / [i915#658]) +1 similar issue
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk4/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][102] ([fdo#109271] / [i915#658]) +3 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl4/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][103] ([i915#658])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb6/igt@[email protected]

* igt@kms_psr@psr2_dpms:
- shard-iclb: [PASS][104] -> [SKIP][105] ([fdo#109441])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-iclb2/igt@kms_psr@psr2_dpms.html
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb6/igt@kms_psr@psr2_dpms.html

* igt@kms_setmode@basic:
- shard-snb: NOTRUN -> [FAIL][106] ([i915#31])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb5/igt@[email protected]

* igt@nouveau_crc@pipe-a-source-rg:
- shard-iclb: NOTRUN -> [SKIP][107] ([i915#2530]) +1 similar issue
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb3/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][108] ([i915#2530])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb5/igt@[email protected]

* igt@perf@gen8-unprivileged-single-ctx-counters:
- shard-tglb: NOTRUN -> [SKIP][109] ([fdo#109289])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb2/igt@[email protected]

* igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name:
- shard-apl: NOTRUN -> [SKIP][110] ([fdo#109271]) +202 similar issues
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl7/igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name.html

* igt@prime_nv_api@i915_self_import:
- shard-tglb: NOTRUN -> [SKIP][111] ([fdo#109291]) +1 similar issue
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb7/igt@prime_nv_api@i915_self_import.html
- shard-iclb: NOTRUN -> [SKIP][112] ([fdo#109291]) +1 similar issue
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb5/igt@prime_nv_api@i915_self_import.html

* igt@runner@aborted:
- shard-snb: NOTRUN -> [FAIL][113] ([i915#3002] / [i915#698])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-snb7/igt@[email protected]

* igt@sysfs_clients@recycle:
- shard-hsw: [PASS][114] -> [FAIL][115] ([i915#3028])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-hsw2/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-hsw4/igt@[email protected]
- shard-apl: [PASS][116] -> [FAIL][117] ([i915#3028])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-apl8/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl3/igt@[email protected]

* igt@sysfs_clients@recycle-many:
- shard-kbl: [PASS][118] -> [FAIL][119] ([i915#3028])
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl4/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl6/igt@[email protected]

* igt@sysfs_clients@split-10@bcs0:
- shard-apl: NOTRUN -> [SKIP][120] ([fdo#109271] / [i915#3026])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl7/igt@sysfs_clients@[email protected]
- shard-kbl: NOTRUN -> [SKIP][121] ([fdo#109271] / [i915#3026])
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl3/igt@sysfs_clients@[email protected]

#### Possible fixes ####

* igt@feature_discovery@psr2:
- shard-iclb: [SKIP][122] ([i915#658]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-iclb5/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb2/igt@[email protected]

* igt@gem_ctx_persistence@close-replace-race:
- shard-glk: [TIMEOUT][124] ([i915#2918]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-glk7/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk5/igt@[email protected]

* igt@gem_eio@unwedge-stress:
- shard-tglb: [TIMEOUT][126] ([i915#2369] / [i915#3063]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-tglb3/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb2/igt@[email protected]

* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [FAIL][128] ([i915#2846]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl6/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl2/igt@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][130] ([i915#2842]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-glk8/igt@gem_exec_fair@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-glk3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs1:
- shard-tglb: [FAIL][132] ([i915#2842]) -> [PASS][133]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-tglb2/igt@gem_exec_fair@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-tglb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vecs0:
- shard-kbl: [FAIL][134] ([i915#2842]) -> [PASS][135]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-kbl1/igt@gem_exec_fair@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-kbl3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-iclb: [DMESG-WARN][136] ([i915#2803]) -> [PASS][137]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-iclb8/igt@gem_exec_schedule@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-iclb2/igt@gem_exec_schedule@[email protected]

* igt@i915_module_load@reload:
- shard-apl: [DMESG-WARN][138] ([i915#1982]) -> [PASS][139]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-apl3/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5580/shard-apl2/igt@[email protected]

* igt@kms_async_flips@test-time-stamp:
- shard-tglb: [FAIL][140] ([i915#2597]) -> [PASS][141]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9836/shard-tglb8/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/

== Logs ==

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

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev