Skip to contentSkip to conversation

i915/query: Correlate engine and cpu timestamps with better accuracy

PATCH In review Umesh Nerlige Ramappa 3 participants 8 messages Mar 2, 2021 – Mar 3, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i915/query: Correlate engine and cpu timestamps with better accuracy

Perf measurements rely on CPU and engine timestamps to correlate events of interest across these time domains. Current mechanisms get these timestamps separately and the calculated delta between these timestamps lack enough accuracy.

To improve the accuracy of these time measurements to within a few us, add a query that returns the engine and cpu timestamps captured as close to each other as possible.

v2: (Tvrtko)
- document clock reference used
- return cpu timestamp always
- capture cpu time just before lower dword of cs timestamp

v3: (Chris)
- use uncore-rpm
- use __query_cs_timestamp helper

v4: (Lionel)
- Kernel perf subsytem allows users to specify the clock id to be used in perf_event_open. This clock id is used by the perf subsystem to return the appropriate cpu timestamp in perf events. Similarly, let the user pass the clockid to this query so that cpu timestamp corresponds to the clock id requested.

v5: (Tvrtko)
- Use normal ktime accessors instead of fast versions
- Add more uApi documentation

v6: (Lionel)
- Move switch out of spinlock

v7: (Chris)
- cs_timestamp is a misnomer, use cs_cycles instead
- return the cs cycle frequency as well in the query

v8:
- Add platform and engine specific checks

---
 drivers/gpu/drm/i915/i915_query.c | 140 ++++++++++++++++++++++++++++++
 include/uapi/drm/i915_drm.h       |  43 +++++++++
 2 files changed, 183 insertions(+)
drivers/gpu/drm/i915/i915_query.c +140 -0
index fed337ad7b68..763f0f918065 100644
@@ -6,6 +6,8 @@
 
 #include <linux/nospec.h>
 
+#include "gt/intel_engine_pm.h"
+#include "gt/intel_engine_user.h"
 #include "i915_drv.h"
 #include "i915_perf.h"
 #include "i915_query.h"
@@ -90,6 +92,143 @@ static int query_topology_info(struct drm_i915_private *dev_priv,
 	return total_length;
 }
 
+typedef u64 (*__ktime_func_t)(void);
+static __ktime_func_t __clock_id_to_func(clockid_t clk_id)
+{
+	/*
+	 * Use logic same as the perf subsystem to allow user to select the
+	 * reference clock id to be used for timestamps.
+	 */
+	switch (clk_id) {
+	case CLOCK_MONOTONIC:
+		return &ktime_get_ns;
+	case CLOCK_MONOTONIC_RAW:
+		return &ktime_get_raw_ns;
+	case CLOCK_REALTIME:
+		return &ktime_get_real_ns;
+	case CLOCK_BOOTTIME:
+		return &ktime_get_boottime_ns;
+	case CLOCK_TAI:
+		return &ktime_get_clocktai_ns;
+	default:
+		return NULL;
+	}
+}
+
+static inline int
+__read_timestamps(struct intel_uncore *uncore,
+		  i915_reg_t lower_reg,
+		  i915_reg_t upper_reg,
+		  u64 *cs_ts,
+		  u64 *cpu_ts,
+		  __ktime_func_t cpu_clock)
+{
+	u32 upper, lower, old_upper, loop = 0;
+
+	upper = intel_uncore_read_fw(uncore, upper_reg);
+	do {
+		*cpu_ts = cpu_clock();
+		lower = intel_uncore_read_fw(uncore, lower_reg);
+		old_upper = upper;
+		upper = intel_uncore_read_fw(uncore, upper_reg);
+	} while (upper != old_upper && loop++ < 2);
+
+	*cs_ts = (u64)upper << 32 | lower;
+
+	return 0;
+}
+
+static int
+__query_cs_cycles(struct intel_engine_cs *engine,
+		  u64 *cs_ts, u64 *cpu_ts,
+		  __ktime_func_t cpu_clock)
+{
+	struct intel_uncore *uncore = engine->uncore;
+	enum forcewake_domains fw_domains;
+	u32 base = engine->mmio_base;
+	intel_wakeref_t wakeref;
+	int ret;
+
+	fw_domains = intel_uncore_forcewake_for_reg(uncore,
+						    RING_TIMESTAMP(base),
+						    FW_REG_READ);
+
+	with_intel_runtime_pm(uncore->rpm, wakeref) {
+		spin_lock_irq(&uncore->lock);
+		intel_uncore_forcewake_get__locked(uncore, fw_domains);
+
+		ret = __read_timestamps(uncore,
+					RING_TIMESTAMP(base),
+					RING_TIMESTAMP_UDW(base),
+					cs_ts,
+					cpu_ts,
+					cpu_clock);
+
+		intel_uncore_forcewake_put__locked(uncore, fw_domains);
+		spin_unlock_irq(&uncore->lock);
+	}
+
+	return ret;
+}
+
+static int
+query_cs_cycles(struct drm_i915_private *i915,
+		struct drm_i915_query_item *query_item)
+{
+	struct drm_i915_query_cs_cycles __user *query_ptr;
+	struct drm_i915_query_cs_cycles query;
+	struct intel_engine_cs *engine;
+	__ktime_func_t cpu_clock;
+	int ret;
+
+	if (INTEL_GEN(i915) < 6)
+		return -ENODEV;
+
+	query_ptr = u64_to_user_ptr(query_item->data_ptr);
+	ret = copy_query_item(&query, sizeof(query), sizeof(query), query_item);
+	if (ret != 0)
+		return ret;
+
+	if (query.flags)
+		return -EINVAL;
+
+	if (query.rsvd)
+		return -EINVAL;
+
+	cpu_clock = __clock_id_to_func(query.clockid);
+	if (!cpu_clock)
+		return -EINVAL;
+
+	engine = intel_engine_lookup_user(i915,
+					  query.engine.engine_class,
+					  query.engine.engine_instance);
+	if (!engine)
+		return -EINVAL;
+
+	if (IS_GEN(i915, 6) &&
+	    query.engine.engine_class != I915_ENGINE_CLASS_RENDER)
+		return -ENODEV;
+
+	query.cs_frequency = engine->gt->clock_frequency;
+	ret = __query_cs_cycles(engine,
+				&query.cs_cycles,
+				&query.cpu_timestamp,
+				cpu_clock);
+	if (ret)
+		return ret;
+
+	if (put_user(query.cs_frequency, &query_ptr->cs_frequency))
+		return -EFAULT;
+
+	if (put_user(query.cpu_timestamp, &query_ptr->cpu_timestamp))
+		return -EFAULT;
+
+	if (put_user(query.cs_cycles, &query_ptr->cs_cycles))
+		return -EFAULT;
+
+	return sizeof(query);
+}
+
 static int
 query_engine_info(struct drm_i915_private *i915,
 		  struct drm_i915_query_item *query_item)
@@ -424,6 +563,7 @@ static int (* const i915_query_funcs[])(struct drm_i915_private *dev_priv,
 	query_topology_info,
 	query_engine_info,
 	query_perf_config,
+	query_cs_cycles,
 };
 
 int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
include/uapi/drm/i915_drm.h +43 -0

55 lines not on this page · raw message

Signature · 6 lines
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

Thanks a bunch for sharing this!

Quoted 92 lines · Umesh Nerlige Ramappa

Perf measurements rely on CPU and engine timestamps to correlate events of interest across these time domains. Current mechanisms get these timestamps separately and the calculated delta between these timestamps lack enough accuracy.

To improve the accuracy of these time measurements to within a few us, add a query that returns the engine and cpu timestamps captured as close to each other as possible.

v2: (Tvrtko)
- document clock reference used
- return cpu timestamp always
- capture cpu time just before lower dword of cs timestamp

v3: (Chris)
- use uncore-rpm
- use __query_cs_timestamp helper

v4: (Lionel)
- Kernel perf subsytem allows users to specify the clock id to be used in perf_event_open. This clock id is used by the perf subsystem to return the appropriate cpu timestamp in perf events. Similarly, let the user pass the clockid to this query so that cpu timestamp corresponds to the clock id requested.

v5: (Tvrtko)
- Use normal ktime accessors instead of fast versions
- Add more uApi documentation

v6: (Lionel)
- Move switch out of spinlock

v7: (Chris)
- cs_timestamp is a misnomer, use cs_cycles instead
- return the cs cycle frequency as well in the query

v8:
- Add platform and engine specific checks

---
  drivers/gpu/drm/i915/i915_query.c | 140 ++++++++++++++++++++++++++++++
  include/uapi/drm/i915_drm.h       |  43 +++++++++
  2 files changed, 183 insertions(+)
drivers/gpu/drm/i915/i915_query.c +32 -0
index fed337ad7b68..763f0f918065 100644
@@ -6,6 +6,8 @@
 
  #include <linux/nospec.h>
 
+#include "gt/intel_engine_pm.h"
+#include "gt/intel_engine_user.h"
  #include "i915_drv.h"
  #include "i915_perf.h"
  #include "i915_query.h"
@@ -90,6 +92,143 @@ static int query_topology_info(struct drm_i915_private *dev_priv,
  	return total_length;
  }
 
+typedef u64 (*__ktime_func_t)(void);
+static __ktime_func_t __clock_id_to_func(clockid_t clk_id)
+{
+	/*
+	 * Use logic same as the perf subsystem to allow user to select the
+	 * reference clock id to be used for timestamps.
+	 */
+	switch (clk_id) {
+	case CLOCK_MONOTONIC:
+		return &ktime_get_ns;
+	case CLOCK_MONOTONIC_RAW:
+		return &ktime_get_raw_ns;
+	case CLOCK_REALTIME:
+		return &ktime_get_real_ns;
+	case CLOCK_BOOTTIME:
+		return &ktime_get_boottime_ns;
+	case CLOCK_TAI:
+		return &ktime_get_clocktai_ns;
+	default:
+		return NULL;
+	}
+}
+
+static inline int
+__read_timestamps(struct intel_uncore *uncore,
+		  i915_reg_t lower_reg,
+		  i915_reg_t upper_reg,
+		  u64 *cs_ts,
+		  u64 *cpu_ts,
+		  __ktime_func_t cpu_clock)

drivers/gpu/drm/i915/i915_query.c static int query_topology_info(struct drm_i915_private *dev_priv, · line 134

Quoted 10 lines
drivers/gpu/drm/i915/i915_query.c +10 -0
+{
+	u32 upper, lower, old_upper, loop = 0;
+
+	upper = intel_uncore_read_fw(uncore, upper_reg);
+	do {
+		*cpu_ts = cpu_clock();
+		lower = intel_uncore_read_fw(uncore, lower_reg);
+		old_upper = upper;
+		upper = intel_uncore_read_fw(uncore, upper_reg);
+	} while (upper != old_upper && loop++ < 2);

With the 2 cpu timestamps things I mentioned below, this would be

do {

    *cpu_ts0 = cpu_clock();

    lower = intel_uncore_read_fw(uncore, lower_reg);

    *cpu_ts1 = cpu_clock();

    upper = intel_uncore_read_fw(uncore, upper_reg);

} while (upper != old_upper && loop++ < 2);

Quoted 143 lines
drivers/gpu/drm/i915/i915_query.c +98 -0
+
+	*cs_ts = (u64)upper << 32 | lower;
+
+	return 0;
+}
+
+static int
+__query_cs_cycles(struct intel_engine_cs *engine,
+		  u64 *cs_ts, u64 *cpu_ts,
+		  __ktime_func_t cpu_clock)
+{
+	struct intel_uncore *uncore = engine->uncore;
+	enum forcewake_domains fw_domains;
+	u32 base = engine->mmio_base;
+	intel_wakeref_t wakeref;
+	int ret;
+
+	fw_domains = intel_uncore_forcewake_for_reg(uncore,
+						    RING_TIMESTAMP(base),
+						    FW_REG_READ);
+
+	with_intel_runtime_pm(uncore->rpm, wakeref) {
+		spin_lock_irq(&uncore->lock);
+		intel_uncore_forcewake_get__locked(uncore, fw_domains);
+
+		ret = __read_timestamps(uncore,
+					RING_TIMESTAMP(base),
+					RING_TIMESTAMP_UDW(base),
+					cs_ts,
+					cpu_ts,
+					cpu_clock);
+
+		intel_uncore_forcewake_put__locked(uncore, fw_domains);
+		spin_unlock_irq(&uncore->lock);
+	}
+
+	return ret;
+}
+
+static int
+query_cs_cycles(struct drm_i915_private *i915,
+		struct drm_i915_query_item *query_item)
+{
+	struct drm_i915_query_cs_cycles __user *query_ptr;
+	struct drm_i915_query_cs_cycles query;
+	struct intel_engine_cs *engine;
+	__ktime_func_t cpu_clock;
+	int ret;
+
+	if (INTEL_GEN(i915) < 6)
+		return -ENODEV;
+
+	query_ptr = u64_to_user_ptr(query_item->data_ptr);
+	ret = copy_query_item(&query, sizeof(query), sizeof(query), query_item);
+	if (ret != 0)
+		return ret;
+
+	if (query.flags)
+		return -EINVAL;
+
+	if (query.rsvd)
+		return -EINVAL;
+
+	cpu_clock = __clock_id_to_func(query.clockid);
+	if (!cpu_clock)
+		return -EINVAL;
+
+	engine = intel_engine_lookup_user(i915,
+					  query.engine.engine_class,
+					  query.engine.engine_instance);
+	if (!engine)
+		return -EINVAL;
+
+	if (IS_GEN(i915, 6) &&
+	    query.engine.engine_class != I915_ENGINE_CLASS_RENDER)
+		return -ENODEV;
+
+	query.cs_frequency = engine->gt->clock_frequency;
+	ret = __query_cs_cycles(engine,
+				&query.cs_cycles,
+				&query.cpu_timestamp,
+				cpu_clock);
+	if (ret)
+		return ret;
+
+	if (put_user(query.cs_frequency, &query_ptr->cs_frequency))
+		return -EFAULT;
+
+	if (put_user(query.cpu_timestamp, &query_ptr->cpu_timestamp))
+		return -EFAULT;
+
+	if (put_user(query.cs_cycles, &query_ptr->cs_cycles))
+		return -EFAULT;
+
+	return sizeof(query);
+}
+
  static int
  query_engine_info(struct drm_i915_private *i915,
  		  struct drm_i915_query_item *query_item)
@@ -424,6 +563,7 @@ static int (* const i915_query_funcs[])(struct drm_i915_private *dev_priv,
  	query_topology_info,
  	query_engine_info,
  	query_perf_config,
+	query_cs_cycles,
  };
 
  int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
include/uapi/drm/i915_drm.h +20 -0
index 1987e2ea79a3..379ae6e7aeb0 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,45 @@ 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 the cpu timestamp that indicates 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;
+
+	/**

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2341

Quoted 10 lines
include/uapi/drm/i915_drm.h +10 -0
+	 * 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 timestamp in nanoseconds. */
+	__u64 cpu_timestamp;

Would it be possible to have : u64 cpu_timestamps[2];

with cpu_timestamps[0] taken before & cpu_timestamps[1] taken after the cs_cycles, so we can have an idea of how long the read takes.

Quoted 6 lines
include/uapi/drm/i915_drm.h +6 -0
+
+	/**
+	 * 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.

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2357

Quoted 10 lines
include/uapi/drm/i915_drm.h +7 -0
+	 */
+	__s32 clockid;
+
+	/** Must be zero. */
+	__u32 rsvd;
+};
+
  /**
   * struct drm_i915_query_engine_info
   *

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
Quoted 274 lines · Lionel Landwerlin

Thanks a bunch for sharing this!

Quoted 89 lines · Umesh Nerlige Ramappa

Perf measurements rely on CPU and engine timestamps to correlate events of interest across these time domains. Current mechanisms get these timestamps separately and the calculated delta between these timestamps lack enough accuracy.

To improve the accuracy of these time measurements to within a few us, add a query that returns the engine and cpu timestamps captured as close to each other as possible.

v2: (Tvrtko)
- document clock reference used
- return cpu timestamp always
- capture cpu time just before lower dword of cs timestamp

v3: (Chris)
- use uncore-rpm
- use __query_cs_timestamp helper

v4: (Lionel)
- Kernel perf subsytem allows users to specify the clock id to be used in perf_event_open. This clock id is used by the perf subsystem to return the appropriate cpu timestamp in perf events. Similarly, let the user pass the clockid to this query so that cpu timestamp corresponds to the clock id requested.

v5: (Tvrtko)
- Use normal ktime accessors instead of fast versions
- Add more uApi documentation

v6: (Lionel)
- Move switch out of spinlock

v7: (Chris)
- cs_timestamp is a misnomer, use cs_cycles instead
- return the cs cycle frequency as well in the query

v8:
- Add platform and engine specific checks

---
 drivers/gpu/drm/i915/i915_query.c | 140 ++++++++++++++++++++++++++++++
 include/uapi/drm/i915_drm.h       |  43 +++++++++
 2 files changed, 183 insertions(+)
drivers/gpu/drm/i915/i915_query.c +32 -0
index fed337ad7b68..763f0f918065 100644
@@ -6,6 +6,8 @@
 #include <linux/nospec.h>
+#include "gt/intel_engine_pm.h"
+#include "gt/intel_engine_user.h"
 #include "i915_drv.h"
 #include "i915_perf.h"
 #include "i915_query.h"
@@ -90,6 +92,143 @@ static int query_topology_info(struct drm_i915_private *dev_priv,
 	return total_length;
 }
+typedef u64 (*__ktime_func_t)(void);
+static __ktime_func_t __clock_id_to_func(clockid_t clk_id)
+{
+	/*
+	 * Use logic same as the perf subsystem to allow user to select the
+	 * reference clock id to be used for timestamps.
+	 */
+	switch (clk_id) {
+	case CLOCK_MONOTONIC:
+		return &ktime_get_ns;
+	case CLOCK_MONOTONIC_RAW:
+		return &ktime_get_raw_ns;
+	case CLOCK_REALTIME:
+		return &ktime_get_real_ns;
+	case CLOCK_BOOTTIME:
+		return &ktime_get_boottime_ns;
+	case CLOCK_TAI:
+		return &ktime_get_clocktai_ns;
+	default:
+		return NULL;
+	}
+}
+
+static inline int
+__read_timestamps(struct intel_uncore *uncore,
+		  i915_reg_t lower_reg,
+		  i915_reg_t upper_reg,
+		  u64 *cs_ts,
+		  u64 *cpu_ts,
+		  __ktime_func_t cpu_clock)

drivers/gpu/drm/i915/i915_query.c static int query_topology_info(struct drm_i915_private *dev_priv, · line 133

Quoted 10 lines
drivers/gpu/drm/i915/i915_query.c +10 -0
+{
+	u32 upper, lower, old_upper, loop = 0;
+
+	upper = intel_uncore_read_fw(uncore, upper_reg);
+	do {
+		*cpu_ts = cpu_clock();
+		lower = intel_uncore_read_fw(uncore, lower_reg);
+		old_upper = upper;
+		upper = intel_uncore_read_fw(uncore, upper_reg);
+	} while (upper != old_upper && loop++ < 2);

With the 2 cpu timestamps things I mentioned below, this would be

do {

    *cpu_ts0 = cpu_clock();

    lower = intel_uncore_read_fw(uncore, lower_reg);

    *cpu_ts1 = cpu_clock();

    upper = intel_uncore_read_fw(uncore, upper_reg);

} while (upper != old_upper && loop++ < 2);

Quoted 140 lines
drivers/gpu/drm/i915/i915_query.c +98 -0
+
+	*cs_ts = (u64)upper << 32 | lower;
+
+	return 0;
+}
+
+static int
+__query_cs_cycles(struct intel_engine_cs *engine,
+		  u64 *cs_ts, u64 *cpu_ts,
+		  __ktime_func_t cpu_clock)
+{
+	struct intel_uncore *uncore = engine->uncore;
+	enum forcewake_domains fw_domains;
+	u32 base = engine->mmio_base;
+	intel_wakeref_t wakeref;
+	int ret;
+
+	fw_domains = intel_uncore_forcewake_for_reg(uncore,
+						    RING_TIMESTAMP(base),
+						    FW_REG_READ);
+
+	with_intel_runtime_pm(uncore->rpm, wakeref) {
+		spin_lock_irq(&uncore->lock);
+		intel_uncore_forcewake_get__locked(uncore, fw_domains);
+
+		ret = __read_timestamps(uncore,
+					RING_TIMESTAMP(base),
+					RING_TIMESTAMP_UDW(base),
+					cs_ts,
+					cpu_ts,
+					cpu_clock);
+
+		intel_uncore_forcewake_put__locked(uncore, fw_domains);
+		spin_unlock_irq(&uncore->lock);
+	}
+
+	return ret;
+}
+
+static int
+query_cs_cycles(struct drm_i915_private *i915,
+		struct drm_i915_query_item *query_item)
+{
+	struct drm_i915_query_cs_cycles __user *query_ptr;
+	struct drm_i915_query_cs_cycles query;
+	struct intel_engine_cs *engine;
+	__ktime_func_t cpu_clock;
+	int ret;
+
+	if (INTEL_GEN(i915) < 6)
+		return -ENODEV;
+
+	query_ptr = u64_to_user_ptr(query_item->data_ptr);
+	ret = copy_query_item(&query, sizeof(query), sizeof(query), query_item);
+	if (ret != 0)
+		return ret;
+
+	if (query.flags)
+		return -EINVAL;
+
+	if (query.rsvd)
+		return -EINVAL;
+
+	cpu_clock = __clock_id_to_func(query.clockid);
+	if (!cpu_clock)
+		return -EINVAL;
+
+	engine = intel_engine_lookup_user(i915,
+					  query.engine.engine_class,
+					  query.engine.engine_instance);
+	if (!engine)
+		return -EINVAL;
+
+	if (IS_GEN(i915, 6) &&
+	    query.engine.engine_class != I915_ENGINE_CLASS_RENDER)
+		return -ENODEV;
+
+	query.cs_frequency = engine->gt->clock_frequency;
+	ret = __query_cs_cycles(engine,
+				&query.cs_cycles,
+				&query.cpu_timestamp,
+				cpu_clock);
+	if (ret)
+		return ret;
+
+	if (put_user(query.cs_frequency, &query_ptr->cs_frequency))
+		return -EFAULT;
+
+	if (put_user(query.cpu_timestamp, &query_ptr->cpu_timestamp))
+		return -EFAULT;
+
+	if (put_user(query.cs_cycles, &query_ptr->cs_cycles))
+		return -EFAULT;
+
+	return sizeof(query);
+}
+
 static int
 query_engine_info(struct drm_i915_private *i915,
 		  struct drm_i915_query_item *query_item)
@@ -424,6 +563,7 @@ static int (* const i915_query_funcs[])(struct drm_i915_private *dev_priv,
 	query_topology_info,
 	query_engine_info,
 	query_perf_config,
+	query_cs_cycles,
 };
 int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
include/uapi/drm/i915_drm.h +20 -0
index 1987e2ea79a3..379ae6e7aeb0 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,45 @@ 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 the cpu timestamp that indicates 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;
+
+	/**

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2340

Quoted 10 lines
include/uapi/drm/i915_drm.h +10 -0
+	 * 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 timestamp in nanoseconds. */
+	__u64 cpu_timestamp;

Would it be possible to have : u64 cpu_timestamps[2];

Quoted 1 line

with cpu_timestamps[0] taken before & cpu_timestamps[1] taken after the cs_cycles, so we can have an idea of how long the read takes.

Possible, but I thought multiple queries would indirectly provide such information. If query1 returns cpu1 and cs1 time and query2 returns cpu2 and cs2 times. Assuming neither overflowed,

|((cpu2 - cpu1) - (cs1 - cs2))|

should be the worst case time taken to read the register (essentially delta_delta in the IGT test). Thoughts?

Thanks,
Umesh

Quoted 20 lines
Quoted 8 lines
include/uapi/drm/i915_drm.h +6 -0
+
+	/**
+	 * 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.

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2357

Quoted 10 lines
include/uapi/drm/i915_drm.h +7 -0
+	 */
+	__s32 clockid;
+
+	/** Must be zero. */
+	__u32 rsvd;
+};
+
 /**
  * struct drm_i915_query_engine_info
  *

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
Quoted 282 lines · Umesh Nerlige Ramappa
Quoted 281 lines · Lionel Landwerlin

Thanks a bunch for sharing this!

Quoted 91 lines · Umesh Nerlige Ramappa

Perf measurements rely on CPU and engine timestamps to correlate events of interest across these time domains. Current mechanisms get these timestamps separately and the calculated delta between these timestamps lack enough accuracy.

To improve the accuracy of these time measurements to within a few us, add a query that returns the engine and cpu timestamps captured as close to each other as possible.

v2: (Tvrtko)
- document clock reference used
- return cpu timestamp always
- capture cpu time just before lower dword of cs timestamp

v3: (Chris)
- use uncore-rpm
- use __query_cs_timestamp helper

v4: (Lionel)
- Kernel perf subsytem allows users to specify the clock id to be used in perf_event_open. This clock id is used by the perf subsystem to return the appropriate cpu timestamp in perf events. Similarly, let the user pass the clockid to this query so that cpu timestamp corresponds to the clock id requested.

v5: (Tvrtko)
- Use normal ktime accessors instead of fast versions
- Add more uApi documentation

v6: (Lionel)
- Move switch out of spinlock

v7: (Chris)
- cs_timestamp is a misnomer, use cs_cycles instead
- return the cs cycle frequency as well in the query

v8:
- Add platform and engine specific checks

---
 drivers/gpu/drm/i915/i915_query.c | 140 ++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h       |  43 +++++++++

 2 files changed, 183 insertions(+)
drivers/gpu/drm/i915/i915_query.c +7 -0
index fed337ad7b68..763f0f918065 100644
@@ -6,6 +6,8 @@
  #include <linux/nospec.h>
+#include "gt/intel_engine_pm.h"
+#include "gt/intel_engine_user.h"
  #include "i915_drv.h"
  #include "i915_perf.h"
  #include "i915_query.h"
@@ -90,6 +92,143 @@ static int query_topology_info(struct 
 drm_i915_private *dev_priv,
      return total_length;
  }
+typedef u64 (*__ktime_func_t)(void);
+static __ktime_func_t __clock_id_to_func(clockid_t clk_id)
+{
+    /*
+     * Use logic same as the perf subsystem to allow user to select 

the
+     * reference clock id to be used for timestamps. +     */
+    switch (clk_id) {
+    case CLOCK_MONOTONIC:
+        return &ktime_get_ns;
+    case CLOCK_MONOTONIC_RAW:
+        return &ktime_get_raw_ns;
+    case CLOCK_REALTIME:
+        return &ktime_get_real_ns;
+    case CLOCK_BOOTTIME:
+        return &ktime_get_boottime_ns;
+    case CLOCK_TAI:
+        return &ktime_get_clocktai_ns;
+    default:
+        return NULL;
+    }

drivers/gpu/drm/i915/i915_query.c +9 -0
+}
+
+static inline int
+__read_timestamps(struct intel_uncore *uncore,
+          i915_reg_t lower_reg,
+          i915_reg_t upper_reg,
+          u64 *cs_ts,
+          u64 *cpu_ts,
+          __ktime_func_t cpu_clock)

drivers/gpu/drm/i915/i915_query.c static int query_topology_info(struct drm_i915_private *dev_priv, · line 134

Quoted 10 lines
drivers/gpu/drm/i915/i915_query.c +10 -0
+{
+    u32 upper, lower, old_upper, loop = 0;
+
+    upper = intel_uncore_read_fw(uncore, upper_reg);
+    do {
+        *cpu_ts = cpu_clock();
+        lower = intel_uncore_read_fw(uncore, lower_reg);
+        old_upper = upper;
+        upper = intel_uncore_read_fw(uncore, upper_reg);
+    } while (upper != old_upper && loop++ < 2);

With the 2 cpu timestamps things I mentioned below, this would be

do {

    *cpu_ts0 = cpu_clock();

    lower = intel_uncore_read_fw(uncore, lower_reg);

    *cpu_ts1 = cpu_clock();

    upper = intel_uncore_read_fw(uncore, upper_reg);

} while (upper != old_upper && loop++ < 2);

Quoted 145 lines
drivers/gpu/drm/i915/i915_query.c +54 -0
+
+    *cs_ts = (u64)upper << 32 | lower;
+
+    return 0;
+}
+
+static int
+__query_cs_cycles(struct intel_engine_cs *engine,
+          u64 *cs_ts, u64 *cpu_ts,
+          __ktime_func_t cpu_clock)
+{
+    struct intel_uncore *uncore = engine->uncore;
+    enum forcewake_domains fw_domains;
+    u32 base = engine->mmio_base;
+    intel_wakeref_t wakeref;
+    int ret;
+
+    fw_domains = intel_uncore_forcewake_for_reg(uncore,
+                            RING_TIMESTAMP(base),
+                            FW_REG_READ);
+
+    with_intel_runtime_pm(uncore->rpm, wakeref) {
+        spin_lock_irq(&uncore->lock);
+        intel_uncore_forcewake_get__locked(uncore, fw_domains);
+
+        ret = __read_timestamps(uncore,
+                    RING_TIMESTAMP(base),
+                    RING_TIMESTAMP_UDW(base),
+                    cs_ts,
+                    cpu_ts,
+                    cpu_clock);
+
+        intel_uncore_forcewake_put__locked(uncore, fw_domains);
+        spin_unlock_irq(&uncore->lock);
+    }
+
+    return ret;
+}
+
+static int
+query_cs_cycles(struct drm_i915_private *i915,
+        struct drm_i915_query_item *query_item)
+{
+    struct drm_i915_query_cs_cycles __user *query_ptr;
+    struct drm_i915_query_cs_cycles query;
+    struct intel_engine_cs *engine;
+    __ktime_func_t cpu_clock;
+    int ret;
+
+    if (INTEL_GEN(i915) < 6)
+        return -ENODEV;
+
+    query_ptr = u64_to_user_ptr(query_item->data_ptr);
+    ret = copy_query_item(&query, sizeof(query), sizeof(query), 

query_item);
+    if (ret != 0)
+        return ret;

drivers/gpu/drm/i915/i915_query.c +41 -0
+
+    if (query.flags)
+        return -EINVAL;
+
+    if (query.rsvd)
+        return -EINVAL;
+
+    cpu_clock = __clock_id_to_func(query.clockid);
+    if (!cpu_clock)
+        return -EINVAL;
+
+    engine = intel_engine_lookup_user(i915,
+                      query.engine.engine_class,
+                      query.engine.engine_instance);
+    if (!engine)
+        return -EINVAL;
+
+    if (IS_GEN(i915, 6) &&
+        query.engine.engine_class != I915_ENGINE_CLASS_RENDER)
+        return -ENODEV;
+
+    query.cs_frequency = engine->gt->clock_frequency;
+    ret = __query_cs_cycles(engine,
+                &query.cs_cycles,
+                &query.cpu_timestamp,
+                cpu_clock);
+    if (ret)
+        return ret;
+
+    if (put_user(query.cs_frequency, &query_ptr->cs_frequency))
+        return -EFAULT;
+
+    if (put_user(query.cpu_timestamp, &query_ptr->cpu_timestamp))
+        return -EFAULT;
+
+    if (put_user(query.cs_cycles, &query_ptr->cs_cycles))
+        return -EFAULT;
+
+    return sizeof(query);
+}
+

 static int
 query_engine_info(struct drm_i915_private *i915, struct drm_i915_query_item *query_item)

drivers/gpu/drm/i915/i915_query.c +1 -0
@@ -424,6 +563,7 @@ static int (* const i915_query_funcs[])(struct 
 drm_i915_private *dev_priv,
      query_topology_info,
      query_engine_info,
      query_perf_config,
+    query_cs_cycles,
  };
  int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
include/uapi/drm/i915_drm.h +8 -0
index 1987e2ea79a3..379ae6e7aeb0 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,45 @@ 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 the cpu timestamp that indicates when the command streamer cycle
+ * count was captured.
+ */

include/uapi/drm/i915_drm.h +8 -0
+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;
+
+    /**

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2341

Quoted 10 lines
include/uapi/drm/i915_drm.h +10 -0
+     * 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 timestamp in nanoseconds. */
+    __u64 cpu_timestamp;

Would it be possible to have : u64 cpu_timestamps[2];

Quoted 7 lines
Quoted 1 line

with cpu_timestamps[0] taken before & cpu_timestamps[1] taken after the cs_cycles, so we can have an idea of how long the read takes.

Possible, but I thought multiple queries would indirectly provide such information. If query1 returns cpu1 and cs1 time and query2 returns cpu2 and cs2 times. Assuming neither overflowed,

|((cpu2 - cpu1) - (cs1 - cs2))|

should be the worst case time taken to read the register (essentially delta_delta in the IGT test). Thoughts?

Going through 2 syscalls introduces a delay.

I did some measurements and it appears to be in the orders of 20~30us.

While doing the 2 cpu timestamp capture with a single mmio read in between should be below 2us.

We're hoping to go as precise as possible with this :)

-Lionel

Quoted 26 lines

Thanks,
Umesh

Quoted 22 lines
Quoted 20 lines

+
+    /**
+     * 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;

include/uapi/drm/i915_drm.h +5 -0
+
+    /** Must be zero. */
+    __u32 rsvd;
+};
+

 /**
  * struct drm_i915_query_engine_info
  *

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
Quoted 287 lines · Lionel Landwerlin
Quoted 286 lines · Umesh Nerlige Ramappa
Quoted 281 lines · Lionel Landwerlin

Thanks a bunch for sharing this!

Quoted 91 lines · Umesh Nerlige Ramappa

Perf measurements rely on CPU and engine timestamps to correlate events of interest across these time domains. Current mechanisms get these timestamps separately and the calculated delta between these timestamps lack enough accuracy.

To improve the accuracy of these time measurements to within a few us, add a query that returns the engine and cpu timestamps captured as close to each other as possible.

v2: (Tvrtko)
- document clock reference used
- return cpu timestamp always
- capture cpu time just before lower dword of cs timestamp

v3: (Chris)
- use uncore-rpm
- use __query_cs_timestamp helper

v4: (Lionel)
- Kernel perf subsytem allows users to specify the clock id to be used in perf_event_open. This clock id is used by the perf subsystem to return the appropriate cpu timestamp in perf events. Similarly, let the user pass the clockid to this query so that cpu timestamp corresponds to the clock id requested.

v5: (Tvrtko)
- Use normal ktime accessors instead of fast versions
- Add more uApi documentation

v6: (Lionel)
- Move switch out of spinlock

v7: (Chris)
- cs_timestamp is a misnomer, use cs_cycles instead
- return the cs cycle frequency as well in the query

v8:
- Add platform and engine specific checks

---
 drivers/gpu/drm/i915/i915_query.c | 140 ++++++++++++++++++++++++++++++ include/uapi/drm/i915_drm.h       |  43 +++++++++

 2 files changed, 183 insertions(+)
drivers/gpu/drm/i915/i915_query.c +7 -0
index fed337ad7b68..763f0f918065 100644
@@ -6,6 +6,8 @@
  #include <linux/nospec.h>
+#include "gt/intel_engine_pm.h"
+#include "gt/intel_engine_user.h"
  #include "i915_drv.h"
  #include "i915_perf.h"
  #include "i915_query.h"
@@ -90,6 +92,143 @@ static int query_topology_info(struct 
 drm_i915_private *dev_priv,
      return total_length;
  }
+typedef u64 (*__ktime_func_t)(void);
+static __ktime_func_t __clock_id_to_func(clockid_t clk_id)
+{
+    /*
+     * Use logic same as the perf subsystem to allow user to 

select the
+     * reference clock id to be used for timestamps. +     */
+    switch (clk_id) {
+    case CLOCK_MONOTONIC:
+        return &ktime_get_ns;
+    case CLOCK_MONOTONIC_RAW:
+        return &ktime_get_raw_ns;
+    case CLOCK_REALTIME:
+        return &ktime_get_real_ns;
+    case CLOCK_BOOTTIME:
+        return &ktime_get_boottime_ns;
+    case CLOCK_TAI:
+        return &ktime_get_clocktai_ns;
+    default:
+        return NULL;
+    }

drivers/gpu/drm/i915/i915_query.c +9 -0
+}
+
+static inline int
+__read_timestamps(struct intel_uncore *uncore,
+          i915_reg_t lower_reg,
+          i915_reg_t upper_reg,
+          u64 *cs_ts,
+          u64 *cpu_ts,
+          __ktime_func_t cpu_clock)

drivers/gpu/drm/i915/i915_query.c static int query_topology_info(struct drm_i915_private *dev_priv, · line 134

Quoted 10 lines
drivers/gpu/drm/i915/i915_query.c +10 -0
+{
+    u32 upper, lower, old_upper, loop = 0;
+
+    upper = intel_uncore_read_fw(uncore, upper_reg);
+    do {
+        *cpu_ts = cpu_clock();
+        lower = intel_uncore_read_fw(uncore, lower_reg);
+        old_upper = upper;
+        upper = intel_uncore_read_fw(uncore, upper_reg);
+    } while (upper != old_upper && loop++ < 2);

With the 2 cpu timestamps things I mentioned below, this would be

do {

    *cpu_ts0 = cpu_clock();

    lower = intel_uncore_read_fw(uncore, lower_reg);

    *cpu_ts1 = cpu_clock();

    upper = intel_uncore_read_fw(uncore, upper_reg);

} while (upper != old_upper && loop++ < 2);

Quoted 145 lines
drivers/gpu/drm/i915/i915_query.c +54 -0
+
+    *cs_ts = (u64)upper << 32 | lower;
+
+    return 0;
+}
+
+static int
+__query_cs_cycles(struct intel_engine_cs *engine,
+          u64 *cs_ts, u64 *cpu_ts,
+          __ktime_func_t cpu_clock)
+{
+    struct intel_uncore *uncore = engine->uncore;
+    enum forcewake_domains fw_domains;
+    u32 base = engine->mmio_base;
+    intel_wakeref_t wakeref;
+    int ret;
+
+    fw_domains = intel_uncore_forcewake_for_reg(uncore,
+                            RING_TIMESTAMP(base),
+                            FW_REG_READ);
+
+    with_intel_runtime_pm(uncore->rpm, wakeref) {
+        spin_lock_irq(&uncore->lock);
+        intel_uncore_forcewake_get__locked(uncore, fw_domains);
+
+        ret = __read_timestamps(uncore,
+                    RING_TIMESTAMP(base),
+                    RING_TIMESTAMP_UDW(base),
+                    cs_ts,
+                    cpu_ts,
+                    cpu_clock);
+
+        intel_uncore_forcewake_put__locked(uncore, fw_domains);
+        spin_unlock_irq(&uncore->lock);
+    }
+
+    return ret;
+}
+
+static int
+query_cs_cycles(struct drm_i915_private *i915,
+        struct drm_i915_query_item *query_item)
+{
+    struct drm_i915_query_cs_cycles __user *query_ptr;
+    struct drm_i915_query_cs_cycles query;
+    struct intel_engine_cs *engine;
+    __ktime_func_t cpu_clock;
+    int ret;
+
+    if (INTEL_GEN(i915) < 6)
+        return -ENODEV;
+
+    query_ptr = u64_to_user_ptr(query_item->data_ptr);
+    ret = copy_query_item(&query, sizeof(query), sizeof(query), 

query_item);
+    if (ret != 0)
+        return ret;

drivers/gpu/drm/i915/i915_query.c +41 -0
+
+    if (query.flags)
+        return -EINVAL;
+
+    if (query.rsvd)
+        return -EINVAL;
+
+    cpu_clock = __clock_id_to_func(query.clockid);
+    if (!cpu_clock)
+        return -EINVAL;
+
+    engine = intel_engine_lookup_user(i915,
+                      query.engine.engine_class,
+                      query.engine.engine_instance);
+    if (!engine)
+        return -EINVAL;
+
+    if (IS_GEN(i915, 6) &&
+        query.engine.engine_class != I915_ENGINE_CLASS_RENDER)
+        return -ENODEV;
+
+    query.cs_frequency = engine->gt->clock_frequency;
+    ret = __query_cs_cycles(engine,
+                &query.cs_cycles,
+                &query.cpu_timestamp,
+                cpu_clock);
+    if (ret)
+        return ret;
+
+    if (put_user(query.cs_frequency, &query_ptr->cs_frequency))
+        return -EFAULT;
+
+    if (put_user(query.cpu_timestamp, &query_ptr->cpu_timestamp))
+        return -EFAULT;
+
+    if (put_user(query.cs_cycles, &query_ptr->cs_cycles))
+        return -EFAULT;
+
+    return sizeof(query);
+}
+

 static int
 query_engine_info(struct drm_i915_private *i915, struct drm_i915_query_item *query_item)

drivers/gpu/drm/i915/i915_query.c +1 -0
@@ -424,6 +563,7 @@ static int (* const 
 i915_query_funcs[])(struct drm_i915_private *dev_priv,
      query_topology_info,
      query_engine_info,
      query_perf_config,
+    query_cs_cycles,
  };
  int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
include/uapi/drm/i915_drm.h +8 -0
index 1987e2ea79a3..379ae6e7aeb0 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,45 @@ 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 the cpu timestamp that indicates when the command streamer cycle
+ * count was captured.
+ */

include/uapi/drm/i915_drm.h +8 -0
+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;
+
+    /**

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2341

Quoted 10 lines
include/uapi/drm/i915_drm.h +10 -0
+     * 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 timestamp in nanoseconds. */
+    __u64 cpu_timestamp;

Would it be possible to have : u64 cpu_timestamps[2];

Quoted 1 line

with cpu_timestamps[0] taken before & cpu_timestamps[1] taken after the cs_cycles, so we can have an idea of how long the read takes.

Possible, but I thought multiple queries would indirectly provide such information. If query1 returns cpu1 and cs1 time and query2 returns cpu2 and cs2 times. Assuming neither overflowed,

Quoted 9 lines
Quoted 3 lines

|((cpu2 - cpu1) - (cs1 - cs2))|

should be the worst case time taken to read the register (essentially delta_delta in the IGT test). Thoughts?

Going through 2 syscalls introduces a delay.

I did some measurements and it appears to be in the orders of 20~30us.

Have you tried multiple query items in the same call to the query ioctl? Does that make any difference?

Quoted 4 lines

While doing the 2 cpu timestamp capture with a single mmio read in between should be below 2us.

We're hoping to go as precise as possible with this :)

I see. I will post an update.

Can you also share how you intend to use the query result with 2 cpu timestamps? I want to add that to the IGT.

Thanks,
Umesh

Quoted 32 lines

-Lionel

Quoted 26 lines

Thanks,
Umesh

Quoted 22 lines
Quoted 20 lines

+
+    /**
+     * 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;

include/uapi/drm/i915_drm.h +5 -0
+
+    /** Must be zero. */
+    __u32 rsvd;
+};
+

 /**
  * struct drm_i915_query_engine_info
  *

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw
Quoted 295 lines · Umesh Nerlige Ramappa
Quoted 294 lines · Lionel Landwerlin
Quoted 291 lines · Umesh Nerlige Ramappa
Quoted 283 lines · Lionel Landwerlin

Thanks a bunch for sharing this!

Quoted 93 lines · Umesh Nerlige Ramappa

Perf measurements rely on CPU and engine timestamps to correlate events of interest across these time domains. Current mechanisms get these timestamps separately and the calculated delta between these timestamps lack enough accuracy.

To improve the accuracy of these time measurements to within a few us, add a query that returns the engine and cpu timestamps captured as close to each other as possible.

v2: (Tvrtko)
- document clock reference used
- return cpu timestamp always
- capture cpu time just before lower dword of cs timestamp

v3: (Chris)
- use uncore-rpm
- use __query_cs_timestamp helper

v4: (Lionel)
- Kernel perf subsytem allows users to specify the clock id to be used
  in perf_event_open. This clock id is used by the perf subsystem to return the appropriate cpu timestamp in perf events. Similarly, let the user pass the clockid to this query so that cpu timestamp corresponds to the clock id requested.

v5: (Tvrtko)
- Use normal ktime accessors instead of fast versions
- Add more uApi documentation

v6: (Lionel)
- Move switch out of spinlock

v7: (Chris)
- cs_timestamp is a misnomer, use cs_cycles instead
- return the cs cycle frequency as well in the query

v8:
- Add platform and engine specific checks

---
 drivers/gpu/drm/i915/i915_query.c | 140
++++++++++++++++++++++++++++++
 include/uapi/drm/i915_drm.h       |  43 +++++++++

 2 files changed, 183 insertions(+)
drivers/gpu/drm/i915/i915_query.c +7 -0
index fed337ad7b68..763f0f918065 100644
@@ -6,6 +6,8 @@
  #include <linux/nospec.h>
+#include "gt/intel_engine_pm.h"
+#include "gt/intel_engine_user.h"
  #include "i915_drv.h"
  #include "i915_perf.h"
  #include "i915_query.h"
@@ -90,6 +92,143 @@ static int query_topology_info(struct 
 drm_i915_private *dev_priv,
      return total_length;
  }
+typedef u64 (*__ktime_func_t)(void);
+static __ktime_func_t __clock_id_to_func(clockid_t clk_id)
+{
+    /*
+     * Use logic same as the perf subsystem to allow user to 

select the
+     * reference clock id to be used for timestamps. +     */
+    switch (clk_id) {
+    case CLOCK_MONOTONIC:
+        return &ktime_get_ns;
+    case CLOCK_MONOTONIC_RAW:
+        return &ktime_get_raw_ns;
+    case CLOCK_REALTIME:
+        return &ktime_get_real_ns;
+    case CLOCK_BOOTTIME:
+        return &ktime_get_boottime_ns;
+    case CLOCK_TAI:
+        return &ktime_get_clocktai_ns;
+    default:
+        return NULL;
+    }

drivers/gpu/drm/i915/i915_query.c +9 -0
+}
+
+static inline int
+__read_timestamps(struct intel_uncore *uncore,
+          i915_reg_t lower_reg,
+          i915_reg_t upper_reg,
+          u64 *cs_ts,
+          u64 *cpu_ts,
+          __ktime_func_t cpu_clock)

drivers/gpu/drm/i915/i915_query.c static int query_topology_info(struct drm_i915_private *dev_priv, · line 134

Quoted 10 lines
drivers/gpu/drm/i915/i915_query.c +10 -0
+{
+    u32 upper, lower, old_upper, loop = 0;
+
+    upper = intel_uncore_read_fw(uncore, upper_reg);
+    do {
+        *cpu_ts = cpu_clock();
+        lower = intel_uncore_read_fw(uncore, lower_reg);
+        old_upper = upper;
+        upper = intel_uncore_read_fw(uncore, upper_reg);
+    } while (upper != old_upper && loop++ < 2);

With the 2 cpu timestamps things I mentioned below, this would be

do {

    *cpu_ts0 = cpu_clock();

    lower = intel_uncore_read_fw(uncore, lower_reg);

    *cpu_ts1 = cpu_clock();

    upper = intel_uncore_read_fw(uncore, upper_reg);

} while (upper != old_upper && loop++ < 2);

Quoted 145 lines
drivers/gpu/drm/i915/i915_query.c +54 -0
+
+    *cs_ts = (u64)upper << 32 | lower;
+
+    return 0;
+}
+
+static int
+__query_cs_cycles(struct intel_engine_cs *engine,
+          u64 *cs_ts, u64 *cpu_ts,
+          __ktime_func_t cpu_clock)
+{
+    struct intel_uncore *uncore = engine->uncore;
+    enum forcewake_domains fw_domains;
+    u32 base = engine->mmio_base;
+    intel_wakeref_t wakeref;
+    int ret;
+
+    fw_domains = intel_uncore_forcewake_for_reg(uncore,
+                            RING_TIMESTAMP(base),
+                            FW_REG_READ);
+
+    with_intel_runtime_pm(uncore->rpm, wakeref) {
+        spin_lock_irq(&uncore->lock);
+        intel_uncore_forcewake_get__locked(uncore, fw_domains);
+
+        ret = __read_timestamps(uncore,
+                    RING_TIMESTAMP(base),
+                    RING_TIMESTAMP_UDW(base),
+                    cs_ts,
+                    cpu_ts,
+                    cpu_clock);
+
+        intel_uncore_forcewake_put__locked(uncore, fw_domains);
+        spin_unlock_irq(&uncore->lock);
+    }
+
+    return ret;
+}
+
+static int
+query_cs_cycles(struct drm_i915_private *i915,
+        struct drm_i915_query_item *query_item)
+{
+    struct drm_i915_query_cs_cycles __user *query_ptr;
+    struct drm_i915_query_cs_cycles query;
+    struct intel_engine_cs *engine;
+    __ktime_func_t cpu_clock;
+    int ret;
+
+    if (INTEL_GEN(i915) < 6)
+        return -ENODEV;
+
+    query_ptr = u64_to_user_ptr(query_item->data_ptr);
+    ret = copy_query_item(&query, sizeof(query), sizeof(query), 

query_item);
+    if (ret != 0)
+        return ret;

drivers/gpu/drm/i915/i915_query.c +41 -0
+
+    if (query.flags)
+        return -EINVAL;
+
+    if (query.rsvd)
+        return -EINVAL;
+
+    cpu_clock = __clock_id_to_func(query.clockid);
+    if (!cpu_clock)
+        return -EINVAL;
+
+    engine = intel_engine_lookup_user(i915,
+                      query.engine.engine_class,
+                      query.engine.engine_instance);
+    if (!engine)
+        return -EINVAL;
+
+    if (IS_GEN(i915, 6) &&
+        query.engine.engine_class != I915_ENGINE_CLASS_RENDER)
+        return -ENODEV;
+
+    query.cs_frequency = engine->gt->clock_frequency;
+    ret = __query_cs_cycles(engine,
+                &query.cs_cycles,
+                &query.cpu_timestamp,
+                cpu_clock);
+    if (ret)
+        return ret;
+
+    if (put_user(query.cs_frequency, &query_ptr->cs_frequency))
+        return -EFAULT;
+
+    if (put_user(query.cpu_timestamp, &query_ptr->cpu_timestamp))
+        return -EFAULT;
+
+    if (put_user(query.cs_cycles, &query_ptr->cs_cycles))
+        return -EFAULT;
+
+    return sizeof(query);
+}
+

 static int
 query_engine_info(struct drm_i915_private *i915, struct drm_i915_query_item *query_item)

drivers/gpu/drm/i915/i915_query.c +1 -0
@@ -424,6 +563,7 @@ static int (* const i915_query_funcs[])(struct 
 drm_i915_private *dev_priv,
      query_topology_info,
      query_engine_info,
      query_perf_config,
+    query_cs_cycles,
  };
  int i915_query_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
include/uapi/drm/i915_drm.h +8 -0
index 1987e2ea79a3..379ae6e7aeb0 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,45 @@ 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 the cpu timestamp that indicates when the command streamer cycle
+ * count was captured.
+ */

include/uapi/drm/i915_drm.h +8 -0
+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;
+
+    /**

include/uapi/drm/i915_drm.h struct drm_i915_engine_info { · line 2341

Quoted 10 lines
include/uapi/drm/i915_drm.h +10 -0
+     * 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 timestamp in nanoseconds. */
+    __u64 cpu_timestamp;

Would it be possible to have : u64 cpu_timestamps[2];

Quoted 1 line

with cpu_timestamps[0] taken before & cpu_timestamps[1] taken after the cs_cycles, so we can have an idea of how long the read takes.

Possible, but I thought multiple queries would indirectly provide such information. If query1 returns cpu1 and cs1 time and query2 returns cpu2 and cs2 times. Assuming neither overflowed,

|((cpu2 - cpu1) - (cs1 - cs2))|

should be the worst case time taken to read the register (essentially delta_delta in the IGT test). Thoughts?

Quoted 6 lines
Quoted 4 lines

Going through 2 syscalls introduces a delay.

I did some measurements and it appears to be in the orders of 20~30us.

Have you tried multiple query items in the same call to the query ioctl?  Does that make any difference?

Yeah, it was the average :/

-Lionel

Quoted 4 lines
Quoted 4 lines

While doing the 2 cpu timestamp capture with a single mmio read in between should be below 2us.

Quoted 41 lines
Quoted 1 line

We're hoping to go as precise as possible with this :)

I see. I will post an update.

Can you also share how you intend to use the query result with 2 cpu timestamps? I want to add that to the IGT.

Thanks,
Umesh

Quoted 32 lines

-Lionel

Quoted 26 lines

Thanks,
Umesh

Quoted 22 lines
Quoted 20 lines

+
+    /**
+     * 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;

include/uapi/drm/i915_drm.h +5 -0
+
+    /** Must be zero. */
+    __u32 rsvd;
+};
+

 /**
  * struct drm_i915_query_engine_info
  *

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#6 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for i915/query: Correlate engine and cpu timestamps with better accuracy

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

== Series Details ==

Series: i915/query: Correlate engine and cpu timestamps with better accuracy
URL : https://patchwork.freedesktop.org/series/87552/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_9823 -> Patchwork_19746
====================================================

Summary
-------

**WARNING**

Minor unknown changes coming with Patchwork_19746 need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_19746, 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/Patchwork_19746/index.html

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

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

### IGT changes ###

#### Warnings ####

* igt@i915_pm_rpm@module-reload:
- fi-glk-dsi: [DMESG-WARN][1] ([i915#1982]) -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/fi-glk-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-glk-dsi/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_basic@cs-compute:
- fi-elk-e7500: NOTRUN -> [SKIP][3] ([fdo#109271]) +46 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-elk-e7500/igt@amdgpu/[email protected]

* igt@amdgpu/amd_basic@cs-sdma:
- fi-kbl-guc: NOTRUN -> [SKIP][4] ([fdo#109271]) +58 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-guc/igt@amdgpu/[email protected]

* igt@amdgpu/amd_cs_nop@nop-compute0:
- fi-cml-s: NOTRUN -> [SKIP][5] ([fdo#109315]) +17 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-cml-s/igt@amdgpu/[email protected]

* igt@gem_exec_fence@basic-wait@bcs0:
- fi-cml-s: NOTRUN -> [SKIP][6] ([i915#1208]) +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-cml-s/igt@gem_exec_fence@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-cml-s: NOTRUN -> [SKIP][7] ([i915#2190])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-cml-s/igt@[email protected]
- fi-kbl-guc: NOTRUN -> [SKIP][8] ([fdo#109271] / [i915#2190])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-guc/igt@[email protected]

* igt@gem_tiled_fence_blits@basic:
- fi-kbl-8809g: [PASS][9] -> [TIMEOUT][10] ([i915#3145])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/fi-kbl-8809g/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-8809g/igt@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][11] -> [FAIL][12] ([i915#1372])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-7500u/igt@[email protected]

* igt@kms_chamelium@dp-hpd-fast:
- fi-cml-s: NOTRUN -> [SKIP][13] ([fdo#109284] / [fdo#111827]) +8 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-cml-s/igt@[email protected]

* igt@kms_chamelium@vga-hpd-fast:
- fi-kbl-guc: NOTRUN -> [SKIP][14] ([fdo#109271] / [fdo#111827]) +8 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-guc/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- fi-cml-s: NOTRUN -> [SKIP][15] ([fdo#109285])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-cml-s/igt@[email protected]

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-guc: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#533])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-guc/igt@[email protected]
- fi-cml-s: NOTRUN -> [SKIP][17] ([fdo#109278] / [i915#533])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-cml-s/igt@[email protected]

#### Possible fixes ####

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

* igt@gem_linear_blits@basic:
- fi-kbl-8809g: [TIMEOUT][20] ([i915#2502]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/fi-kbl-8809g/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-kbl-8809g/igt@[email protected]

* igt@i915_selftest@live@client:
- fi-glk-dsi: [DMESG-FAIL][22] ([i915#3047]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/fi-glk-dsi/igt@i915_selftest@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/fi-glk-dsi/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1208]: https://gitlab.freedesktop.org/drm/intel/issues/1208
[i915#1222]: https://gitlab.freedesktop.org/drm/intel/issues/1222
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2502]: https://gitlab.freedesktop.org/drm/intel/issues/2502
[i915#3047]: https://gitlab.freedesktop.org/drm/intel/issues/3047
[i915#3145]: https://gitlab.freedesktop.org/drm/intel/issues/3145
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533

Participating hosts (38 -> 35)
------------------------------

Additional (3): fi-cml-s fi-kbl-guc fi-elk-e7500
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-cml-drallion fi-bdw-samus

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

* Linux: CI_DRM_9823 -> Patchwork_19746

CI-20190529: 20190529
CI_DRM_9823: d559dcad6da00e498bb2c41967a9e5487545b8ba @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6020: 8382d9e87bba39ecc6fa879b2491e28c7fb2e3c7 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19746: ec60068b1dccef4673089e53c75f7f1c1ca82df7 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

ec60068b1dcc i915/query: Correlate engine and cpu timestamps with better accuracy

== Logs ==

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

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#7 lore raw

[Intel-gfx] ✓ Fi.CI.IGT: success for i915/query: Correlate engine and cpu timestamps with better accuracy

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

== Series Details ==

Series: i915/query: Correlate engine and cpu timestamps with better accuracy
URL : https://patchwork.freedesktop.org/series/87552/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_9823_full -> Patchwork_19746_full
====================================================

Summary
-------

**WARNING**

Minor unknown changes coming with Patchwork_19746_full need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_19746_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

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

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

### IGT changes ###

#### Warnings ####

* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-iclb: [SKIP][1] ([i915#3116]) -> [FAIL][2] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb8/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb1/igt@[email protected]

* igt@runner@aborted:
- shard-skl: ([FAIL][3], [FAIL][4], [FAIL][5], [FAIL][6], [FAIL][7], [FAIL][8], [FAIL][9], [FAIL][10], [FAIL][11]) ([i915#1436] / [i915#1814] / [i915#2029] / [i915#2426] / [i915#2724] / [i915#3002]) -> ([FAIL][12], [FAIL][13], [FAIL][14], [FAIL][15], [FAIL][16], [FAIL][17]) ([i915#1814] / [i915#2029] / [i915#2724] / [i915#3002])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl2/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl3/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl9/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl4/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl3/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl5/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl6/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl3/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl1/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl3/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_persistence@legacy-engines-queued:
- shard-snb: NOTRUN -> [SKIP][18] ([fdo#109271] / [i915#1099]) +5 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-snb6/igt@[email protected]

* igt@gem_ctx_persistence@replace@rcs0:
- shard-skl: [PASS][19] -> [FAIL][20] ([i915#2410])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl1/igt@gem_ctx_persistence@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl10/igt@gem_ctx_persistence@[email protected]

* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [PASS][21] -> [FAIL][22] ([i915#2842]) +3 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl1/igt@gem_exec_fair@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl3/igt@gem_exec_fair@[email protected]

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

* igt@gem_exec_reloc@basic-wide-active@vcs1:
- shard-iclb: NOTRUN -> [FAIL][24] ([i915#2389]) +4 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb2/igt@gem_exec_reloc@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-apl: NOTRUN -> [DMESG-WARN][25] ([i915#1610])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl7/igt@gem_exec_schedule@[email protected]

* igt@gem_pwrite@basic-exhaustion:
- shard-snb: NOTRUN -> [WARN][26] ([i915#2658]) +1 similar issue
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-snb2/igt@[email protected]

* igt@gem_render_copy@x-tiled-to-vebox-yf-tiled:
- shard-iclb: NOTRUN -> [SKIP][27] ([i915#768])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@gem_softpin@evict-snoop-interruptible:
- shard-iclb: NOTRUN -> [SKIP][28] ([fdo#109312])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

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

* igt@gem_userptr_blits@mmap-offset-invalidate-active@wb:
- shard-kbl: NOTRUN -> [SKIP][30] ([fdo#109271]) +70 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl1/igt@gem_userptr_blits@[email protected]

* igt@gen9_exec_parse@batch-without-end:
- shard-iclb: NOTRUN -> [SKIP][31] ([fdo#112306])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@i915_selftest@live@client:
- shard-glk: [PASS][32] -> [DMESG-FAIL][33] ([i915#3047])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk9/igt@i915_selftest@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk6/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@hangcheck:
- shard-snb: NOTRUN -> [INCOMPLETE][34] ([i915#2782])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-snb6/igt@i915_selftest@[email protected]

* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [PASS][35] -> [FAIL][36] ([i915#2521])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl8/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl1/igt@[email protected]

* igt@kms_atomic_transition@modeset-transition-nonblocking@2x-outputs:
- shard-glk: [PASS][37] -> [DMESG-WARN][38] ([i915#118] / [i915#95])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk9/igt@kms_atomic_transition@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk2/igt@kms_atomic_transition@[email protected]

* igt@kms_big_fb@linear-8bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][39] ([fdo#110725] / [fdo#111614])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_big_joiner@basic:
- shard-iclb: NOTRUN -> [SKIP][40] ([i915#2705])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][41] ([fdo#109271] / [i915#2705])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl7/igt@[email protected]

* igt@kms_ccs@pipe-c-crc-primary-rotation-180:
- shard-skl: NOTRUN -> [SKIP][42] ([fdo#109271] / [fdo#111304])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl10/igt@[email protected]

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

* igt@kms_color@pipe-d-ctm-0-5:
- shard-iclb: NOTRUN -> [SKIP][44] ([fdo#109278] / [i915#1149])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

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

* igt@kms_color_chamelium@pipe-a-ctm-max:
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#109284] / [fdo#111827]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_color_chamelium@pipe-b-ctm-max:
- shard-skl: NOTRUN -> [SKIP][47] ([fdo#109271] / [fdo#111827]) +15 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl8/igt@[email protected]

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

* igt@kms_content_protection@legacy:
- shard-iclb: NOTRUN -> [SKIP][49] ([fdo#109300] / [fdo#111066])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_content_protection@srm:
- shard-apl: NOTRUN -> [TIMEOUT][50] ([i915#1319])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl1/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-512x170-sliding:
- shard-iclb: NOTRUN -> [SKIP][51] ([fdo#109278] / [fdo#109279])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-64x64-offscreen:
- shard-skl: [PASS][52] -> [FAIL][53] ([i915#54])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl5/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][54] -> [DMESG-WARN][55] ([i915#180]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl2/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl6/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- shard-tglb: [PASS][56] -> [FAIL][57] ([i915#2346])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb8/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb2/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-legacy:
- shard-skl: [PASS][58] -> [FAIL][59] ([i915#2346])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl8/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl4/igt@[email protected]

* igt@kms_cursor_legacy@pipe-d-single-move:
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109278]) +2 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_flip@2x-nonexisting-fb:
- shard-iclb: NOTRUN -> [SKIP][61] ([fdo#109274]) +2 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-tglb: [PASS][62] -> [FAIL][63] ([i915#2598])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb2/igt@kms_flip@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb7/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a1:
- shard-glk: [PASS][64] -> [FAIL][65] ([i915#79])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk5/igt@kms_flip@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk3/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-kbl: NOTRUN -> [SKIP][66] ([fdo#109271] / [i915#2642])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-blt:
- shard-apl: NOTRUN -> [FAIL][67] ([i915#49])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-blt:
- shard-skl: NOTRUN -> [SKIP][68] ([fdo#109271]) +106 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl4/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-indfb-draw-render:
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109280]) +7 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-mmap-cpu:
- shard-snb: NOTRUN -> [SKIP][70] ([fdo#109271]) +253 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-snb2/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-mmap-cpu.html

* igt@kms_hdr@bpc-switch-suspend:
- shard-apl: NOTRUN -> [DMESG-WARN][71] ([i915#180]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl7/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][72] ([i915#1188])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl10/igt@[email protected]

* igt@kms_pipe_crc_basic@hang-read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][73] ([fdo#109271] / [i915#533])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl1/igt@[email protected]

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

* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-skl: NOTRUN -> [FAIL][75] ([fdo#108145] / [i915#265])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl4/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][76] ([i915#265])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl7/igt@[email protected]

* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-5:
- shard-apl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#658]) +4 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl1/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-skl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#658])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl10/igt@[email protected]

* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [PASS][79] -> [SKIP][80] ([fdo#109441]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb1/igt@kms_psr@psr2_no_drrs.html

* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][81] ([fdo#109271]) +165 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl1/igt@[email protected]

* igt@kms_writeback@writeback-check-output:
- shard-iclb: NOTRUN -> [SKIP][82] ([i915#2437])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@kms_writeback@writeback-pixel-formats:
- shard-skl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#2437]) +1 similar issue
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl8/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#2437])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl1/igt@[email protected]

* igt@perf@gen12-oa-tlb-invalidate:
- shard-iclb: NOTRUN -> [SKIP][85] ([fdo#109289])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@perf@polling-parameterized:
- shard-tglb: [PASS][86] -> [FAIL][87] ([i915#1542])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb3/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb3/igt@[email protected]

* igt@prime_nv_api@nv_i915_import_twice_check_flink_name:
- shard-iclb: NOTRUN -> [SKIP][88] ([fdo#109291])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@prime_nv_api@nv_i915_import_twice_check_flink_name.html

* igt@sysfs_clients@recycle:
- shard-kbl: [PASS][89] -> [FAIL][90] ([i915#3028])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl2/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl4/igt@[email protected]

* igt@sysfs_clients@recycle-many:
- shard-iclb: [PASS][91] -> [FAIL][92] ([i915#3028])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb3/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb1/igt@[email protected]
- shard-glk: [PASS][93] -> [FAIL][94] ([i915#3028])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk6/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk6/igt@[email protected]
- shard-tglb: [PASS][95] -> [FAIL][96] ([i915#3028])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb2/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb7/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_persistence@many-contexts:
- shard-iclb: [INCOMPLETE][97] ([i915#3057]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb4/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@[email protected]

* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [FAIL][99] ([i915#2842]) -> [PASS][100] +2 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb7/igt@gem_exec_fair@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb8/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@rcs0:
- shard-glk: [FAIL][101] ([i915#2842]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk8/igt@gem_exec_fair@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [FAIL][103] ([i915#2842]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb4/igt@gem_exec_fair@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb8/igt@gem_exec_fair@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-skl: [DMESG-WARN][105] ([i915#2803]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl7/igt@gem_exec_schedule@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl8/igt@gem_exec_schedule@[email protected]

* igt@gem_exec_whisper@basic-queues-forked-all:
- shard-glk: [DMESG-WARN][107] ([i915#118] / [i915#95]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk8/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk8/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- shard-tglb: [SKIP][109] ([i915#2190]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb6/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb1/igt@[email protected]

* igt@gem_mmap_gtt@cpuset-big-copy-odd:
- shard-iclb: [FAIL][111] -> [PASS][112] +1 similar issue
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb6/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb5/igt@[email protected]

* igt@gen9_exec_parse@allowed-all:
- shard-skl: [DMESG-WARN][113] ([i915#1436] / [i915#716]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl2/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl8/igt@[email protected]

* igt@kms_async_flips@test-time-stamp:
- shard-tglb: [FAIL][115] ([i915#2574]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-tglb2/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-tglb7/igt@[email protected]

* igt@kms_color@pipe-b-ctm-0-25:
- shard-skl: [DMESG-WARN][117] ([i915#1982]) -> [PASS][118]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl8/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl1/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [INCOMPLETE][119] ([i915#155]) -> [PASS][120]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl3/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl2/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-128x42-offscreen:
- shard-skl: [FAIL][121] ([i915#54]) -> [PASS][122] +1 similar issue
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl4/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl9/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [FAIL][123] ([i915#72]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk4/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk8/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@b-hdmi-a2:
- shard-glk: [FAIL][125] ([i915#2122]) -> [PASS][126]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk5/igt@kms_flip@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk3/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][127] ([i915#180]) -> [PASS][128] +3 similar issues
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl7/igt@kms_flip@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl7/igt@kms_flip@[email protected]
- shard-apl: [DMESG-WARN][129] ([i915#180]) -> [PASS][130]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-apl1/igt@kms_flip@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-apl2/igt@kms_flip@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][131] ([fdo#108145] / [i915#265]) -> [PASS][132] +1 similar issue
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl2/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl8/igt@[email protected]

* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][133] ([fdo#109441]) -> [PASS][134] +3 similar issues
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb8/igt@kms_psr@psr2_sprite_plane_move.html
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [DMESG-WARN][135] ([i915#180] / [i915#295]) -> [PASS][136]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl1/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl3/igt@[email protected]

* igt@perf@polling-small-buf:
- shard-skl: [FAIL][137] ([i915#1722]) -> [PASS][138]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-skl6/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-skl9/igt@[email protected]

* igt@sysfs_clients@busy@bcs0:
- shard-kbl: [FAIL][139] ([i915#3009]) -> [PASS][140]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl3/igt@sysfs_clients@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-kbl2/igt@sysfs_clients@[email protected]

#### Warnings ####

* igt@gem_exec_balancer@hang:
- shard-iclb: [INCOMPLETE][141] ([i915#1895] / [i915#3031]) -> [INCOMPLETE][142] ([i915#1895])
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb4/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb2/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][143] ([i915#1804] / [i915#2684]) -> [WARN][144] ([i915#2684])
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb4/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb2/igt@[email protected]

* igt@kms_atomic_transition@modeset-transition-nonblocking@1x-outputs:
- shard-glk: [DMESG-FAIL][145] ([i915#118] / [i915#95]) -> [DMESG-WARN][146] ([i915#118] / [i915#95])
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-glk9/igt@kms_atomic_transition@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-glk2/igt@kms_atomic_transition@[email protected]

* igt@kms_content_protection@dp-mst-lic-type-0:
- shard-iclb: [FAIL][147] -> [SKIP][148] ([i915#3116])
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-iclb1/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19746/shard-iclb6/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-atomic:
- shard-kbl: [DMESG-FAIL][149] ([IGT#6] / [i915#1982]) -> [DMESG-FAIL][150] ([IGT#6])
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9823/shard-kbl7/igt@[email protected]
[150]: https://intel-gfx-c

== Logs ==

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

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx