Skip to contentSkip to conversation

Fixes and improvements to GuC logging and error capture

PATCH In review [email protected] 5 participants 34 messages Jul 28, 2022 – Sep 12, 2022 1 message not in the archive

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

cover Fixes and improvements to GuC logging and error capture

From: John Harrison <[email protected]>

Fix bugs and improve the usability/effectiveness of GuC logging and GuC related error captures.

Alan Previn (1):
drm/i915/guc: Add a helper for log buffer size

Chris Wilson (1):
drm/i915/guc: Use streaming loads to speed up dumping the guc log

John Harrison (5):
drm/i915/guc: Fix capture size warning and bump the size drm/i915/guc: Add GuC <-> kernel time stamp translation information drm/i915/guc: Record CTB info in error logs drm/i915/guc: Make GuC log sizes runtime configurable drm/i915/guc: Reduce spam from error capture

 drivers/gpu/drm/i915/gt/intel_gt_regs.h       |   2 +
 drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  72 +++--
 drivers/gpu/drm/i915/gt/uc/intel_guc.h        |   2 +
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    | 113 ++++----
 .../gpu/drm/i915/gt/uc/intel_guc_capture.h    |   1 -
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 253 +++++++++++++++---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +--
 drivers/gpu/drm/i915/i915_gpu_error.c         |  67 ++++-
 drivers/gpu/drm/i915/i915_gpu_error.h         |  21 +-
 drivers/gpu/drm/i915/i915_params.c            |  12 +
 drivers/gpu/drm/i915/i915_params.h            |   3 +
 11 files changed, 427 insertions(+), 161 deletions(-)
Signature · 1 line
2.37.1
#1 lore raw

PATCH 1/7 drm/i915/guc: Add a helper for log buffer size

From: Alan Previn <[email protected]>

Add a helper to get GuC log buffer size.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 49 ++++++++++++----------
 1 file changed, 27 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +27 -22
index 25b2d7ce6640d..492bbf419d4df 100644
@@ -15,6 +15,32 @@
 
 static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
+static u32 intel_guc_log_size(struct intel_guc_log *log)
+{
+	/*
+	 *  GuC Log buffer Layout:
+	 *
+	 *  NB: Ordering must follow "enum guc_log_buffer_type".
+	 *
+	 *  +===============================+ 00B
+	 *  |      Debug state header       |
+	 *  +-------------------------------+ 32B
+	 *  |    Crash dump state header    |
+	 *  +-------------------------------+ 64B
+	 *  |     Capture state header      |
+	 *  +-------------------------------+ 96B
+	 *  |                               |
+	 *  +===============================+ PAGE_SIZE (4KB)
+	 *  |          Debug logs           |
+	 *  +===============================+ + DEBUG_SIZE
+	 *  |        Crash Dump logs        |
+	 *  +===============================+ + CRASH_SIZE
+	 *  |         Capture logs          |
+	 *  +===============================+ + CAPTURE_SIZE
+	 */
+	return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+}
+
 /**
  * DOC: GuC firmware log
  *
@@ -461,32 +487,11 @@ int intel_guc_log_create(struct intel_guc_log *log)
 
 	GEM_BUG_ON(log->vma);
 
-	/*
-	 *  GuC Log buffer Layout
-	 * (this ordering must follow "enum guc_log_buffer_type" definition)
-	 *
-	 *  +===============================+ 00B
-	 *  |      Debug state header       |
-	 *  +-------------------------------+ 32B
-	 *  |    Crash dump state header    |
-	 *  +-------------------------------+ 64B
-	 *  |     Capture state header      |
-	 *  +-------------------------------+ 96B
-	 *  |                               |
-	 *  +===============================+ PAGE_SIZE (4KB)
-	 *  |          Debug logs           |
-	 *  +===============================+ + DEBUG_SIZE
-	 *  |        Crash Dump logs        |
-	 *  +===============================+ + CRASH_SIZE
-	 *  |         Capture logs          |
-	 *  +===============================+ + CAPTURE_SIZE
-	 */
 	if (intel_guc_capture_output_min_size_est(guc) > CAPTURE_BUFFER_SIZE)
 		DRM_WARN("GuC log buffer for state_capture maybe too small. %d < %d\n",
 			 CAPTURE_BUFFER_SIZE, intel_guc_capture_output_min_size_est(guc));
 
-	guc_log_size = PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE +
-		       CAPTURE_BUFFER_SIZE;
+	guc_log_size = intel_guc_log_size(log);
 
 	vma = intel_guc_allocate_vma(guc, guc_log_size);
 	if (IS_ERR(vma)) {
Signature · 1 line
2.37.1
Reviewed-by on v1 1/7
#2 lore raw

Re: [PATCH 1/7] drm/i915/guc: Add a helper for log buffer size

Something minor in comments, so conditional R-B (please fix on the way in or reply to correct me):

Quoted 20 lines · John C

From: Alan Previn <[email protected]>

Add a helper to get GuC log buffer size.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 49 ++++++++++++----------
 1 file changed, 27 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1 -0
index 25b2d7ce6640d..492bbf419d4df 100644
@@ -15,6 +15,32 @@
 
 static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
+static u32 intel_guc_log_size(struct intel_guc_log *log)

drivers/gpu/drm/i915/gt/uc/intel_guc_log.c line 28

Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +9 -0
+{
+	/*
+	 *  GuC Log buffer Layout:
+	 *
+	 *  NB: Ordering must follow "enum guc_log_buffer_type".
+	 *
+	 *  +===============================+ 00B
+	 *  |      Debug state header       |
+	 *  +-------------------------------+ 32B
 

Something we might have missed in prior updates but i think the bufer state is now 36 bytes long no? (9 dwords).

Quoted 56 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +16 -0
+	 *  |    Crash dump state header    |
+	 *  +-------------------------------+ 64B
+	 *  |     Capture state header      |
+	 *  +-------------------------------+ 96B
+	 *  |                               |
+	 *  +===============================+ PAGE_SIZE (4KB)
+	 *  |          Debug logs           |
+	 *  +===============================+ + DEBUG_SIZE
+	 *  |        Crash Dump logs        |
+	 *  +===============================+ + CRASH_SIZE
+	 *  |         Capture logs          |
+	 *  +===============================+ + CAPTURE_SIZE
+	 */
+	return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+}
+
 /**
  * DOC: GuC firmware log

*

drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1 -22
@@ -461,32 +487,11 @@ int intel_guc_log_create(struct intel_guc_log *log)
 
 	GEM_BUG_ON(log->vma);
 
-	/*
-	 *  GuC Log buffer Layout
-	 * (this ordering must follow "enum guc_log_buffer_type" definition)
-	 *
-	 *  +===============================+ 00B
-	 *  |      Debug state header       |
-	 *  +-------------------------------+ 32B
-	 *  |    Crash dump state header    |
-	 *  +-------------------------------+ 64B
-	 *  |     Capture state header      |
-	 *  +-------------------------------+ 96B
-	 *  |                               |
-	 *  +===============================+ PAGE_SIZE (4KB)
-	 *  |          Debug logs           |
-	 *  +===============================+ + DEBUG_SIZE
-	 *  |        Crash Dump logs        |
-	 *  +===============================+ + CRASH_SIZE
-	 *  |         Capture logs          |
-	 *  +===============================+ + CAPTURE_SIZE
-	 */
 	if (intel_guc_capture_output_min_size_est(guc) > CAPTURE_BUFFER_SIZE)
 		DRM_WARN("GuC log buffer for state_capture maybe too small. %d < %d\n",
 			 CAPTURE_BUFFER_SIZE, intel_guc_capture_output_min_size_est(guc));
 
-	guc_log_size = PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE +
-		       CAPTURE_BUFFER_SIZE;
+	guc_log_size = intel_guc_log_size(log);
 
 	vma = intel_guc_allocate_vma(guc, guc_log_size);
 	if (IS_ERR(vma)) {
Signature · 1 line
2.37.1
#3 lore raw

Re: [PATCH 1/7] drm/i915/guc: Add a helper for log buffer size

Quoted 24 lines · Alan Previn

Something minor in comments, so conditional R-B (please fix on the way in or reply to correct me):

Quoted 19 lines · John C

From: Alan Previn <[email protected]>

Add a helper to get GuC log buffer size.

---
  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 49 ++++++++++++----------
  1 file changed, 27 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +0 -0
index 25b2d7ce6640d..492bbf419d4df 100644
@@ -15,6 +15,32 @@
 
  static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
Quoted 12 lines

drivers/gpu/drm/i915/gt/uc/intel_guc_log.c

Quoted 11 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +10 -0
+static u32 intel_guc_log_size(struct intel_guc_log *log)
+{
+	/*
+	 *  GuC Log buffer Layout:
+	 *
+	 *  NB: Ordering must follow "enum guc_log_buffer_type".
+	 *
+	 *  +===============================+ 00B
+	 *  |      Debug state header       |
+	 *  +-------------------------------+ 32B
 

Something we might have missed in prior updates but i think the bufer state is now 36 bytes long no? (9 dwords).

Good catch. Yes, an extra word was added some while back.

John.

Quoted 58 lines
Quoted 58 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +16 -0
+	 *  |    Crash dump state header    |
+	 *  +-------------------------------+ 64B
+	 *  |     Capture state header      |
+	 *  +-------------------------------+ 96B
+	 *  |                               |
+	 *  +===============================+ PAGE_SIZE (4KB)
+	 *  |          Debug logs           |
+	 *  +===============================+ + DEBUG_SIZE
+	 *  |        Crash Dump logs        |
+	 *  +===============================+ + CRASH_SIZE
+	 *  |         Capture logs          |
+	 *  +===============================+ + CAPTURE_SIZE
+	 */
+	return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+}
+
  /**
   * DOC: GuC firmware log
   *
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1 -22
@@ -461,32 +487,11 @@ int intel_guc_log_create(struct intel_guc_log *log)
 
  	GEM_BUG_ON(log->vma);
 
-	/*
-	 *  GuC Log buffer Layout
-	 * (this ordering must follow "enum guc_log_buffer_type" definition)
-	 *
-	 *  +===============================+ 00B
-	 *  |      Debug state header       |
-	 *  +-------------------------------+ 32B
-	 *  |    Crash dump state header    |
-	 *  +-------------------------------+ 64B
-	 *  |     Capture state header      |
-	 *  +-------------------------------+ 96B
-	 *  |                               |
-	 *  +===============================+ PAGE_SIZE (4KB)
-	 *  |          Debug logs           |
-	 *  +===============================+ + DEBUG_SIZE
-	 *  |        Crash Dump logs        |
-	 *  +===============================+ + CRASH_SIZE
-	 *  |         Capture logs          |
-	 *  +===============================+ + CAPTURE_SIZE
-	 */
  	if (intel_guc_capture_output_min_size_est(guc) > CAPTURE_BUFFER_SIZE)
  		DRM_WARN("GuC log buffer for state_capture maybe too small. %d < %d\n",
  			 CAPTURE_BUFFER_SIZE, intel_guc_capture_output_min_size_est(guc));
 
-	guc_log_size = PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE +
-		       CAPTURE_BUFFER_SIZE;
+	guc_log_size = intel_guc_log_size(log);
 
  	vma = intel_guc_allocate_vma(guc, guc_log_size);
  	if (IS_ERR(vma)) {
Signature · 1 line
2.37.1
#4 lore raw

PATCH 2/7 drm/i915/guc: Fix capture size warning and bump the size

In reply to [email protected]

From: John Harrison <[email protected]>

There was a size check to warn if the GuC error state capture buffer allocation would be too small to fit a reasonable amount of capture data for the current platform. Unfortunately, the test was done too early in the boot sequence and was actually testing 'if(-ENODEV > size)'.

Move the check to be later. The check is only used to print a warning message, so it doesn't really matter how early or late it is done. Note that it is not possible to dynamically size the buffer because the allocation needs to be done before the engine information is available (at least, it would be in the intended two-phase GuC init process).

Now that the check works, it is reporting size too small for newer platforms. The check includes a 3x oversample multiplier to allow for multiple error captures to be bufferd by GuC before i915 has a chance to read them out. This is less important than simply being big enough to fit the first capture.

So a) bump the default size to be large enough for one capture minimum and b) make the warning only if one capture won't fit, instead use a notice for the 3x size.

Note that the size estimate is a worst case scenario. Actual captures will likely be smaller.

Lastly, use drm_warn istead of DRM_WARN as the former provides more infmration and the latter is deprecated.

---
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    | 40 ++++++++++++++-----
 .../gpu/drm/i915/gt/uc/intel_guc_capture.h    |  1 -
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    |  4 --
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  4 +-
 4 files changed, 31 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +29 -11
index 75257bd20ff01..b54b7883320b1 100644
@@ -600,10 +600,8 @@ intel_guc_capture_getnullheader(struct intel_guc *guc,
 	return 0;
 }
 
-#define GUC_CAPTURE_OVERBUFFER_MULTIPLIER 3
-
-int
-intel_guc_capture_output_min_size_est(struct intel_guc *guc)
+static int
+guc_capture_output_min_size_est(struct intel_guc *guc)
 {
 	struct intel_gt *gt = guc_to_gt(guc);
 	struct intel_engine_cs *engine;
@@ -623,13 +621,8 @@ intel_guc_capture_output_min_size_est(struct intel_guc *guc)
 	 * For each engine instance, there would be 1 x guc_state_capture_group_t output
 	 * followed by 3 x guc_state_capture_t lists. The latter is how the register
 	 * dumps are split across different register types (where the '3' are global vs class
-	 * vs instance). Finally, let's multiply the whole thing by 3x (just so we are
-	 * not limited to just 1 round of data in a worst case full register dump log)
-	 *
-	 * NOTE: intel_guc_log that allocates the log buffer would round this size up to
-	 * a power of two.
+	 * vs instance).
 	 */
-
 	for_each_engine(engine, gt, id) {
 		worst_min_size += sizeof(struct guc_state_capture_group_header_t) +
 					 (3 * sizeof(struct guc_state_capture_header_t));
@@ -649,7 +642,30 @@ intel_guc_capture_output_min_size_est(struct intel_guc *guc)
 
 	worst_min_size += (num_regs * sizeof(struct guc_mmio_reg));
 
-	return (worst_min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER);
+	return worst_min_size;
+}
+
+/*
+ * Add on a 3x multiplier to allow for multiple back-to-back captures occurring
+ * before the i915 can read the data out and process it
+ */
+#define GUC_CAPTURE_OVERBUFFER_MULTIPLIER 3
+
+static void check_guc_capture_size(struct intel_guc *guc)
+{
+	struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
+	int min_size = guc_capture_output_min_size_est(guc);
+	int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+
+	if (min_size < 0)
+		drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
+			 min_size);
+	else if (min_size > CAPTURE_BUFFER_SIZE)
+		drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
+			 CAPTURE_BUFFER_SIZE, min_size);
+	else if (spare_size > CAPTURE_BUFFER_SIZE)
+		drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
+			   CAPTURE_BUFFER_SIZE, spare_size, min_size);
 }
 
 /*
@@ -1580,5 +1596,7 @@ int intel_guc_capture_init(struct intel_guc *guc)
 	INIT_LIST_HEAD(&guc->capture->outlist);
 	INIT_LIST_HEAD(&guc->capture->cachelist);
 
+	check_guc_capture_size(guc);
+
 	return 0;
 }
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h +0 -1
index d3d7bd0b6db64..fbd3713c7832d 100644
@@ -21,7 +21,6 @@ int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *m,
 void intel_guc_capture_get_matching_node(struct intel_gt *gt, struct intel_engine_coredump *ee,
 					 struct intel_context *ce);
 void intel_guc_capture_process(struct intel_guc *guc);
-int intel_guc_capture_output_min_size_est(struct intel_guc *guc);
 int intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
 			      void **outptr);
 int intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +0 -4
index 492bbf419d4df..991d4a02248dc 100644
@@ -487,10 +487,6 @@ int intel_guc_log_create(struct intel_guc_log *log)
 
 	GEM_BUG_ON(log->vma);
 
-	if (intel_guc_capture_output_min_size_est(guc) > CAPTURE_BUFFER_SIZE)
-		DRM_WARN("GuC log buffer for state_capture maybe too small. %d < %d\n",
-			 CAPTURE_BUFFER_SIZE, intel_guc_capture_output_min_size_est(guc));
-
 	guc_log_size = intel_guc_log_size(log);
 
 	vma = intel_guc_allocate_vma(guc, guc_log_size);
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +2 -2
index 18007e639be99..dc9715411d626 100644
@@ -22,11 +22,11 @@ struct intel_guc;
 #elif defined(CONFIG_DRM_I915_DEBUG_GEM)
 #define CRASH_BUFFER_SIZE	SZ_1M
 #define DEBUG_BUFFER_SIZE	SZ_2M
-#define CAPTURE_BUFFER_SIZE	SZ_1M
+#define CAPTURE_BUFFER_SIZE	SZ_4M
 #else
 #define CRASH_BUFFER_SIZE	SZ_8K
 #define DEBUG_BUFFER_SIZE	SZ_64K
-#define CAPTURE_BUFFER_SIZE	SZ_16K
+#define CAPTURE_BUFFER_SIZE	SZ_2M
 #endif
 
 /*
Signature · 1 line
2.37.1
Reviewed-by on v1 2/7
#5 lore raw

Re: [Intel-gfx] [PATCH 2/7] drm/i915/guc: Fix capture size warning and bump the size

Straight forward change - LGTM.

Quoted 159 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

There was a size check to warn if the GuC error state capture buffer allocation would be too small to fit a reasonable amount of capture data for the current platform. Unfortunately, the test was done too early in the boot sequence and was actually testing 'if(-ENODEV > size)'.

Move the check to be later. The check is only used to print a warning message, so it doesn't really matter how early or late it is done. Note that it is not possible to dynamically size the buffer because the allocation needs to be done before the engine information is available (at least, it would be in the intended two-phase GuC init process).

Now that the check works, it is reporting size too small for newer platforms. The check includes a 3x oversample multiplier to allow for multiple error captures to be bufferd by GuC before i915 has a chance to read them out. This is less important than simply being big enough to fit the first capture.

So a) bump the default size to be large enough for one capture minimum and b) make the warning only if one capture won't fit, instead use a notice for the 3x size.

Note that the size estimate is a worst case scenario. Actual captures will likely be smaller.

Lastly, use drm_warn istead of DRM_WARN as the former provides more infmration and the latter is deprecated.

---
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    | 40 ++++++++++++++-----
 .../gpu/drm/i915/gt/uc/intel_guc_capture.h    |  1 -
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    |  4 --
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  4 +-
 4 files changed, 31 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +29 -11
index 75257bd20ff01..b54b7883320b1 100644
@@ -600,10 +600,8 @@ intel_guc_capture_getnullheader(struct intel_guc *guc,
 	return 0;
 }
 
-#define GUC_CAPTURE_OVERBUFFER_MULTIPLIER 3
-
-int
-intel_guc_capture_output_min_size_est(struct intel_guc *guc)
+static int
+guc_capture_output_min_size_est(struct intel_guc *guc)
 {
 	struct intel_gt *gt = guc_to_gt(guc);
 	struct intel_engine_cs *engine;
@@ -623,13 +621,8 @@ intel_guc_capture_output_min_size_est(struct intel_guc *guc)
 	 * For each engine instance, there would be 1 x guc_state_capture_group_t output
 	 * followed by 3 x guc_state_capture_t lists. The latter is how the register
 	 * dumps are split across different register types (where the '3' are global vs class
-	 * vs instance). Finally, let's multiply the whole thing by 3x (just so we are
-	 * not limited to just 1 round of data in a worst case full register dump log)
-	 *
-	 * NOTE: intel_guc_log that allocates the log buffer would round this size up to
-	 * a power of two.
+	 * vs instance).
 	 */
-
 	for_each_engine(engine, gt, id) {
 		worst_min_size += sizeof(struct guc_state_capture_group_header_t) +
 					 (3 * sizeof(struct guc_state_capture_header_t));
@@ -649,7 +642,30 @@ intel_guc_capture_output_min_size_est(struct intel_guc *guc)
 
 	worst_min_size += (num_regs * sizeof(struct guc_mmio_reg));
 
-	return (worst_min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER);
+	return worst_min_size;
+}
+
+/*
+ * Add on a 3x multiplier to allow for multiple back-to-back captures occurring
+ * before the i915 can read the data out and process it
+ */
+#define GUC_CAPTURE_OVERBUFFER_MULTIPLIER 3
+
+static void check_guc_capture_size(struct intel_guc *guc)
+{
+	struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
+	int min_size = guc_capture_output_min_size_est(guc);
+	int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+
+	if (min_size < 0)
+		drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
+			 min_size);
+	else if (min_size > CAPTURE_BUFFER_SIZE)
+		drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
+			 CAPTURE_BUFFER_SIZE, min_size);
+	else if (spare_size > CAPTURE_BUFFER_SIZE)
+		drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
+			   CAPTURE_BUFFER_SIZE, spare_size, min_size);
 }
 
 /*
@@ -1580,5 +1596,7 @@ int intel_guc_capture_init(struct intel_guc *guc)
 	INIT_LIST_HEAD(&guc->capture->outlist);
 	INIT_LIST_HEAD(&guc->capture->cachelist);
 
+	check_guc_capture_size(guc);
+
 	return 0;
 }
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h +0 -1
index d3d7bd0b6db64..fbd3713c7832d 100644
@@ -21,7 +21,6 @@ int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *m,
 void intel_guc_capture_get_matching_node(struct intel_gt *gt, struct intel_engine_coredump *ee,
 					 struct intel_context *ce);
 void intel_guc_capture_process(struct intel_guc *guc);
-int intel_guc_capture_output_min_size_est(struct intel_guc *guc);
 int intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
 			      void **outptr);
 int intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +0 -4
index 492bbf419d4df..991d4a02248dc 100644
@@ -487,10 +487,6 @@ int intel_guc_log_create(struct intel_guc_log *log)
 
 	GEM_BUG_ON(log->vma);
 
-	if (intel_guc_capture_output_min_size_est(guc) > CAPTURE_BUFFER_SIZE)
-		DRM_WARN("GuC log buffer for state_capture maybe too small. %d < %d\n",
-			 CAPTURE_BUFFER_SIZE, intel_guc_capture_output_min_size_est(guc));
-
 	guc_log_size = intel_guc_log_size(log);
 
 	vma = intel_guc_allocate_vma(guc, guc_log_size);
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +2 -2
index 18007e639be99..dc9715411d626 100644
@@ -22,11 +22,11 @@ struct intel_guc;
 #elif defined(CONFIG_DRM_I915_DEBUG_GEM)
 #define CRASH_BUFFER_SIZE	SZ_1M
 #define DEBUG_BUFFER_SIZE	SZ_2M
-#define CAPTURE_BUFFER_SIZE	SZ_1M
+#define CAPTURE_BUFFER_SIZE	SZ_4M
 #else
 #define CRASH_BUFFER_SIZE	SZ_8K
 #define DEBUG_BUFFER_SIZE	SZ_64K
-#define CAPTURE_BUFFER_SIZE	SZ_16K
+#define CAPTURE_BUFFER_SIZE	SZ_2M
 #endif
 
 /*
Signature · 1 line
2.37.1
#6 lore raw

PATCH 3/7 drm/i915/guc: Add GuC <-> kernel time stamp translation information

In reply to [email protected]

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

---
 drivers/gpu/drm/i915/gt/intel_gt_regs.h    |  2 ++
 drivers/gpu/drm/i915/gt/uc/intel_guc.c     | 19 +++++++++++++++++++
 drivers/gpu/drm/i915/gt/uc/intel_guc.h     |  2 ++
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  2 ++
 drivers/gpu/drm/i915/i915_gpu_error.c      | 12 ++++++++++++
 drivers/gpu/drm/i915/i915_gpu_error.h      |  3 +++
 6 files changed, 40 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 60d6eb5f245b7..fc7979bd91db5 100644
@@ -1007,6 +1007,8 @@
 #define   GEN11_LSN_UNSLCVC_GAFS_HALF_CL2_MAXALLOC	(1 << 9)
 #define   GEN11_LSN_UNSLCVC_GAFS_HALF_SF_MAXALLOC	(1 << 7)
 
+#define GUCPMTIMESTAMP				_MMIO(0xc3e8)
+
 #define __GEN9_RCS0_MOCS0			0xc800
 #define GEN9_GFX_MOCS(i)			_MMIO(__GEN9_RCS0_MOCS0 + (i) * 4)
 #define __GEN9_VCS0_MOCS0			0xc900
drivers/gpu/drm/i915/gt/uc/intel_guc.c +19 -0
index 2706a8c650900..ab4aacc516aa4 100644
@@ -389,6 +389,25 @@ void intel_guc_write_params(struct intel_guc *guc)
 	intel_uncore_forcewake_put(uncore, FORCEWAKE_GT);
 }
 
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p)
+{
+	struct intel_gt *gt = guc_to_gt(guc);
+	intel_wakeref_t wakeref;
+	u32 stamp = 0;
+	u64 ktime;
+
+	intel_device_info_print_runtime(RUNTIME_INFO(gt->i915), p);
+
+	with_intel_runtime_pm(&gt->i915->runtime_pm, wakeref)
+		stamp = intel_uncore_read(gt->uncore, GUCPMTIMESTAMP);
+	ktime = ktime_get_boottime_ns();
+
+	drm_printf(p, "Kernel timestamp: 0x%08llX [%llu]\n", ktime, ktime);
+	drm_printf(p, "GuC timestamp: 0x%08X [%u]\n", stamp, stamp);
+	drm_printf(p, "CS timestamp frequency: %u Hz, %u ns\n",
+		   gt->clock_frequency, gt->clock_period_ns);
+}
+
 int intel_guc_init(struct intel_guc *guc)
 {
 	struct intel_gt *gt = guc_to_gt(guc);
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
index a7acffbf15d1f..804133df1ac9b 100644
@@ -464,4 +464,6 @@ void intel_guc_load_status(struct intel_guc *guc, struct drm_printer *p);
 
 void intel_guc_write_barrier(struct intel_guc *guc);
 
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p);
+
 #endif
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +2 -0
index 991d4a02248dc..07d31ae32f765 100644
@@ -764,6 +764,8 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
 	if (!obj)
 		return 0;
 
+	intel_guc_dump_time_info(guc, p);
+
 	map = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
 	if (IS_ERR(map)) {
 		DRM_DEBUG("Failed to pin object\n");
drivers/gpu/drm/i915/i915_gpu_error.c +12 -0
index 32e92651ef7c2..addba75252343 100644
@@ -678,6 +678,7 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,
 
 	intel_uc_fw_dump(&error_uc->guc_fw, &p);
 	intel_uc_fw_dump(&error_uc->huc_fw, &p);
+	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->timestamp);
 	intel_gpu_error_print_vma(m, NULL, error_uc->guc_log);
 }
 
@@ -720,6 +721,8 @@ static void err_print_gt_global_nonguc(struct drm_i915_error_state_buf *m,
 	int i;
 
 	err_printf(m, "GT awake: %s\n", str_yes_no(gt->awake));
+	err_printf(m, "CS timestamp frequency: %u Hz, %d ns\n",
+		   gt->clock_frequency, gt->clock_period_ns);
 	err_printf(m, "EIR: 0x%08x\n", gt->eir);
 	err_printf(m, "PGTBL_ER: 0x%08x\n", gt->pgtbl_er);
 
@@ -1675,6 +1678,13 @@ gt_record_uc(struct intel_gt_coredump *gt,
 	 */
 	error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL);
 	error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL);
+
+	/*
+	 * Save the GuC log and include a timestamp reference for converting the
+	 * log times to system times (in conjunction with the error->boottime and
+	 * gt->clock_frequency fields saved elsewhere).
+	 */
+	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
 	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
 						"GuC log buffer", compress);
 
@@ -1833,6 +1843,8 @@ static void gt_record_global_regs(struct intel_gt_coredump *gt)
 static void gt_record_info(struct intel_gt_coredump *gt)
 {
 	memcpy(&gt->info, &gt->_gt->info, sizeof(struct intel_gt_info));
+	gt->clock_frequency = gt->_gt->clock_frequency;
+	gt->clock_period_ns = gt->_gt->clock_period_ns;
 }
 
 /*
drivers/gpu/drm/i915/i915_gpu_error.h +3 -0
index 55a143b92d10e..d8a8b3d529e09 100644
@@ -150,6 +150,8 @@ struct intel_gt_coredump {
 	u32 gtt_cache;
 	u32 aux_err; /* gen12 */
 	u32 gam_done; /* gen12 */
+	u32 clock_frequency;
+	u32 clock_period_ns;
 
 	/* Display related */
 	u32 derrmr;
@@ -164,6 +166,7 @@ struct intel_gt_coredump {
 		struct intel_uc_fw guc_fw;
 		struct intel_uc_fw huc_fw;
 		struct i915_vma_coredump *guc_log;
+		u32 timestamp;
 		bool is_guc_capture;
 	} *uc;
 
Signature · 1 line
2.37.1
#7 lore raw

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

I have a question on below code. Everything else looked good. Will r-b as soon as we can close on below question ...alan

Quoted 11 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

drivers/gpu/drm/i915/i915_gpu_error.c gt_record_uc(struct intel_gt_coredump *gt, · line 1687

Quoted 10 lines
drivers/gpu/drm/i915/i915_gpu_error.c +7 -0
@@ -1675,6 +1678,13 @@ gt_record_uc(struct intel_gt_coredump *gt,
 	 */
 	error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL);
 	error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL);
+
+	/*
+	 * Save the GuC log and include a timestamp reference for converting the
+	 * log times to system times (in conjunction with the error->boottime and
+	 * gt->clock_frequency fields saved elsewhere).
+	 */
+	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);

Alan:this register is in the GUC-SHIM domain and so unless i am mistaken u might need to ensure we hold a wakeref so that are getting a live value of the real timestamp register that this register is mirror-ing and not a stale snapshot. Or was this already done farther up the stack? Or are we doing the opposite - in which case we should ensure we drop al
wakeref prior to this point. (which i am not sure is a reliable method since we wouldnt know what GuC ref was at).

Quoted 3 lines
drivers/gpu/drm/i915/i915_gpu_error.c +0 -0
 	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
 						"GuC log buffer", compress);
 
#8 lore raw

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

Quoted 23 lines · Alan Previn

I have a question on below code. Everything else looked good. Will r-b as soon as we can close on below question ...alan

Quoted 17 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

drivers/gpu/drm/i915/i915_gpu_error.c +3 -0
@@ -1675,6 +1678,13 @@ gt_record_uc(struct intel_gt_coredump *gt,
  	 */
  	error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL);
  	error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL);
+
+	/*
+	 * Save the GuC log and include a timestamp reference for converting the
Quoted 8 lines

drivers/gpu/drm/i915/i915_gpu_error.c gt_record_uc(struct intel_gt_coredump *gt, · line 1687

Quoted 4 lines
drivers/gpu/drm/i915/i915_gpu_error.c +4 -0
+	 * log times to system times (in conjunction with the error->boottime and
+	 * gt->clock_frequency fields saved elsewhere).
+	 */
+	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);

Alan:this register is in the GUC-SHIM domain and so unless i am mistaken u might need to ensure we hold a wakeref so that are getting a live value of the real timestamp register that this register is mirror-ing and not a stale snapshot. Or was this already done farther up the stack? Or are we doing the opposite - in which case we should ensure we drop al
wakeref prior to this point. (which i am not sure is a reliable method since we wouldnt know what GuC ref was at).

The intel_uncore_read() does a forcewake acquire implicitly.

Not sure what you mean about dropping all wakerefs prior to this point?

John.

Quoted 3 lines
Quoted 3 lines
drivers/gpu/drm/i915/i915_gpu_error.c +0 -0
  	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
  						"GuC log buffer", compress);
 
#9 lore raw

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

Sounds good - thanks. (ignore the "doing the opposite" comment).

Quoted 41 lines · John C
Quoted 23 lines · Alan Previn

I have a question on below code. Everything else looked good. Will r-b as soon as we can close on below question ...alan

Quoted 17 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

drivers/gpu/drm/i915/i915_gpu_error.c +3 -0
@@ -1675,6 +1678,13 @@ gt_record_uc(struct intel_gt_coredump *gt,
  	 */
  	error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL);
  	error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL);
+
+	/*
+	 * Save the GuC log and include a timestamp reference for converting the
Quoted 8 lines

drivers/gpu/drm/i915/i915_gpu_error.c gt_record_uc(struct intel_gt_coredump *gt, · line 1687

Quoted 4 lines
drivers/gpu/drm/i915/i915_gpu_error.c +4 -0
+	 * log times to system times (in conjunction with the error->boottime and
+	 * gt->clock_frequency fields saved elsewhere).
+	 */
+	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);

Alan:this register is in the GUC-SHIM domain and so unless i am mistaken u might need to ensure we hold a wakeref so that are getting a live value of the real timestamp register that this register is mirror-ing and not a stale snapshot. Or was this already done farther up the stack? Or are we doing the opposite - in which case we should ensure we drop al
wakeref prior to this point. (which i am not sure is a reliable method since we wouldnt know what GuC ref was at).

The intel_uncore_read() does a forcewake acquire implicitly.

Not sure what you mean about dropping all wakerefs prior to this point?

John.

Quoted 3 lines
Quoted 3 lines
drivers/gpu/drm/i915/i915_gpu_error.c +0 -0
  	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
  						"GuC log buffer", compress);
 
maintainer
#10 lore raw

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

In reply to [email protected]
Quoted 36 lines · On Wed, 27 Jul 2022, [email protected] wrote:

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

---
 drivers/gpu/drm/i915/gt/intel_gt_regs.h    |  2 ++
 drivers/gpu/drm/i915/gt/uc/intel_guc.c     | 19 +++++++++++++++++++
 drivers/gpu/drm/i915/gt/uc/intel_guc.h     |  2 ++
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  2 ++
 drivers/gpu/drm/i915/i915_gpu_error.c      | 12 ++++++++++++
 drivers/gpu/drm/i915/i915_gpu_error.h      |  3 +++
 6 files changed, 40 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 60d6eb5f245b7..fc7979bd91db5 100644
@@ -1007,6 +1007,8 @@
 #define   GEN11_LSN_UNSLCVC_GAFS_HALF_CL2_MAXALLOC	(1 << 9)
 #define   GEN11_LSN_UNSLCVC_GAFS_HALF_SF_MAXALLOC	(1 << 7)
 
+#define GUCPMTIMESTAMP				_MMIO(0xc3e8)
+
 #define __GEN9_RCS0_MOCS0			0xc800
 #define GEN9_GFX_MOCS(i)			_MMIO(__GEN9_RCS0_MOCS0 + (i) * 4)
 #define __GEN9_VCS0_MOCS0			0xc900
drivers/gpu/drm/i915/gt/uc/intel_guc.c +0 -0
index 2706a8c650900..ab4aacc516aa4 100644
@@ -389,6 +389,25 @@ void intel_guc_write_params(struct intel_guc *guc)
 	intel_uncore_forcewake_put(uncore, FORCEWAKE_GT);

drivers/gpu/drm/i915/gt/uc/intel_guc.c void intel_guc_write_params(struct intel_guc *guc) · line 399

Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +8 -0
 }
 
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p)
+{
+	struct intel_gt *gt = guc_to_gt(guc);
+	intel_wakeref_t wakeref;
+	u32 stamp = 0;
+	u64 ktime;
+
+	intel_device_info_print_runtime(RUNTIME_INFO(gt->i915), p);

Why does this function print runtime info alone? Seems kind of random, considering what intel_device_info_print_runtime() actually prints. Should it print both device info and runtime info, or nothing at all?

This conflicts with [1] and I don't know what to do about it. The first instinct is to just remove it.

BR,
Jani.

[1] https://patchwork.freedesktop.org/patch/msgid/4be86d7a0737b2c49eee460d29d42843418536fe.1660137416.git.jani.nikula@intel.com

Quoted 102 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -0
+
+	with_intel_runtime_pm(&gt->i915->runtime_pm, wakeref)
+		stamp = intel_uncore_read(gt->uncore, GUCPMTIMESTAMP);
+	ktime = ktime_get_boottime_ns();
+
+	drm_printf(p, "Kernel timestamp: 0x%08llX [%llu]\n", ktime, ktime);
+	drm_printf(p, "GuC timestamp: 0x%08X [%u]\n", stamp, stamp);
+	drm_printf(p, "CS timestamp frequency: %u Hz, %u ns\n",
+		   gt->clock_frequency, gt->clock_period_ns);
+}
+
 int intel_guc_init(struct intel_guc *guc)
 {
 	struct intel_gt *gt = guc_to_gt(guc);
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
index a7acffbf15d1f..804133df1ac9b 100644
@@ -464,4 +464,6 @@ void intel_guc_load_status(struct intel_guc *guc, struct drm_printer *p);
 
 void intel_guc_write_barrier(struct intel_guc *guc);
 
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p);
+
 #endif
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +2 -0
index 991d4a02248dc..07d31ae32f765 100644
@@ -764,6 +764,8 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
 	if (!obj)
 		return 0;
 
+	intel_guc_dump_time_info(guc, p);
+
 	map = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
 	if (IS_ERR(map)) {
 		DRM_DEBUG("Failed to pin object\n");
drivers/gpu/drm/i915/i915_gpu_error.c +12 -0
index 32e92651ef7c2..addba75252343 100644
@@ -678,6 +678,7 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,
 
 	intel_uc_fw_dump(&error_uc->guc_fw, &p);
 	intel_uc_fw_dump(&error_uc->huc_fw, &p);
+	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->timestamp);
 	intel_gpu_error_print_vma(m, NULL, error_uc->guc_log);
 }
 
@@ -720,6 +721,8 @@ static void err_print_gt_global_nonguc(struct drm_i915_error_state_buf *m,
 	int i;
 
 	err_printf(m, "GT awake: %s\n", str_yes_no(gt->awake));
+	err_printf(m, "CS timestamp frequency: %u Hz, %d ns\n",
+		   gt->clock_frequency, gt->clock_period_ns);
 	err_printf(m, "EIR: 0x%08x\n", gt->eir);
 	err_printf(m, "PGTBL_ER: 0x%08x\n", gt->pgtbl_er);
 
@@ -1675,6 +1678,13 @@ gt_record_uc(struct intel_gt_coredump *gt,
 	 */
 	error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL);
 	error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL);
+
+	/*
+	 * Save the GuC log and include a timestamp reference for converting the
+	 * log times to system times (in conjunction with the error->boottime and
+	 * gt->clock_frequency fields saved elsewhere).
+	 */
+	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
 	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
 						"GuC log buffer", compress);
 
@@ -1833,6 +1843,8 @@ static void gt_record_global_regs(struct intel_gt_coredump *gt)
 static void gt_record_info(struct intel_gt_coredump *gt)
 {
 	memcpy(&gt->info, &gt->_gt->info, sizeof(struct intel_gt_info));
+	gt->clock_frequency = gt->_gt->clock_frequency;
+	gt->clock_period_ns = gt->_gt->clock_period_ns;
 }
 
 /*
drivers/gpu/drm/i915/i915_gpu_error.h +3 -0
index 55a143b92d10e..d8a8b3d529e09 100644
@@ -150,6 +150,8 @@ struct intel_gt_coredump {
 	u32 gtt_cache;
 	u32 aux_err; /* gen12 */
 	u32 gam_done; /* gen12 */
+	u32 clock_frequency;
+	u32 clock_period_ns;
 
 	/* Display related */
 	u32 derrmr;
@@ -164,6 +166,7 @@ struct intel_gt_coredump {
 		struct intel_uc_fw guc_fw;
 		struct intel_uc_fw huc_fw;
 		struct i915_vma_coredump *guc_log;
+		u32 timestamp;
 		bool is_guc_capture;
 	} *uc;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#11 lore raw

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

Quoted 39 lines · Jani Nikula
Quoted 38 lines · On Wed, 27 Jul 2022, [email protected] wrote:

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

---
  drivers/gpu/drm/i915/gt/intel_gt_regs.h    |  2 ++
  drivers/gpu/drm/i915/gt/uc/intel_guc.c     | 19 +++++++++++++++++++
  drivers/gpu/drm/i915/gt/uc/intel_guc.h     |  2 ++
  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  2 ++
  drivers/gpu/drm/i915/i915_gpu_error.c      | 12 ++++++++++++
  drivers/gpu/drm/i915/i915_gpu_error.h      |  3 +++
  6 files changed, 40 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 60d6eb5f245b7..fc7979bd91db5 100644
@@ -1007,6 +1007,8 @@
  #define   GEN11_LSN_UNSLCVC_GAFS_HALF_CL2_MAXALLOC	(1 << 9)
  #define   GEN11_LSN_UNSLCVC_GAFS_HALF_SF_MAXALLOC	(1 << 7)
 
+#define GUCPMTIMESTAMP				_MMIO(0xc3e8)
+
  #define __GEN9_RCS0_MOCS0			0xc800
  #define GEN9_GFX_MOCS(i)			_MMIO(__GEN9_RCS0_MOCS0 + (i) * 4)
  #define __GEN9_VCS0_MOCS0			0xc900
drivers/gpu/drm/i915/gt/uc/intel_guc.c +0 -0
index 2706a8c650900..ab4aacc516aa4 100644
@@ -389,6 +389,25 @@ void intel_guc_write_params(struct intel_guc *guc)
  	intel_uncore_forcewake_put(uncore, FORCEWAKE_GT);
  }
 
Quoted 12 lines

drivers/gpu/drm/i915/gt/uc/intel_guc.c void intel_guc_write_params(struct intel_guc *guc) · line 399

Quoted 8 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +8 -0
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p)
+{
+	struct intel_gt *gt = guc_to_gt(guc);
+	intel_wakeref_t wakeref;
+	u32 stamp = 0;
+	u64 ktime;
+
+	intel_device_info_print_runtime(RUNTIME_INFO(gt->i915), p);

Why does this function print runtime info alone? Seems kind of random, considering what intel_device_info_print_runtime() actually prints. Should it print both device info and runtime info, or nothing at all?

Hmm. That was added specifically to print the rawclk value (and only for the rawclk value) because that was the frequency that the GuC time stamp register ticks at. I think we later worked out that the CS frequency was more correct. Hence printing gt->clock_frequency lower down. I guess I forgot to go back and remove the rawclk print, though.

So yeah, it can be removed.

John.

Quoted 112 lines

This conflicts with [1] and I don't know what to do about it. The first instinct is to just remove it.

BR,
Jani.

[1] https://patchwork.freedesktop.org/patch/msgid/4be86d7a0737b2c49eee460d29d42843418536fe.1660137416.git.jani.nikula@intel.com

Quoted 102 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -0
+
+	with_intel_runtime_pm(&gt->i915->runtime_pm, wakeref)
+		stamp = intel_uncore_read(gt->uncore, GUCPMTIMESTAMP);
+	ktime = ktime_get_boottime_ns();
+
+	drm_printf(p, "Kernel timestamp: 0x%08llX [%llu]\n", ktime, ktime);
+	drm_printf(p, "GuC timestamp: 0x%08X [%u]\n", stamp, stamp);
+	drm_printf(p, "CS timestamp frequency: %u Hz, %u ns\n",
+		   gt->clock_frequency, gt->clock_period_ns);
+}
+
  int intel_guc_init(struct intel_guc *guc)
  {
  	struct intel_gt *gt = guc_to_gt(guc);
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
index a7acffbf15d1f..804133df1ac9b 100644
@@ -464,4 +464,6 @@ void intel_guc_load_status(struct intel_guc *guc, struct drm_printer *p);
 
  void intel_guc_write_barrier(struct intel_guc *guc);
 
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p);
+
  #endif
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +2 -0
index 991d4a02248dc..07d31ae32f765 100644
@@ -764,6 +764,8 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
  	if (!obj)
  		return 0;
 
+	intel_guc_dump_time_info(guc, p);
+
  	map = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
  	if (IS_ERR(map)) {
  		DRM_DEBUG("Failed to pin object\n");
drivers/gpu/drm/i915/i915_gpu_error.c +12 -0
index 32e92651ef7c2..addba75252343 100644
@@ -678,6 +678,7 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,
 
  	intel_uc_fw_dump(&error_uc->guc_fw, &p);
  	intel_uc_fw_dump(&error_uc->huc_fw, &p);
+	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->timestamp);
  	intel_gpu_error_print_vma(m, NULL, error_uc->guc_log);
  }
 
@@ -720,6 +721,8 @@ static void err_print_gt_global_nonguc(struct drm_i915_error_state_buf *m,
  	int i;
 
  	err_printf(m, "GT awake: %s\n", str_yes_no(gt->awake));
+	err_printf(m, "CS timestamp frequency: %u Hz, %d ns\n",
+		   gt->clock_frequency, gt->clock_period_ns);
  	err_printf(m, "EIR: 0x%08x\n", gt->eir);
  	err_printf(m, "PGTBL_ER: 0x%08x\n", gt->pgtbl_er);
 
@@ -1675,6 +1678,13 @@ gt_record_uc(struct intel_gt_coredump *gt,
  	 */
  	error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL);
  	error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL);
+
+	/*
+	 * Save the GuC log and include a timestamp reference for converting the
+	 * log times to system times (in conjunction with the error->boottime and
+	 * gt->clock_frequency fields saved elsewhere).
+	 */
+	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
  	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
  						"GuC log buffer", compress);
 
@@ -1833,6 +1843,8 @@ static void gt_record_global_regs(struct intel_gt_coredump *gt)
  static void gt_record_info(struct intel_gt_coredump *gt)
  {
  	memcpy(&gt->info, &gt->_gt->info, sizeof(struct intel_gt_info));
+	gt->clock_frequency = gt->_gt->clock_frequency;
+	gt->clock_period_ns = gt->_gt->clock_period_ns;
  }
 
  /*
drivers/gpu/drm/i915/i915_gpu_error.h +3 -0
index 55a143b92d10e..d8a8b3d529e09 100644
@@ -150,6 +150,8 @@ struct intel_gt_coredump {
  	u32 gtt_cache;
  	u32 aux_err; /* gen12 */
  	u32 gam_done; /* gen12 */
+	u32 clock_frequency;
+	u32 clock_period_ns;
 
  	/* Display related */
  	u32 derrmr;
@@ -164,6 +166,7 @@ struct intel_gt_coredump {
  		struct intel_uc_fw guc_fw;
  		struct intel_uc_fw huc_fw;
  		struct i915_vma_coredump *guc_log;
+		u32 timestamp;
  		bool is_guc_capture;
  	} *uc;
maintainer
#12 lore raw

Re: [Intel-gfx] [PATCH 3/7] drm/i915/guc: Add GuC <-> kernel time stamp translation information

Quoted 52 lines · John Harrison
Quoted 39 lines · Jani Nikula
Quoted 38 lines · On Wed, 27 Jul 2022, [email protected] wrote:

From: John Harrison <[email protected]>

It is useful to be able to match GuC events to kernel events when looking at the GuC log. That requires being able to convert GuC timestamps to kernel time. So, when dumping error captures and/or GuC logs, include a stamp in both time zones plus the clock frequency.

---
  drivers/gpu/drm/i915/gt/intel_gt_regs.h    |  2 ++
  drivers/gpu/drm/i915/gt/uc/intel_guc.c     | 19 +++++++++++++++++++
  drivers/gpu/drm/i915/gt/uc/intel_guc.h     |  2 ++
  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  2 ++
  drivers/gpu/drm/i915/i915_gpu_error.c      | 12 ++++++++++++
  drivers/gpu/drm/i915/i915_gpu_error.h      |  3 +++
  6 files changed, 40 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +2 -0
index 60d6eb5f245b7..fc7979bd91db5 100644
@@ -1007,6 +1007,8 @@
  #define   GEN11_LSN_UNSLCVC_GAFS_HALF_CL2_MAXALLOC	(1 << 9)
  #define   GEN11_LSN_UNSLCVC_GAFS_HALF_SF_MAXALLOC	(1 << 7)
 
+#define GUCPMTIMESTAMP				_MMIO(0xc3e8)
+
  #define __GEN9_RCS0_MOCS0			0xc800
  #define GEN9_GFX_MOCS(i)			_MMIO(__GEN9_RCS0_MOCS0 + (i) * 4)
  #define __GEN9_VCS0_MOCS0			0xc900
drivers/gpu/drm/i915/gt/uc/intel_guc.c +0 -0
index 2706a8c650900..ab4aacc516aa4 100644
@@ -389,6 +389,25 @@ void intel_guc_write_params(struct intel_guc *guc)
  	intel_uncore_forcewake_put(uncore, FORCEWAKE_GT);
  }
 
Quoted 12 lines

drivers/gpu/drm/i915/gt/uc/intel_guc.c void intel_guc_write_params(struct intel_guc *guc) · line 399

Quoted 8 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +8 -0
+void intel_guc_dump_time_info(struct intel_guc *guc, struct drm_printer *p)
+{
+	struct intel_gt *gt = guc_to_gt(guc);
+	intel_wakeref_t wakeref;
+	u32 stamp = 0;
+	u64 ktime;
+
+	intel_device_info_print_runtime(RUNTIME_INFO(gt->i915), p);

Why does this function print runtime info alone? Seems kind of random, considering what intel_device_info_print_runtime() actually prints. Should it print both device info and runtime info, or nothing at all?

Quoted 7 lines

Hmm. That was added specifically to print the rawclk value (and only for the rawclk value) because that was the frequency that the GuC time stamp register ticks at. I think we later worked out that the CS frequency was more correct. Hence printing gt->clock_frequency lower down. I guess I forgot to go back and remove the rawclk print, though.

So yeah, it can be removed.

Could you r-b the patch [1] doing just that please?

BR,
Jani.

[1] https://patchwork.freedesktop.org/patch/msgid/b395ac4c909042f5daabf29959d8733993545aa2.1660910433.git.jani.nikula@intel.com

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#13 lore raw

PATCH 4/7 drm/i915/guc: Record CTB info in error logs

In reply to [email protected]

From: John Harrison <[email protected]>

When debugging GuC communication issues, it is useful to have the CTB info available. So add the state and buffer contents to the error capture log.

Also, add a sub-structure for the GuC specific error capture info as it is now becoming numerous.

---
 drivers/gpu/drm/i915/i915_gpu_error.c | 59 +++++++++++++++++++++++----
 drivers/gpu/drm/i915/i915_gpu_error.h | 20 +++++++--
 2 files changed, 67 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/i915_gpu_error.c +50 -9
index addba75252343..543ba63f958ea 100644
@@ -671,6 +671,18 @@ static void err_print_pciid(struct drm_i915_error_state_buf *m,
 		   pdev->subsystem_device);
 }
 
+static void err_print_guc_ctb(struct drm_i915_error_state_buf *m,
+			      const char *name,
+			      const struct intel_ctb_coredump *ctb)
+{
+	if (!ctb->size)
+		return;
+
+	err_printf(m, "GuC %s CTB: raw: 0x%08X, 0x%08X/%08X, cached: 0x%08X/%08X, desc = 0x%08X, buf = 0x%08X x 0x%08X\n",
+		   name, ctb->raw_status, ctb->raw_head, ctb->raw_tail,
+		   ctb->head, ctb->tail, ctb->desc_offset, ctb->cmds_offset, ctb->size);
+}
+
 static void err_print_uc(struct drm_i915_error_state_buf *m,
 			 const struct intel_uc_coredump *error_uc)
 {
@@ -678,8 +690,12 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,
 
 	intel_uc_fw_dump(&error_uc->guc_fw, &p);
 	intel_uc_fw_dump(&error_uc->huc_fw, &p);
-	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->timestamp);
-	intel_gpu_error_print_vma(m, NULL, error_uc->guc_log);
+	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->guc.timestamp);
+	intel_gpu_error_print_vma(m, NULL, error_uc->guc.vma_log);
+	err_printf(m, "GuC CTB fence: %d\n", error_uc->guc.last_fence);
+	err_print_guc_ctb(m, "Send", error_uc->guc.ctb + 0);
+	err_print_guc_ctb(m, "Recv", error_uc->guc.ctb + 1);
+	intel_gpu_error_print_vma(m, NULL, error_uc->guc.vma_ctb);
 }
 
 static void err_free_sgl(struct scatterlist *sgl)
@@ -854,7 +870,7 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m,
 	if (error->gt) {
 		bool print_guc_capture = false;
 
-		if (error->gt->uc && error->gt->uc->is_guc_capture)
+		if (error->gt->uc && error->gt->uc->guc.is_guc_capture)
 			print_guc_capture = true;
 
 		err_print_gt_display(m, error->gt);
@@ -1009,7 +1025,8 @@ static void cleanup_uc(struct intel_uc_coredump *uc)
 {
 	kfree(uc->guc_fw.path);
 	kfree(uc->huc_fw.path);
-	i915_vma_coredump_free(uc->guc_log);
+	i915_vma_coredump_free(uc->guc.vma_log);
+	i915_vma_coredump_free(uc->guc.vma_ctb);
 
 	kfree(uc);
 }
@@ -1658,6 +1675,23 @@ gt_record_engines(struct intel_gt_coredump *gt,
 	}
 }
 
+static void gt_record_guc_ctb(struct intel_ctb_coredump *saved,
+			      const struct intel_guc_ct_buffer *ctb,
+			      const void *blob_ptr, struct intel_guc *guc)
+{
+	if (!ctb || !ctb->desc)
+		return;
+
+	saved->raw_status = ctb->desc->status;
+	saved->raw_head = ctb->desc->head;
+	saved->raw_tail = ctb->desc->tail;
+	saved->head = ctb->head;
+	saved->tail = ctb->tail;
+	saved->size = ctb->size;
+	saved->desc_offset = ((void *)ctb->desc) - blob_ptr;
+	saved->cmds_offset = ((void *)ctb->cmds) - blob_ptr;
+}
+
 static struct intel_uc_coredump *
 gt_record_uc(struct intel_gt_coredump *gt,
 	     struct i915_vma_compress *compress)
@@ -1684,9 +1718,16 @@ gt_record_uc(struct intel_gt_coredump *gt,
 	 * log times to system times (in conjunction with the error->boottime and
 	 * gt->clock_frequency fields saved elsewhere).
 	 */
-	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
-	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
-						"GuC log buffer", compress);
+	error_uc->guc.timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
+	error_uc->guc.vma_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
+						    "GuC log buffer", compress);
+	error_uc->guc.vma_ctb = create_vma_coredump(gt->_gt, uc->guc.ct.vma,
+						    "GuC CT buffer", compress);
+	error_uc->guc.last_fence = uc->guc.ct.requests.last_fence;
+	gt_record_guc_ctb(error_uc->guc.ctb + 0, &uc->guc.ct.ctbs.send,
+			  uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc);
+	gt_record_guc_ctb(error_uc->guc.ctb + 1, &uc->guc.ct.ctbs.recv,
+			  uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc);
 
 	return error_uc;
 }
@@ -2039,9 +2080,9 @@ __i915_gpu_coredump(struct intel_gt *gt, intel_engine_mask_t engine_mask, u32 du
 			error->gt->uc = gt_record_uc(error->gt, compress);
 			if (error->gt->uc) {
 				if (dump_flags & CORE_DUMP_FLAG_IS_GUC_CAPTURE)
-					error->gt->uc->is_guc_capture = true;
+					error->gt->uc->guc.is_guc_capture = true;
 				else
-					GEM_BUG_ON(error->gt->uc->is_guc_capture);
+					GEM_BUG_ON(error->gt->uc->guc.is_guc_capture);
 			}
 		}
 
drivers/gpu/drm/i915/i915_gpu_error.h +17 -3
index d8a8b3d529e09..efc75cc2ffdb9 100644
@@ -125,6 +125,15 @@ struct intel_engine_coredump {
 	struct intel_engine_coredump *next;
 };
 
+struct intel_ctb_coredump {
+	u32 raw_head, head;
+	u32 raw_tail, tail;
+	u32 raw_status;
+	u32 desc_offset;
+	u32 cmds_offset;
+	u32 size;
+};
+
 struct intel_gt_coredump {
 	const struct intel_gt *_gt;
 	bool awake;
@@ -165,9 +174,14 @@ struct intel_gt_coredump {
 	struct intel_uc_coredump {
 		struct intel_uc_fw guc_fw;
 		struct intel_uc_fw huc_fw;
-		struct i915_vma_coredump *guc_log;
-		u32 timestamp;
-		bool is_guc_capture;
+		struct guc_info {
+			struct intel_ctb_coredump ctb[2];
+			struct i915_vma_coredump *vma_ctb;
+			struct i915_vma_coredump *vma_log;
+			u32 timestamp;
+			u16 last_fence;
+			bool is_guc_capture;
+		} guc;
 	} *uc;
 
 	struct intel_gt_coredump *next;
Signature · 1 line
2.37.1
Reviewed-by on v1 4/7
#14 lore raw

Re: [Intel-gfx] [PATCH 4/7] drm/i915/guc: Record CTB info in error logs

One minor NIT (though i hope it could be fixed otw in as it adds a bit of ease-of-log-readibility). That said, everything else looks good.

Quoted 24 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

When debugging GuC communication issues, it is useful to have the CTB info available. So add the state and buffer contents to the error capture log.

Also, add a sub-structure for the GuC specific error capture info as it is now becoming numerous.

---
 drivers/gpu/drm/i915/i915_gpu_error.c | 59 +++++++++++++++++++++++----
 drivers/gpu/drm/i915/i915_gpu_error.h | 20 +++++++--
 2 files changed, 67 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/i915_gpu_error.c +1 -0
index addba75252343..543ba63f958ea 100644
@@ -671,6 +671,18 @@ static void err_print_pciid(struct drm_i915_error_state_buf *m,
 		   pdev->subsystem_device);
 }
 
+static void err_print_guc_ctb(struct drm_i915_error_state_buf *m,

drivers/gpu/drm/i915/i915_gpu_error.c static void err_print_pciid(struct drm_i915_error_state_buf *m, · line 684

Quoted 10 lines
drivers/gpu/drm/i915/i915_gpu_error.c +9 -0
+			      const char *name,
+			      const struct intel_ctb_coredump *ctb)
+{
+	if (!ctb->size)
+		return;
+
+	err_printf(m, "GuC %s CTB: raw: 0x%08X, 0x%08X/%08X, cached: 0x%08X/%08X, desc = 0x%08X, buf = 0x%08X x 0x%08X\n",
+		   name, ctb->raw_status, ctb->raw_head, ctb->raw_tail,
+		   ctb->head, ctb->tail, ctb->desc_offset, ctb->cmds_offset, ctb->size);
 

NIT: to make it more readible on first glance, would be nice to add more descriptive text like "raw: Sts:0x%08X, Hd:0x%08X,Tl:0x@08X..." also, the not sure why cmds_offset is presented with a "x size" as opposed to just "desc-off = foo1, cmd-off = foo2, size = foo3"?

Quoted 136 lines
drivers/gpu/drm/i915/i915_gpu_error.c +2 -0
+}
+
 static void err_print_uc(struct drm_i915_error_state_buf *m,
 			 const struct intel_uc_coredump *error_uc)

{

drivers/gpu/drm/i915/i915_gpu_error.c +38 -9
@@ -678,8 +690,12 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,
 
 	intel_uc_fw_dump(&error_uc->guc_fw, &p);
 	intel_uc_fw_dump(&error_uc->huc_fw, &p);
-	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->timestamp);
-	intel_gpu_error_print_vma(m, NULL, error_uc->guc_log);
+	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->guc.timestamp);
+	intel_gpu_error_print_vma(m, NULL, error_uc->guc.vma_log);
+	err_printf(m, "GuC CTB fence: %d\n", error_uc->guc.last_fence);
+	err_print_guc_ctb(m, "Send", error_uc->guc.ctb + 0);
+	err_print_guc_ctb(m, "Recv", error_uc->guc.ctb + 1);
+	intel_gpu_error_print_vma(m, NULL, error_uc->guc.vma_ctb);
 }
 
 static void err_free_sgl(struct scatterlist *sgl)
@@ -854,7 +870,7 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m,
 	if (error->gt) {
 		bool print_guc_capture = false;
 
-		if (error->gt->uc && error->gt->uc->is_guc_capture)
+		if (error->gt->uc && error->gt->uc->guc.is_guc_capture)
 			print_guc_capture = true;
 
 		err_print_gt_display(m, error->gt);
@@ -1009,7 +1025,8 @@ static void cleanup_uc(struct intel_uc_coredump *uc)
 {
 	kfree(uc->guc_fw.path);
 	kfree(uc->huc_fw.path);
-	i915_vma_coredump_free(uc->guc_log);
+	i915_vma_coredump_free(uc->guc.vma_log);
+	i915_vma_coredump_free(uc->guc.vma_ctb);
 
 	kfree(uc);
 }
@@ -1658,6 +1675,23 @@ gt_record_engines(struct intel_gt_coredump *gt,
 	}
 }
 
+static void gt_record_guc_ctb(struct intel_ctb_coredump *saved,
+			      const struct intel_guc_ct_buffer *ctb,
+			      const void *blob_ptr, struct intel_guc *guc)
+{
+	if (!ctb || !ctb->desc)
+		return;
+
+	saved->raw_status = ctb->desc->status;
+	saved->raw_head = ctb->desc->head;
+	saved->raw_tail = ctb->desc->tail;
+	saved->head = ctb->head;
+	saved->tail = ctb->tail;
+	saved->size = ctb->size;
+	saved->desc_offset = ((void *)ctb->desc) - blob_ptr;
+	saved->cmds_offset = ((void *)ctb->cmds) - blob_ptr;
+}
+
 static struct intel_uc_coredump *
 gt_record_uc(struct intel_gt_coredump *gt,
 	     struct i915_vma_compress *compress)
@@ -1684,9 +1718,16 @@ gt_record_uc(struct intel_gt_coredump *gt,
 	 * log times to system times (in conjunction with the error->boottime and
 	 * gt->clock_frequency fields saved elsewhere).
 	 */
-	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
-	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
-						"GuC log buffer", compress);
+	error_uc->guc.timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
+	error_uc->guc.vma_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
+						    "GuC log buffer", compress);
+	error_uc->guc.vma_ctb = create_vma_coredump(gt->_gt, uc->guc.ct.vma,
+						    "GuC CT buffer", compress);
+	error_uc->guc.last_fence = uc->guc.ct.requests.last_fence;
+	gt_record_guc_ctb(error_uc->guc.ctb + 0, &uc->guc.ct.ctbs.send,
+			  uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc);
+	gt_record_guc_ctb(error_uc->guc.ctb + 1, &uc->guc.ct.ctbs.recv,
+			  uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc);
 
 	return error_uc;
 }
@@ -2039,9 +2080,9 @@ __i915_gpu_coredump(struct intel_gt *gt, intel_engine_mask_t engine_mask, u32 du
 			error->gt->uc = gt_record_uc(error->gt, compress);
 			if (error->gt->uc) {
 				if (dump_flags & CORE_DUMP_FLAG_IS_GUC_CAPTURE)
-					error->gt->uc->is_guc_capture = true;
+					error->gt->uc->guc.is_guc_capture = true;
 				else
-					GEM_BUG_ON(error->gt->uc->is_guc_capture);
+					GEM_BUG_ON(error->gt->uc->guc.is_guc_capture);
 			}
 		}
 
drivers/gpu/drm/i915/i915_gpu_error.h +17 -3
index d8a8b3d529e09..efc75cc2ffdb9 100644
@@ -125,6 +125,15 @@ struct intel_engine_coredump {
 	struct intel_engine_coredump *next;
 };
 
+struct intel_ctb_coredump {
+	u32 raw_head, head;
+	u32 raw_tail, tail;
+	u32 raw_status;
+	u32 desc_offset;
+	u32 cmds_offset;
+	u32 size;
+};
+
 struct intel_gt_coredump {
 	const struct intel_gt *_gt;
 	bool awake;
@@ -165,9 +174,14 @@ struct intel_gt_coredump {
 	struct intel_uc_coredump {
 		struct intel_uc_fw guc_fw;
 		struct intel_uc_fw huc_fw;
-		struct i915_vma_coredump *guc_log;
-		u32 timestamp;
-		bool is_guc_capture;
+		struct guc_info {
+			struct intel_ctb_coredump ctb[2];
+			struct i915_vma_coredump *vma_ctb;
+			struct i915_vma_coredump *vma_log;
+			u32 timestamp;
+			u16 last_fence;
+			bool is_guc_capture;
+		} guc;
 	} *uc;
 
 	struct intel_gt_coredump *next;
Signature · 1 line
2.37.1
#15 lore raw

Re: [Intel-gfx] [PATCH 4/7] drm/i915/guc: Record CTB info in error logs

Quoted 29 lines · Alan Previn

One minor NIT (though i hope it could be fixed otw in as it adds a bit of ease-of-log-readibility). That said, everything else looks good.

Quoted 23 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

When debugging GuC communication issues, it is useful to have the CTB info available. So add the state and buffer contents to the error capture log.

Also, add a sub-structure for the GuC specific error capture info as it is now becoming numerous.

---
  drivers/gpu/drm/i915/i915_gpu_error.c | 59 +++++++++++++++++++++++----
  drivers/gpu/drm/i915/i915_gpu_error.h | 20 +++++++--
  2 files changed, 67 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/i915_gpu_error.c +0 -0
index addba75252343..543ba63f958ea 100644
@@ -671,6 +671,18 @@ static void err_print_pciid(struct drm_i915_error_state_buf *m,
  		   pdev->subsystem_device);
  }
 
Quoted 14 lines

drivers/gpu/drm/i915/i915_gpu_error.c static void err_print_pciid(struct drm_i915_error_state_buf *m,

Quoted 11 lines
drivers/gpu/drm/i915/i915_gpu_error.c +10 -0
+static void err_print_guc_ctb(struct drm_i915_error_state_buf *m,
+			      const char *name,
+			      const struct intel_ctb_coredump *ctb)
+{
+	if (!ctb->size)
+		return;
+
+	err_printf(m, "GuC %s CTB: raw: 0x%08X, 0x%08X/%08X, cached: 0x%08X/%08X, desc = 0x%08X, buf = 0x%08X x 0x%08X\n",
+		   name, ctb->raw_status, ctb->raw_head, ctb->raw_tail,
+		   ctb->head, ctb->tail, ctb->desc_offset, ctb->cmds_offset, ctb->size);
 

NIT: to make it more readible on first glance, would be nice to add more descriptive text like "raw: Sts:0x%08X, Hd:0x%08X,Tl:0x@08X..." also, the not sure why cmds_offset is presented with a "x size" as opposed to just "desc-off = foo1, cmd-off = foo2, size = foo3"?

The line is long enough as it is. I'd rather not make it even longer. Same for '<name>: <address> x <size>' rather than '<name> _addr = <address>, <name>_size = <size>'. It's useful for readability to keep a single CTB channel on a single line but not if that line is excessively long.

John.

Quoted 136 lines
Quoted 136 lines
drivers/gpu/drm/i915/i915_gpu_error.c +2 -0
+}
+
  static void err_print_uc(struct drm_i915_error_state_buf *m,
  			 const struct intel_uc_coredump *error_uc)
  {
drivers/gpu/drm/i915/i915_gpu_error.c +38 -9
@@ -678,8 +690,12 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,
 
  	intel_uc_fw_dump(&error_uc->guc_fw, &p);
  	intel_uc_fw_dump(&error_uc->huc_fw, &p);
-	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->timestamp);
-	intel_gpu_error_print_vma(m, NULL, error_uc->guc_log);
+	err_printf(m, "GuC timestamp: 0x%08x\n", error_uc->guc.timestamp);
+	intel_gpu_error_print_vma(m, NULL, error_uc->guc.vma_log);
+	err_printf(m, "GuC CTB fence: %d\n", error_uc->guc.last_fence);
+	err_print_guc_ctb(m, "Send", error_uc->guc.ctb + 0);
+	err_print_guc_ctb(m, "Recv", error_uc->guc.ctb + 1);
+	intel_gpu_error_print_vma(m, NULL, error_uc->guc.vma_ctb);
  }
 
  static void err_free_sgl(struct scatterlist *sgl)
@@ -854,7 +870,7 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m,
  	if (error->gt) {
  		bool print_guc_capture = false;
 
-		if (error->gt->uc && error->gt->uc->is_guc_capture)
+		if (error->gt->uc && error->gt->uc->guc.is_guc_capture)
  			print_guc_capture = true;
 
  		err_print_gt_display(m, error->gt);
@@ -1009,7 +1025,8 @@ static void cleanup_uc(struct intel_uc_coredump *uc)
  {
  	kfree(uc->guc_fw.path);
  	kfree(uc->huc_fw.path);
-	i915_vma_coredump_free(uc->guc_log);
+	i915_vma_coredump_free(uc->guc.vma_log);
+	i915_vma_coredump_free(uc->guc.vma_ctb);
 
  	kfree(uc);
  }
@@ -1658,6 +1675,23 @@ gt_record_engines(struct intel_gt_coredump *gt,
  	}
  }
 
+static void gt_record_guc_ctb(struct intel_ctb_coredump *saved,
+			      const struct intel_guc_ct_buffer *ctb,
+			      const void *blob_ptr, struct intel_guc *guc)
+{
+	if (!ctb || !ctb->desc)
+		return;
+
+	saved->raw_status = ctb->desc->status;
+	saved->raw_head = ctb->desc->head;
+	saved->raw_tail = ctb->desc->tail;
+	saved->head = ctb->head;
+	saved->tail = ctb->tail;
+	saved->size = ctb->size;
+	saved->desc_offset = ((void *)ctb->desc) - blob_ptr;
+	saved->cmds_offset = ((void *)ctb->cmds) - blob_ptr;
+}
+
  static struct intel_uc_coredump *
  gt_record_uc(struct intel_gt_coredump *gt,
  	     struct i915_vma_compress *compress)
@@ -1684,9 +1718,16 @@ gt_record_uc(struct intel_gt_coredump *gt,
  	 * log times to system times (in conjunction with the error->boottime and
  	 * gt->clock_frequency fields saved elsewhere).
  	 */
-	error_uc->timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
-	error_uc->guc_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
-						"GuC log buffer", compress);
+	error_uc->guc.timestamp = intel_uncore_read(gt->_gt->uncore, GUCPMTIMESTAMP);
+	error_uc->guc.vma_log = create_vma_coredump(gt->_gt, uc->guc.log.vma,
+						    "GuC log buffer", compress);
+	error_uc->guc.vma_ctb = create_vma_coredump(gt->_gt, uc->guc.ct.vma,
+						    "GuC CT buffer", compress);
+	error_uc->guc.last_fence = uc->guc.ct.requests.last_fence;
+	gt_record_guc_ctb(error_uc->guc.ctb + 0, &uc->guc.ct.ctbs.send,
+			  uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc);
+	gt_record_guc_ctb(error_uc->guc.ctb + 1, &uc->guc.ct.ctbs.recv,
+			  uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc);
 
  	return error_uc;
  }
@@ -2039,9 +2080,9 @@ __i915_gpu_coredump(struct intel_gt *gt, intel_engine_mask_t engine_mask, u32 du
  			error->gt->uc = gt_record_uc(error->gt, compress);
  			if (error->gt->uc) {
  				if (dump_flags & CORE_DUMP_FLAG_IS_GUC_CAPTURE)
-					error->gt->uc->is_guc_capture = true;
+					error->gt->uc->guc.is_guc_capture = true;
  				else
-					GEM_BUG_ON(error->gt->uc->is_guc_capture);
+					GEM_BUG_ON(error->gt->uc->guc.is_guc_capture);
  			}
  		}
 
drivers/gpu/drm/i915/i915_gpu_error.h +17 -3
index d8a8b3d529e09..efc75cc2ffdb9 100644
@@ -125,6 +125,15 @@ struct intel_engine_coredump {
  	struct intel_engine_coredump *next;
  };
 
+struct intel_ctb_coredump {
+	u32 raw_head, head;
+	u32 raw_tail, tail;
+	u32 raw_status;
+	u32 desc_offset;
+	u32 cmds_offset;
+	u32 size;
+};
+
  struct intel_gt_coredump {
  	const struct intel_gt *_gt;
  	bool awake;
@@ -165,9 +174,14 @@ struct intel_gt_coredump {
  	struct intel_uc_coredump {
  		struct intel_uc_fw guc_fw;
  		struct intel_uc_fw huc_fw;
-		struct i915_vma_coredump *guc_log;
-		u32 timestamp;
-		bool is_guc_capture;
+		struct guc_info {
+			struct intel_ctb_coredump ctb[2];
+			struct i915_vma_coredump *vma_ctb;
+			struct i915_vma_coredump *vma_log;
+			u32 timestamp;
+			u16 last_fence;
+			bool is_guc_capture;
+		} guc;
  	} *uc;
 
  	struct intel_gt_coredump *next;
Signature · 1 line
2.37.1
#16 lore raw

PATCH 5/7 drm/i915/guc: Use streaming loads to speed up dumping the guc log

In reply to [email protected]

From: Chris Wilson <[email protected]>

Use a temporary page and mempy_from_wc to reduce the time it takes to dump the guc log to debugfs.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 24 ++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +18 -6
index 07d31ae32f765..4722d4b18ed19 100644
@@ -750,8 +750,9 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
 	struct intel_guc *guc = log_to_guc(log);
 	struct intel_uc *uc = container_of(guc, struct intel_uc, guc);
 	struct drm_i915_gem_object *obj = NULL;
-	u32 *map;
-	int i = 0;
+	void *map;
+	u32 *page;
+	int i, j;
 
 	if (!intel_guc_is_supported(guc))
 		return -ENODEV;
@@ -764,23 +765,34 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
 	if (!obj)
 		return 0;
 
+	page = (u32 *)__get_free_page(GFP_KERNEL);
+	if (!page)
+		return -ENOMEM;
+
 	intel_guc_dump_time_info(guc, p);
 
 	map = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
 	if (IS_ERR(map)) {
 		DRM_DEBUG("Failed to pin object\n");
 		drm_puts(p, "(log data unaccessible)\n");
+		free_page((unsigned long)page);
 		return PTR_ERR(map);
 	}
 
-	for (i = 0; i < obj->base.size / sizeof(u32); i += 4)
-		drm_printf(p, "0x%08x 0x%08x 0x%08x 0x%08x\n",
-			   *(map + i), *(map + i + 1),
-			   *(map + i + 2), *(map + i + 3));
+	for (i = 0; i < obj->base.size; i += PAGE_SIZE) {
+		if (!i915_memcpy_from_wc(page, map + i, PAGE_SIZE))
+			memcpy(page, map + i, PAGE_SIZE);
+
+		for (j = 0; j < PAGE_SIZE / sizeof(u32); j += 4)
+			drm_printf(p, "0x%08x 0x%08x 0x%08x 0x%08x\n",
+				   *(page + j + 0), *(page + j + 1),
+				   *(page + j + 2), *(page + j + 3));
+	}
 
 	drm_puts(p, "\n");
 
 	i915_gem_object_unpin_map(obj);
+	free_page((unsigned long)page);
 
 	return 0;
 }
Signature · 1 line
2.37.1
Reviewed-by on v1 5/7
#17 lore raw

Re: [Intel-gfx] [PATCH 5/7] drm/i915/guc: Use streaming loads to speed up dumping the guc log

One concern below. Else, nice, simple yet good optimization here. :)

In the interest of quicker progression, I will provide a conditional R-B if you can either fix the issue raised below on the way in or provide a reason why that's not an issue:

Quoted 29 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: Chris Wilson <[email protected]>

Use a temporary page and mempy_from_wc to reduce the time it takes to dump the guc log to debugfs.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 24 ++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3 -2
index 07d31ae32f765..4722d4b18ed19 100644
@@ -750,8 +750,9 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
 	struct intel_guc *guc = log_to_guc(log);
 	struct intel_uc *uc = container_of(guc, struct intel_uc, guc);
 	struct drm_i915_gem_object *obj = NULL;
-	u32 *map;
-	int i = 0;
+	void *map;
+	u32 *page;
+	int i, j;
 
 	if (!intel_guc_is_supported(guc))
 		return -ENODEV;

drivers/gpu/drm/i915/gt/uc/intel_guc_log.c int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p, · line 770

Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3 -0
@@ -764,23 +765,34 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
 	if (!obj)
 		return 0;
 
+	page = (u32 *)__get_free_page(GFP_KERNEL);
+	if (!page)
+		return -ENOMEM;

Alan: although unlikely, its possible that user could trigger debugfs mid of a gt reset - not sure if we need to use the "uc->reset_in_progress" before calling this allocation and return a different error in that case like EAGAIN or EBUSY or ECONNRESET.

Quoted 35 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +12 -4
+
 	intel_guc_dump_time_info(guc, p);
 
 	map = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
 	if (IS_ERR(map)) {
 		DRM_DEBUG("Failed to pin object\n");
 		drm_puts(p, "(log data unaccessible)\n");
+		free_page((unsigned long)page);
 		return PTR_ERR(map);
 	}
 
-	for (i = 0; i < obj->base.size / sizeof(u32); i += 4)
-		drm_printf(p, "0x%08x 0x%08x 0x%08x 0x%08x\n",
-			   *(map + i), *(map + i + 1),
-			   *(map + i + 2), *(map + i + 3));
+	for (i = 0; i < obj->base.size; i += PAGE_SIZE) {
+		if (!i915_memcpy_from_wc(page, map + i, PAGE_SIZE))
+			memcpy(page, map + i, PAGE_SIZE);
+
+		for (j = 0; j < PAGE_SIZE / sizeof(u32); j += 4)
+			drm_printf(p, "0x%08x 0x%08x 0x%08x 0x%08x\n",
+				   *(page + j + 0), *(page + j + 1),
+				   *(page + j + 2), *(page + j + 3));
+	}
 
 	drm_puts(p, "\n");
 
 	i915_gem_object_unpin_map(obj);
+	free_page((unsigned long)page);
 
 	return 0;
 }
Signature · 1 line
2.37.1
#18 lore raw

Re: [Intel-gfx] [PATCH 5/7] drm/i915/guc: Use streaming loads to speed up dumping the guc log

Quoted 4 lines · Alan Previn

One concern below. Else, nice, simple yet good optimization here. :)

In the interest of quicker progression, I will provide a conditional R-B if you can either fix the issue raised below on the way in or provide a reason why that's not an issue:

Not an issue, but code changes like that can't be 'fixed on the way in'. Tweaking a commit message can potentially happen when merging patches but not code changes. For that you have to repost for CI.

John.

Quoted 36 lines
Quoted 32 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: Chris Wilson <[email protected]>

Use a temporary page and mempy_from_wc to reduce the time it takes to dump the guc log to debugfs.

---
  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 24 ++++++++++++++++------
  1 file changed, 18 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3 -2
index 07d31ae32f765..4722d4b18ed19 100644
@@ -750,8 +750,9 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
  	struct intel_guc *guc = log_to_guc(log);
  	struct intel_uc *uc = container_of(guc, struct intel_uc, guc);
  	struct drm_i915_gem_object *obj = NULL;
-	u32 *map;
-	int i = 0;
+	void *map;
+	u32 *page;
+	int i, j;
 
  	if (!intel_guc_is_supported(guc))
  		return -ENODEV;
@@ -764,23 +765,34 @@ int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
  	if (!obj)
  		return 0;
 
Quoted 6 lines

drivers/gpu/drm/i915/gt/uc/intel_guc_log.c int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p, · line 770

Quoted 3 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3 -0
+	page = (u32 *)__get_free_page(GFP_KERNEL);
+	if (!page)
+		return -ENOMEM;

Alan: although unlikely, its possible that user could trigger debugfs mid of a gt reset - not sure if we need to use the "uc->reset_in_progress" before calling this allocation and return a different error in that case like EAGAIN or EBUSY or ECONNRESET.

Doesn't matter.

The issue of thou shalt not allocate memory during a reset is only relevant to code that can be called from within the reset path. As in, you must not do something that could block the reset from completing. This is only debugfs code. It is not called from within the reset path. So if it gets blocked waiting for memory to be released, no-one cares.

John.

Quoted 36 lines
Quoted 36 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +12 -4
+
  	intel_guc_dump_time_info(guc, p);
 
  	map = i915_gem_object_pin_map_unlocked(obj, I915_MAP_WC);
  	if (IS_ERR(map)) {
  		DRM_DEBUG("Failed to pin object\n");
  		drm_puts(p, "(log data unaccessible)\n");
+		free_page((unsigned long)page);
  		return PTR_ERR(map);
  	}
 
-	for (i = 0; i < obj->base.size / sizeof(u32); i += 4)
-		drm_printf(p, "0x%08x 0x%08x 0x%08x 0x%08x\n",
-			   *(map + i), *(map + i + 1),
-			   *(map + i + 2), *(map + i + 3));
+	for (i = 0; i < obj->base.size; i += PAGE_SIZE) {
+		if (!i915_memcpy_from_wc(page, map + i, PAGE_SIZE))
+			memcpy(page, map + i, PAGE_SIZE);
+
+		for (j = 0; j < PAGE_SIZE / sizeof(u32); j += 4)
+			drm_printf(p, "0x%08x 0x%08x 0x%08x 0x%08x\n",
+				   *(page + j + 0), *(page + j + 1),
+				   *(page + j + 2), *(page + j + 3));
+	}
 
  	drm_puts(p, "\n");
 
  	i915_gem_object_unpin_map(obj);
+	free_page((unsigned long)page);
 
  	return 0;
  }
Signature · 1 line
2.37.1
#19 lore raw

PATCH 6/7 drm/i915/guc: Make GuC log sizes runtime configurable

In reply to [email protected]

From: John Harrison <[email protected]>

The GuC log buffer sizes had to be configured statically at compile time. This can be quite troublesome when needing to get larger logs out of a released driver. So re-organise the code to allow a boot time module parameter override.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  53 ++----
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    |  14 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 176 +++++++++++++++++-
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +++--
 drivers/gpu/drm/i915/i915_params.c            |  12 ++
 drivers/gpu/drm/i915/i915_params.h            |   3 +
 6 files changed, 226 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -42
index ab4aacc516aa4..01f2705cb94a3 100644
@@ -224,53 +224,22 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc)
 
 static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 {
-	u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
-	u32 flags;
-
-	#if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
-	#define LOG_UNIT SZ_1M
-	#define LOG_FLAG GUC_LOG_LOG_ALLOC_UNITS
-	#else
-	#define LOG_UNIT SZ_4K
-	#define LOG_FLAG 0
-	#endif
-
-	#if (((CAPTURE_BUFFER_SIZE) % SZ_1M) == 0)
-	#define CAPTURE_UNIT SZ_1M
-	#define CAPTURE_FLAG GUC_LOG_CAPTURE_ALLOC_UNITS
-	#else
-	#define CAPTURE_UNIT SZ_4K
-	#define CAPTURE_FLAG 0
-	#endif
-
-	BUILD_BUG_ON(!CRASH_BUFFER_SIZE);
-	BUILD_BUG_ON(!IS_ALIGNED(CRASH_BUFFER_SIZE, LOG_UNIT));
-	BUILD_BUG_ON(!DEBUG_BUFFER_SIZE);
-	BUILD_BUG_ON(!IS_ALIGNED(DEBUG_BUFFER_SIZE, LOG_UNIT));
-	BUILD_BUG_ON(!CAPTURE_BUFFER_SIZE);
-	BUILD_BUG_ON(!IS_ALIGNED(CAPTURE_BUFFER_SIZE, CAPTURE_UNIT));
-
-	BUILD_BUG_ON((CRASH_BUFFER_SIZE / LOG_UNIT - 1) >
-			(GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT));
-	BUILD_BUG_ON((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) >
-			(GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT));
-	BUILD_BUG_ON((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) >
-			(GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT));
+	struct intel_guc_log *log = &guc->log;
+	u32 offset, flags;
+
+	GEM_BUG_ON(!log->sizes_initialised);
+
+	offset = intel_guc_ggtt_offset(guc, log->vma) >> PAGE_SHIFT;
 
 	flags = GUC_LOG_VALID |
 		GUC_LOG_NOTIFY_ON_HALF_FULL |
-		CAPTURE_FLAG |
-		LOG_FLAG |
-		((CRASH_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_CRASH_SHIFT) |
-		((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_DEBUG_SHIFT) |
-		((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) << GUC_LOG_CAPTURE_SHIFT) |
+		log->sizes[GUC_LOG_SECTIONS_DEBUG].flag |
+		log->sizes[GUC_LOG_SECTIONS_CAPTURE].flag |
+		(log->sizes[GUC_LOG_SECTIONS_CRASH].count << GUC_LOG_CRASH_SHIFT) |
+		(log->sizes[GUC_LOG_SECTIONS_DEBUG].count << GUC_LOG_DEBUG_SHIFT) |
+		(log->sizes[GUC_LOG_SECTIONS_CAPTURE].count << GUC_LOG_CAPTURE_SHIFT) |
 		(offset << GUC_LOG_BUF_ADDR_SHIFT);
 
-	#undef LOG_UNIT
-	#undef LOG_FLAG
-	#undef CAPTURE_UNIT
-	#undef CAPTURE_FLAG
-
 	return flags;
 }
 
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +8 -6
index b54b7883320b1..d2ac53d4f3b6e 100644
@@ -656,16 +656,17 @@ static void check_guc_capture_size(struct intel_guc *guc)
 	struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
 	int min_size = guc_capture_output_min_size_est(guc);
 	int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+	u32 buffer_size = intel_guc_log_section_size_capture(&guc->log);
 
 	if (min_size < 0)
 		drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
 			 min_size);
-	else if (min_size > CAPTURE_BUFFER_SIZE)
+	else if (min_size > buffer_size)
 		drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
-			 CAPTURE_BUFFER_SIZE, min_size);
-	else if (spare_size > CAPTURE_BUFFER_SIZE)
+			 buffer_size, min_size);
+	else if (spare_size > buffer_size)
 		drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
-			   CAPTURE_BUFFER_SIZE, spare_size, min_size);
+			   buffer_size, spare_size, min_size);
 }
 
 /*
@@ -1294,7 +1295,8 @@ static void __guc_capture_process_output(struct intel_guc *guc)
 
 	log_buf_state = guc->log.buf_addr +
 			(sizeof(struct guc_log_buffer_state) * GUC_CAPTURE_LOG_BUFFER);
-	src_data = guc->log.buf_addr + intel_guc_get_log_buffer_offset(GUC_CAPTURE_LOG_BUFFER);
+	src_data = guc->log.buf_addr +
+		   intel_guc_get_log_buffer_offset(&guc->log, GUC_CAPTURE_LOG_BUFFER);
 
 	/*
 	 * Make a copy of the state structure, inside GuC log buffer
@@ -1302,7 +1304,7 @@ static void __guc_capture_process_output(struct intel_guc *guc)
 	 * from it multiple times.
 	 */
 	memcpy(&log_buf_state_local, log_buf_state, sizeof(struct guc_log_buffer_state));
-	buffer_size = intel_guc_get_log_buffer_size(GUC_CAPTURE_LOG_BUFFER);
+	buffer_size = intel_guc_get_log_buffer_size(&guc->log, GUC_CAPTURE_LOG_BUFFER);
 	read_offset = log_buf_state_local.read_ptr;
 	write_offset = log_buf_state_local.sampled_write_ptr;
 	full_count = log_buf_state_local.buffer_full_cnt;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +166 -10

231 lines not on this page · raw message

drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +26 -16

74 lines not on this page · raw message

drivers/gpu/drm/i915/i915_params.c +12 -0
index 6fc475a5db615..06ca5b8221118 100644
@@ -171,6 +171,18 @@ i915_param_named(guc_log_level, int, 0400,
 	"GuC firmware logging level. Requires GuC to be loaded. "
 	"(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
+i915_param_named(guc_log_size_crash, int, 0400,
+	"GuC firmware logging buffer size for crash dumps (in MB)"
+	"(-1=auto [default], NB: max = 4, other restrictions apply)");
+
+i915_param_named(guc_log_size_debug, int, 0400,
+	"GuC firmware logging buffer size for debug logs (in MB)"
+	"(-1=auto [default], NB: max = 16, other restrictions apply)");
+
+i915_param_named(guc_log_size_capture, int, 0400,
+	"GuC error capture register dump buffer size (in MB)"
+	"(-1=auto [default], NB: max = 4, other restrictions apply)");
+
 i915_param_named_unsafe(guc_firmware_path, charp, 0400,
 	"GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +3 -0
index 2733cb6cfe094..f684d1ab87078 100644
@@ -61,6 +61,9 @@ struct drm_printer;
 	param(int, invert_brightness, 0, 0600) \
 	param(int, enable_guc, -1, 0400) \
 	param(int, guc_log_level, -1, 0400) \
+	param(int, guc_log_size_crash, -1, 0400) \
+	param(int, guc_log_size_debug, -1, 0400) \
+	param(int, guc_log_size_capture, -1, 0400) \
 	param(char *, guc_firmware_path, NULL, 0400) \
 	param(char *, huc_firmware_path, NULL, 0400) \
 	param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
2.37.1
Reviewed-by on v1 6/7
#20 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

Looks good to me.

Quoted 17 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

The GuC log buffer sizes had to be configured statically at compile time. This can be quite troublesome when needing to get larger logs out of a released driver. So re-organise the code to allow a boot time module parameter override.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  53 ++----
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    |  14 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 176 +++++++++++++++++-
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +++--
 drivers/gpu/drm/i915/i915_params.c            |  12 ++
 drivers/gpu/drm/i915/i915_params.h            |   3 +
 6 files changed, 226 insertions(+), 74 deletions(-)

...

Quoted 18 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +18 -0
+static s32 scale_log_param(struct intel_guc_log *log, const struct guc_log_section *section,
+			   s32 param)
+{
+	/* -1 means default */
+	if (param < 0)
+		return section->default_val;
+
+	/* Check for 32-bit overflow */
+	if (param >= SZ_4K) {
+		drm_err(&guc_to_gt(log_to_guc(log))->i915->drm, "Size too large for GuC %s log: %dMB!",
+			section->name, param);
+		return section->default_val;
+	}
+
+	/* Param units are 1MB */
+	return param * SZ_1M;
+}
+
maintainer
#21 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

In reply to [email protected]

NACK on this one. Let's get this reverted or fixed to eliminate new module parameters.

What prevents us just from using the maximum sizes? Or alternatively we could check the already existing drm.debug variable or anything else but addding 3 new module parameters.

For future reference, please do Cc maintainers when adding new uAPI like module parameters.

Regards, Joonas

Quoting [email protected] (2022-07-28 05:20:27)

Quoted 497 lines

From: John Harrison <[email protected]>

The GuC log buffer sizes had to be configured statically at compile time. This can be quite troublesome when needing to get larger logs out of a released driver. So re-organise the code to allow a boot time module parameter override.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  53 ++----
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    |  14 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 176 +++++++++++++++++-
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +++--
 drivers/gpu/drm/i915/i915_params.c            |  12 ++
 drivers/gpu/drm/i915/i915_params.h            |   3 +
 6 files changed, 226 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -42
index ab4aacc516aa4..01f2705cb94a3 100644
@@ -224,53 +224,22 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc)
 
 static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
 {
-       u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
-       u32 flags;
-
-       #if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
-       #define LOG_UNIT SZ_1M
-       #define LOG_FLAG GUC_LOG_LOG_ALLOC_UNITS
-       #else
-       #define LOG_UNIT SZ_4K
-       #define LOG_FLAG 0
-       #endif
-
-       #if (((CAPTURE_BUFFER_SIZE) % SZ_1M) == 0)
-       #define CAPTURE_UNIT SZ_1M
-       #define CAPTURE_FLAG GUC_LOG_CAPTURE_ALLOC_UNITS
-       #else
-       #define CAPTURE_UNIT SZ_4K
-       #define CAPTURE_FLAG 0
-       #endif
-
-       BUILD_BUG_ON(!CRASH_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CRASH_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!DEBUG_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(DEBUG_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!CAPTURE_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CAPTURE_BUFFER_SIZE, CAPTURE_UNIT));
-
-       BUILD_BUG_ON((CRASH_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT));
-       BUILD_BUG_ON((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT));
-       BUILD_BUG_ON((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) >
-                       (GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT));
+       struct intel_guc_log *log = &guc->log;
+       u32 offset, flags;
+
+       GEM_BUG_ON(!log->sizes_initialised);
+
+       offset = intel_guc_ggtt_offset(guc, log->vma) >> PAGE_SHIFT;
 
        flags = GUC_LOG_VALID |
                GUC_LOG_NOTIFY_ON_HALF_FULL |
-               CAPTURE_FLAG |
-               LOG_FLAG |
-               ((CRASH_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_CRASH_SHIFT) |
-               ((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_DEBUG_SHIFT) |
-               ((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) << GUC_LOG_CAPTURE_SHIFT) |
+               log->sizes[GUC_LOG_SECTIONS_DEBUG].flag |
+               log->sizes[GUC_LOG_SECTIONS_CAPTURE].flag |
+               (log->sizes[GUC_LOG_SECTIONS_CRASH].count << GUC_LOG_CRASH_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_DEBUG].count << GUC_LOG_DEBUG_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_CAPTURE].count << GUC_LOG_CAPTURE_SHIFT) |
                (offset << GUC_LOG_BUF_ADDR_SHIFT);
 
-       #undef LOG_UNIT
-       #undef LOG_FLAG
-       #undef CAPTURE_UNIT
-       #undef CAPTURE_FLAG
-
        return flags;
 }
 
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +8 -6
index b54b7883320b1..d2ac53d4f3b6e 100644
@@ -656,16 +656,17 @@ static void check_guc_capture_size(struct intel_guc *guc)
        struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
        int min_size = guc_capture_output_min_size_est(guc);
        int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+       u32 buffer_size = intel_guc_log_section_size_capture(&guc->log);
 
        if (min_size < 0)
                drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
                         min_size);
-       else if (min_size > CAPTURE_BUFFER_SIZE)
+       else if (min_size > buffer_size)
                drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
-                        CAPTURE_BUFFER_SIZE, min_size);
-       else if (spare_size > CAPTURE_BUFFER_SIZE)
+                        buffer_size, min_size);
+       else if (spare_size > buffer_size)
                drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
-                          CAPTURE_BUFFER_SIZE, spare_size, min_size);
+                          buffer_size, spare_size, min_size);
 }
 
 /*
@@ -1294,7 +1295,8 @@ static void __guc_capture_process_output(struct intel_guc *guc)
 
        log_buf_state = guc->log.buf_addr +
                        (sizeof(struct guc_log_buffer_state) * GUC_CAPTURE_LOG_BUFFER);
-       src_data = guc->log.buf_addr + intel_guc_get_log_buffer_offset(GUC_CAPTURE_LOG_BUFFER);
+       src_data = guc->log.buf_addr +
+                  intel_guc_get_log_buffer_offset(&guc->log, GUC_CAPTURE_LOG_BUFFER);
 
        /*
         * Make a copy of the state structure, inside GuC log buffer
@@ -1302,7 +1304,7 @@ static void __guc_capture_process_output(struct intel_guc *guc)
         * from it multiple times.
         */
        memcpy(&log_buf_state_local, log_buf_state, sizeof(struct guc_log_buffer_state));
-       buffer_size = intel_guc_get_log_buffer_size(GUC_CAPTURE_LOG_BUFFER);
+       buffer_size = intel_guc_get_log_buffer_size(&guc->log, GUC_CAPTURE_LOG_BUFFER);
        read_offset = log_buf_state_local.read_ptr;
        write_offset = log_buf_state_local.sampled_write_ptr;
        full_count = log_buf_state_local.buffer_full_cnt;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +166 -10
index 4722d4b18ed19..890b6853bd609 100644
@@ -13,8 +13,158 @@
 #include "intel_guc_capture.h"
 #include "intel_guc_log.h"
 
+#if defined(CONFIG_DRM_I915_DEBUG_GUC)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_16M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_1M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#else
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_8K
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_64K
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_2M
+#endif
+
 static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
+struct guc_log_section {
+       u32 max;
+       u32 flag;
+       u32 default_val;
+       const char *name;
+};
+
+static s32 scale_log_param(struct intel_guc_log *log, const struct guc_log_section *section,
+                          s32 param)
+{
+       /* -1 means default */
+       if (param < 0)
+               return section->default_val;
+
+       /* Check for 32-bit overflow */
+       if (param >= SZ_4K) {
+               drm_err(&guc_to_gt(log_to_guc(log))->i915->drm, "Size too large for GuC %s log: %dMB!",
+                       section->name, param);
+               return section->default_val;
+       }
+
+       /* Param units are 1MB */
+       return param * SZ_1M;
+}
+
+static void _guc_log_init_sizes(struct intel_guc_log *log)
+{
+       struct intel_guc *guc = log_to_guc(log);
+       struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
+       static const struct guc_log_section sections[GUC_LOG_SECTIONS_LIMIT] = {
+               {
+                       GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
+                       "crash dump"
+               },
+               {
+                       GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
+                       "debug",
+               },
+               {
+                       GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT,
+                       GUC_LOG_CAPTURE_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
+                       "capture",
+               }
+       };
+       s32 params[GUC_LOG_SECTIONS_LIMIT] = {
+               i915->params.guc_log_size_crash,
+               i915->params.guc_log_size_debug,
+               i915->params.guc_log_size_capture,
+       };
+       int i;
+
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++)
+               log->sizes[i].bytes = scale_log_param(log, sections + i, params[i]);
+
+       /* If debug size > 1MB then bump default crash size to keep the same units */
+       if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
+           (i915->params.guc_log_size_crash == -1) &&
+           GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
+               log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
+
+       /* Prepare the GuC API structure fields: */
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++) {
+               /* Convert to correct units */
+               if ((log->sizes[i].bytes % SZ_1M) == 0) {
+                       log->sizes[i].units = SZ_1M;
+                       log->sizes[i].flag = sections[i].flag;
+               } else {
+                       log->sizes[i].units = SZ_4K;
+                       log->sizes[i].flag = 0;
+               }
+
+               if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units))
+                       drm_err(&i915->drm, "Mis-aligned GuC log %s size: 0x%X vs 0x%X!",
+                               sections[i].name, log->sizes[i].bytes, log->sizes[i].units);
+               log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;
+
+               if (!log->sizes[i].count) {
+                       drm_err(&i915->drm, "Zero GuC log %s size!", sections[i].name);
+               } else {
+                       /* Size is +1 unit */
+                       log->sizes[i].count--;
+               }
+
+               /* Clip to field size */
+               if (log->sizes[i].count > sections[i].max) {
+                       drm_err(&i915->drm, "GuC log %s size too large: %d vs %d!",
+                               sections[i].name, log->sizes[i].count + 1, sections[i].max + 1);
+                       log->sizes[i].count = sections[i].max;
+               }
+       }
+
+       if (log->sizes[GUC_LOG_SECTIONS_CRASH].units != log->sizes[GUC_LOG_SECTIONS_DEBUG].units) {
+               drm_err(&i915->drm, "Unit mis-match for GuC log crash and debug sections: %d vs %d!",
+                       log->sizes[GUC_LOG_SECTIONS_CRASH].units,
+                       log->sizes[GUC_LOG_SECTIONS_DEBUG].units);
+               log->sizes[GUC_LOG_SECTIONS_CRASH].units = log->sizes[GUC_LOG_SECTIONS_DEBUG].units;
+               log->sizes[GUC_LOG_SECTIONS_CRASH].count = 0;
+       }
+
+       log->sizes_initialised = true;
+}
+
+static void guc_log_init_sizes(struct intel_guc_log *log)
+{
+       if (log->sizes_initialised)
+               return;
+
+       _guc_log_init_sizes(log);
+}
+
+static u32 intel_guc_log_section_size_crash(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CRASH].bytes;
+}
+
+static u32 intel_guc_log_section_size_debug(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes;
+}
+
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CAPTURE].bytes;
+}
+
 static u32 intel_guc_log_size(struct intel_guc_log *log)
 {
        /*
@@ -38,7 +188,10 @@ static u32 intel_guc_log_size(struct intel_guc_log *log)
         *  |         Capture logs          |
         *  +===============================+ + CAPTURE_SIZE
         */
-       return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+       return PAGE_SIZE +
+               intel_guc_log_section_size_crash(log) +
+               intel_guc_log_section_size_debug(log) +
+               intel_guc_log_section_size_capture(log);
 }
 
 /**
@@ -165,7 +318,8 @@ static void guc_move_to_next_buf(struct intel_guc_log *log)
        smp_wmb();
 
        /* All data has been written, so now move the offset of sub buffer. */
-       relay_reserve(log->relay.channel, log->vma->obj->base.size - CAPTURE_BUFFER_SIZE);
+       relay_reserve(log->relay.channel, log->vma->obj->base.size -
+                                         intel_guc_log_section_size_capture(log));
 
        /* Switch to the next sub buffer */
        relay_flush(log->relay.channel);
@@ -210,15 +364,16 @@ bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log,
        return overflow;
 }
 
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type)
 {
        switch (type) {
        case GUC_DEBUG_LOG_BUFFER:
-               return DEBUG_BUFFER_SIZE;
+               return intel_guc_log_section_size_debug(log);
        case GUC_CRASH_DUMP_LOG_BUFFER:
-               return CRASH_BUFFER_SIZE;
+               return intel_guc_log_section_size_crash(log);
        case GUC_CAPTURE_LOG_BUFFER:
-               return CAPTURE_BUFFER_SIZE;
+               return intel_guc_log_section_size_capture(log);
        default:
                MISSING_CASE(type);
        }
@@ -226,7 +381,8 @@ unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
        return 0;
 }
 
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,
+                                      enum guc_log_buffer_type type)
 {
        enum guc_log_buffer_type i;
        size_t offset = PAGE_SIZE;/* for the log_buffer_states */
@@ -234,7 +390,7 @@ size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
        for (i = GUC_DEBUG_LOG_BUFFER; i < GUC_MAX_LOG_BUFFER; ++i) {
                if (i == type)
                        break;
-               offset += intel_guc_get_log_buffer_size(i);
+               offset += intel_guc_get_log_buffer_size(log, i);
        }
 
        return offset;
@@ -285,7 +441,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)
                 */
                memcpy(&log_buf_state_local, log_buf_state,
                       sizeof(struct guc_log_buffer_state));
-               buffer_size = intel_guc_get_log_buffer_size(type);
+               buffer_size = intel_guc_get_log_buffer_size(log, type);
                read_offset = log_buf_state_local.read_ptr;
                write_offset = log_buf_state_local.sampled_write_ptr;
                full_cnt = log_buf_state_local.buffer_full_cnt;
@@ -400,7 +556,7 @@ static int guc_log_relay_create(struct intel_guc_log *log)
          * Keep the size of sub buffers same as shared log buffer
          * but GuC log-events excludes the error-state-capture logs
          */
-       subbuf_size = log->vma->size - CAPTURE_BUFFER_SIZE;
+       subbuf_size = log->vma->size - intel_guc_log_section_size_capture(log);
 
        /*
         * Store up to 8 snapshots, which is large enough to buffer sufficient
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +26 -16
index dc9715411d626..02127703be809 100644
@@ -15,20 +15,6 @@
 
 struct intel_guc;
 
-#if defined(CONFIG_DRM_I915_DEBUG_GUC)
-#define CRASH_BUFFER_SIZE      SZ_2M
-#define DEBUG_BUFFER_SIZE      SZ_16M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
-#define CRASH_BUFFER_SIZE      SZ_1M
-#define DEBUG_BUFFER_SIZE      SZ_2M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#else
-#define CRASH_BUFFER_SIZE      SZ_8K
-#define DEBUG_BUFFER_SIZE      SZ_64K
-#define CAPTURE_BUFFER_SIZE    SZ_2M
-#endif
-
 /*
  * While we're using plain log level in i915, GuC controls are much more...
  * "elaborate"? We have a couple of bits for verbosity, separate bit for actual
@@ -46,10 +32,30 @@ struct intel_guc;
 #define GUC_VERBOSITY_TO_LOG_LEVEL(x)  ((x) + 2)
 #define GUC_LOG_LEVEL_MAX GUC_VERBOSITY_TO_LOG_LEVEL(GUC_LOG_VERBOSITY_MAX)
 
+enum {
+       GUC_LOG_SECTIONS_CRASH,
+       GUC_LOG_SECTIONS_DEBUG,
+       GUC_LOG_SECTIONS_CAPTURE,
+       GUC_LOG_SECTIONS_LIMIT
+};
+
 struct intel_guc_log {
        u32 level;
+
+       /* Allocation settings */
+       struct {
+               s32 bytes;      /* Size in bytes */
+               s32 units;      /* GuC API units - 1MB or 4KB */
+               s32 count;      /* Number of API units */
+               u32 flag;       /* GuC API units flag */
+       } sizes[GUC_LOG_SECTIONS_LIMIT];
+       bool sizes_initialised;
+
+       /* Combined buffer allocation */
        struct i915_vma *vma;
        void *buf_addr;
+
+       /* RelayFS support */
        struct {
                bool buf_in_use;
                bool started;
@@ -58,6 +64,7 @@ struct intel_guc_log {
                struct mutex lock;
                u32 full_count;
        } relay;
+
        /* logging related stats */
        struct {
                u32 sampled_overflow;
@@ -69,8 +76,9 @@ struct intel_guc_log {
 void intel_guc_log_init_early(struct intel_guc_log *log);
 bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log, enum guc_log_buffer_type type,
                                      unsigned int full_cnt);
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type);
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type);
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type);
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log, enum guc_log_buffer_type type);
 int intel_guc_log_create(struct intel_guc_log *log);
 void intel_guc_log_destroy(struct intel_guc_log *log);
 
@@ -92,4 +100,6 @@ void intel_guc_log_info(struct intel_guc_log *log, struct drm_printer *p);
 int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
                       bool dump_load_err);
 
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log);
+
 #endif
drivers/gpu/drm/i915/i915_params.c +12 -0
index 6fc475a5db615..06ca5b8221118 100644
@@ -171,6 +171,18 @@ i915_param_named(guc_log_level, int, 0400,
        "GuC firmware logging level. Requires GuC to be loaded. "
        "(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
+i915_param_named(guc_log_size_crash, int, 0400,
+       "GuC firmware logging buffer size for crash dumps (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
+i915_param_named(guc_log_size_debug, int, 0400,
+       "GuC firmware logging buffer size for debug logs (in MB)"
+       "(-1=auto [default], NB: max = 16, other restrictions apply)");
+
+i915_param_named(guc_log_size_capture, int, 0400,
+       "GuC error capture register dump buffer size (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
 i915_param_named_unsafe(guc_firmware_path, charp, 0400,
        "GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +3 -0
index 2733cb6cfe094..f684d1ab87078 100644
@@ -61,6 +61,9 @@ struct drm_printer;
        param(int, invert_brightness, 0, 0600) \
        param(int, enable_guc, -1, 0400) \
        param(int, guc_log_level, -1, 0400) \
+       param(int, guc_log_size_crash, -1, 0400) \
+       param(int, guc_log_size_debug, -1, 0400) \
+       param(int, guc_log_size_capture, -1, 0400) \
        param(char *, guc_firmware_path, NULL, 0400) \
        param(char *, huc_firmware_path, NULL, 0400) \
        param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
2.37.1

A message that is not in the archive (sent off-list or not yet received): [email protected]

maintainer
#23 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

Quoting John Harrison (2022-08-24 21:45:09)

Quoted 9 lines · Joonas Lahtinen
Quoted 6 lines

NACK on this one. Let's get this reverted or fixed to eliminate new module parameters.

What prevents us just from using the maximum sizes? Or alternatively we could check the already existing drm.debug variable or anything else but addding 3 new module parameters.

We don't want to waste 24MB of memory for all users when 99.999% of them don't care about GuC logs.

It is not exactly wasting memory if it is what is needed to capture the error logs to properly debug a system. And it's definitely not much on any modern system where you will have a GPU. You can always leave the Kconfig options in place for the cases where it matters.

On the other hand, if 99.999% don't need this, then it could just stay as a kernel config time option as well?

Quoted 10 lines

We also don't want to tie the GuC logging buffer size to the DRM debugging output. Enabling kernel debug output can change timings and prevent the issue that one is trying to capture in the GuC log. And it seems unlikely we could add an entire new top level DRM debug flag just for an internal i915 only log buffer size. Plus drm.debug is explicitly stated as being dynamically changeable via sysfs at any time. The GuC log buffer size cannot be changed without reloading the i915 driver. Or at least, not without reloading the GuC, but we definitely don't want to create a UAPI for arbitrarily reloading the GuC.

Quoted 4 lines

We can make these parameters 'unsafe' so that they taint the kernel if used. But this is exactly what module parameters are for - configuration that we don't want to hardcode as CONFIG options but which must be set at module load time.

It's better to have sane defaults. And if somebody wants something strange, they can have a Kconfig behind EXPERT option. But even then there should really be need for it.

So for now, let's get the module parameters reverted and go with reasonable default buffer sizes when GuC is enabled. The compile time options can be left in place.

Thank you in advance.

Regards, Joonas

Quoted 508 lines

John.

Quoted 504 lines

For future reference, please do Cc maintainers when adding new uAPI like module parameters.

Regards, Joonas

Quoting [email protected] (2022-07-28 05:20:27)

Quoted 497 lines

From: John Harrison <[email protected]>

The GuC log buffer sizes had to be configured statically at compile time. This can be quite troublesome when needing to get larger logs out of a released driver. So re-organise the code to allow a boot time module parameter override.

---
  drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  53 ++----
  .../gpu/drm/i915/gt/uc/intel_guc_capture.c    |  14 +-
  drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 176 +++++++++++++++++-
  drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +++--
  drivers/gpu/drm/i915/i915_params.c            |  12 ++
  drivers/gpu/drm/i915/i915_params.h            |   3 +
  6 files changed, 226 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -42
index ab4aacc516aa4..01f2705cb94a3 100644
@@ -224,53 +224,22 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc)
 
  static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
  {
-       u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
-       u32 flags;
-
-       #if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
-       #define LOG_UNIT SZ_1M
-       #define LOG_FLAG GUC_LOG_LOG_ALLOC_UNITS
-       #else
-       #define LOG_UNIT SZ_4K
-       #define LOG_FLAG 0
-       #endif
-
-       #if (((CAPTURE_BUFFER_SIZE) % SZ_1M) == 0)
-       #define CAPTURE_UNIT SZ_1M
-       #define CAPTURE_FLAG GUC_LOG_CAPTURE_ALLOC_UNITS
-       #else
-       #define CAPTURE_UNIT SZ_4K
-       #define CAPTURE_FLAG 0
-       #endif
-
-       BUILD_BUG_ON(!CRASH_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CRASH_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!DEBUG_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(DEBUG_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!CAPTURE_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CAPTURE_BUFFER_SIZE, CAPTURE_UNIT));
-
-       BUILD_BUG_ON((CRASH_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT));
-       BUILD_BUG_ON((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT));
-       BUILD_BUG_ON((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) >
-                       (GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT));
+       struct intel_guc_log *log = &guc->log;
+       u32 offset, flags;
+
+       GEM_BUG_ON(!log->sizes_initialised);
+
+       offset = intel_guc_ggtt_offset(guc, log->vma) >> PAGE_SHIFT;
 
         flags = GUC_LOG_VALID |
                 GUC_LOG_NOTIFY_ON_HALF_FULL |
-               CAPTURE_FLAG |
-               LOG_FLAG |
-               ((CRASH_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_CRASH_SHIFT) |
-               ((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_DEBUG_SHIFT) |
-               ((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) << GUC_LOG_CAPTURE_SHIFT) |
+               log->sizes[GUC_LOG_SECTIONS_DEBUG].flag |
+               log->sizes[GUC_LOG_SECTIONS_CAPTURE].flag |
+               (log->sizes[GUC_LOG_SECTIONS_CRASH].count << GUC_LOG_CRASH_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_DEBUG].count << GUC_LOG_DEBUG_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_CAPTURE].count << GUC_LOG_CAPTURE_SHIFT) |
                 (offset << GUC_LOG_BUF_ADDR_SHIFT);
 
-       #undef LOG_UNIT
-       #undef LOG_FLAG
-       #undef CAPTURE_UNIT
-       #undef CAPTURE_FLAG
-
         return flags;
  }
 
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +8 -6
index b54b7883320b1..d2ac53d4f3b6e 100644
@@ -656,16 +656,17 @@ static void check_guc_capture_size(struct intel_guc *guc)
         struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
         int min_size = guc_capture_output_min_size_est(guc);
         int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+       u32 buffer_size = intel_guc_log_section_size_capture(&guc->log);
 
         if (min_size < 0)
                 drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
                          min_size);
-       else if (min_size > CAPTURE_BUFFER_SIZE)
+       else if (min_size > buffer_size)
                 drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
-                        CAPTURE_BUFFER_SIZE, min_size);
-       else if (spare_size > CAPTURE_BUFFER_SIZE)
+                        buffer_size, min_size);
+       else if (spare_size > buffer_size)
                 drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
-                          CAPTURE_BUFFER_SIZE, spare_size, min_size);
+                          buffer_size, spare_size, min_size);
  }
 
  /*
@@ -1294,7 +1295,8 @@ static void __guc_capture_process_output(struct intel_guc *guc)
 
         log_buf_state = guc->log.buf_addr +
                         (sizeof(struct guc_log_buffer_state) * GUC_CAPTURE_LOG_BUFFER);
-       src_data = guc->log.buf_addr + intel_guc_get_log_buffer_offset(GUC_CAPTURE_LOG_BUFFER);
+       src_data = guc->log.buf_addr +
+                  intel_guc_get_log_buffer_offset(&guc->log, GUC_CAPTURE_LOG_BUFFER);
 
         /*
          * Make a copy of the state structure, inside GuC log buffer
@@ -1302,7 +1304,7 @@ static void __guc_capture_process_output(struct intel_guc *guc)
          * from it multiple times.
          */
         memcpy(&log_buf_state_local, log_buf_state, sizeof(struct guc_log_buffer_state));
-       buffer_size = intel_guc_get_log_buffer_size(GUC_CAPTURE_LOG_BUFFER);
+       buffer_size = intel_guc_get_log_buffer_size(&guc->log, GUC_CAPTURE_LOG_BUFFER);
         read_offset = log_buf_state_local.read_ptr;
         write_offset = log_buf_state_local.sampled_write_ptr;
         full_count = log_buf_state_local.buffer_full_cnt;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +166 -10
index 4722d4b18ed19..890b6853bd609 100644
@@ -13,8 +13,158 @@
  #include "intel_guc_capture.h"
  #include "intel_guc_log.h"
 
+#if defined(CONFIG_DRM_I915_DEBUG_GUC)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_16M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_1M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#else
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_8K
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_64K
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_2M
+#endif
+
  static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
+struct guc_log_section {
+       u32 max;
+       u32 flag;
+       u32 default_val;
+       const char *name;
+};
+
+static s32 scale_log_param(struct intel_guc_log *log, const struct guc_log_section *section,
+                          s32 param)
+{
+       /* -1 means default */
+       if (param < 0)
+               return section->default_val;
+
+       /* Check for 32-bit overflow */
+       if (param >= SZ_4K) {
+               drm_err(&guc_to_gt(log_to_guc(log))->i915->drm, "Size too large for GuC %s log: %dMB!",
+                       section->name, param);
+               return section->default_val;
+       }
+
+       /* Param units are 1MB */
+       return param * SZ_1M;
+}
+
+static void _guc_log_init_sizes(struct intel_guc_log *log)
+{
+       struct intel_guc *guc = log_to_guc(log);
+       struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
+       static const struct guc_log_section sections[GUC_LOG_SECTIONS_LIMIT] = {
+               {
+                       GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
+                       "crash dump"
+               },
+               {
+                       GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
+                       "debug",
+               },
+               {
+                       GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT,
+                       GUC_LOG_CAPTURE_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
+                       "capture",
+               }
+       };
+       s32 params[GUC_LOG_SECTIONS_LIMIT] = {
+               i915->params.guc_log_size_crash,
+               i915->params.guc_log_size_debug,
+               i915->params.guc_log_size_capture,
+       };
+       int i;
+
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++)
+               log->sizes[i].bytes = scale_log_param(log, sections + i, params[i]);
+
+       /* If debug size > 1MB then bump default crash size to keep the same units */
+       if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
+           (i915->params.guc_log_size_crash == -1) &&
+           GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
+               log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
+
+       /* Prepare the GuC API structure fields: */
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++) {
+               /* Convert to correct units */
+               if ((log->sizes[i].bytes % SZ_1M) == 0) {
+                       log->sizes[i].units = SZ_1M;
+                       log->sizes[i].flag = sections[i].flag;
+               } else {
+                       log->sizes[i].units = SZ_4K;
+                       log->sizes[i].flag = 0;
+               }
+
+               if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units))
+                       drm_err(&i915->drm, "Mis-aligned GuC log %s size: 0x%X vs 0x%X!",
+                               sections[i].name, log->sizes[i].bytes, log->sizes[i].units);
+               log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;
+
+               if (!log->sizes[i].count) {
+                       drm_err(&i915->drm, "Zero GuC log %s size!", sections[i].name);
+               } else {
+                       /* Size is +1 unit */
+                       log->sizes[i].count--;
+               }
+
+               /* Clip to field size */
+               if (log->sizes[i].count > sections[i].max) {
+                       drm_err(&i915->drm, "GuC log %s size too large: %d vs %d!",
+                               sections[i].name, log->sizes[i].count + 1, sections[i].max + 1);
+                       log->sizes[i].count = sections[i].max;
+               }
+       }
+
+       if (log->sizes[GUC_LOG_SECTIONS_CRASH].units != log->sizes[GUC_LOG_SECTIONS_DEBUG].units) {
+               drm_err(&i915->drm, "Unit mis-match for GuC log crash and debug sections: %d vs %d!",
+                       log->sizes[GUC_LOG_SECTIONS_CRASH].units,
+                       log->sizes[GUC_LOG_SECTIONS_DEBUG].units);
+               log->sizes[GUC_LOG_SECTIONS_CRASH].units = log->sizes[GUC_LOG_SECTIONS_DEBUG].units;
+               log->sizes[GUC_LOG_SECTIONS_CRASH].count = 0;
+       }
+
+       log->sizes_initialised = true;
+}
+
+static void guc_log_init_sizes(struct intel_guc_log *log)
+{
+       if (log->sizes_initialised)
+               return;
+
+       _guc_log_init_sizes(log);
+}
+
+static u32 intel_guc_log_section_size_crash(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CRASH].bytes;
+}
+
+static u32 intel_guc_log_section_size_debug(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes;
+}
+
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CAPTURE].bytes;
+}
+
  static u32 intel_guc_log_size(struct intel_guc_log *log)
  {
         /*
@@ -38,7 +188,10 @@ static u32 intel_guc_log_size(struct intel_guc_log *log)
          *  |         Capture logs          |
          *  +===============================+ + CAPTURE_SIZE
          */
-       return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+       return PAGE_SIZE +
+               intel_guc_log_section_size_crash(log) +
+               intel_guc_log_section_size_debug(log) +
+               intel_guc_log_section_size_capture(log);
  }
 
  /**
@@ -165,7 +318,8 @@ static void guc_move_to_next_buf(struct intel_guc_log *log)
         smp_wmb();
 
         /* All data has been written, so now move the offset of sub buffer. */
-       relay_reserve(log->relay.channel, log->vma->obj->base.size - CAPTURE_BUFFER_SIZE);
+       relay_reserve(log->relay.channel, log->vma->obj->base.size -
+                                         intel_guc_log_section_size_capture(log));
 
         /* Switch to the next sub buffer */
         relay_flush(log->relay.channel);
@@ -210,15 +364,16 @@ bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log,
         return overflow;
  }
 
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type)
  {
         switch (type) {
         case GUC_DEBUG_LOG_BUFFER:
-               return DEBUG_BUFFER_SIZE;
+               return intel_guc_log_section_size_debug(log);
         case GUC_CRASH_DUMP_LOG_BUFFER:
-               return CRASH_BUFFER_SIZE;
+               return intel_guc_log_section_size_crash(log);
         case GUC_CAPTURE_LOG_BUFFER:
-               return CAPTURE_BUFFER_SIZE;
+               return intel_guc_log_section_size_capture(log);
         default:
                 MISSING_CASE(type);
         }
@@ -226,7 +381,8 @@ unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
         return 0;
  }
 
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,
+                                      enum guc_log_buffer_type type)
  {
         enum guc_log_buffer_type i;
         size_t offset = PAGE_SIZE;/* for the log_buffer_states */
@@ -234,7 +390,7 @@ size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
         for (i = GUC_DEBUG_LOG_BUFFER; i < GUC_MAX_LOG_BUFFER; ++i) {
                 if (i == type)
                         break;
-               offset += intel_guc_get_log_buffer_size(i);
+               offset += intel_guc_get_log_buffer_size(log, i);
         }
 
         return offset;
@@ -285,7 +441,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)
                  */
                 memcpy(&log_buf_state_local, log_buf_state,
                        sizeof(struct guc_log_buffer_state));
-               buffer_size = intel_guc_get_log_buffer_size(type);
+               buffer_size = intel_guc_get_log_buffer_size(log, type);
                 read_offset = log_buf_state_local.read_ptr;
                 write_offset = log_buf_state_local.sampled_write_ptr;
                 full_cnt = log_buf_state_local.buffer_full_cnt;
@@ -400,7 +556,7 @@ static int guc_log_relay_create(struct intel_guc_log *log)
           * Keep the size of sub buffers same as shared log buffer
           * but GuC log-events excludes the error-state-capture logs
           */
-       subbuf_size = log->vma->size - CAPTURE_BUFFER_SIZE;
+       subbuf_size = log->vma->size - intel_guc_log_section_size_capture(log);
 
         /*
          * Store up to 8 snapshots, which is large enough to buffer sufficient
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +26 -16
index dc9715411d626..02127703be809 100644
@@ -15,20 +15,6 @@
 
  struct intel_guc;
 
-#if defined(CONFIG_DRM_I915_DEBUG_GUC)
-#define CRASH_BUFFER_SIZE      SZ_2M
-#define DEBUG_BUFFER_SIZE      SZ_16M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
-#define CRASH_BUFFER_SIZE      SZ_1M
-#define DEBUG_BUFFER_SIZE      SZ_2M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#else
-#define CRASH_BUFFER_SIZE      SZ_8K
-#define DEBUG_BUFFER_SIZE      SZ_64K
-#define CAPTURE_BUFFER_SIZE    SZ_2M
-#endif
-
  /*
   * While we're using plain log level in i915, GuC controls are much more...
   * "elaborate"? We have a couple of bits for verbosity, separate bit for actual
@@ -46,10 +32,30 @@ struct intel_guc;
  #define GUC_VERBOSITY_TO_LOG_LEVEL(x)  ((x) + 2)
  #define GUC_LOG_LEVEL_MAX GUC_VERBOSITY_TO_LOG_LEVEL(GUC_LOG_VERBOSITY_MAX)
 
+enum {
+       GUC_LOG_SECTIONS_CRASH,
+       GUC_LOG_SECTIONS_DEBUG,
+       GUC_LOG_SECTIONS_CAPTURE,
+       GUC_LOG_SECTIONS_LIMIT
+};
+
  struct intel_guc_log {
         u32 level;
+
+       /* Allocation settings */
+       struct {
+               s32 bytes;      /* Size in bytes */
+               s32 units;      /* GuC API units - 1MB or 4KB */
+               s32 count;      /* Number of API units */
+               u32 flag;       /* GuC API units flag */
+       } sizes[GUC_LOG_SECTIONS_LIMIT];
+       bool sizes_initialised;
+
+       /* Combined buffer allocation */
         struct i915_vma *vma;
         void *buf_addr;
+
+       /* RelayFS support */
         struct {
                 bool buf_in_use;
                 bool started;
@@ -58,6 +64,7 @@ struct intel_guc_log {
                 struct mutex lock;
                 u32 full_count;
         } relay;
+
         /* logging related stats */
         struct {
                 u32 sampled_overflow;
@@ -69,8 +76,9 @@ struct intel_guc_log {
  void intel_guc_log_init_early(struct intel_guc_log *log);
  bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log, enum guc_log_buffer_type type,
                                       unsigned int full_cnt);
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type);
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type);
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type);
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log, enum guc_log_buffer_type type);
  int intel_guc_log_create(struct intel_guc_log *log);
  void intel_guc_log_destroy(struct intel_guc_log *log);
 
@@ -92,4 +100,6 @@ void intel_guc_log_info(struct intel_guc_log *log, struct drm_printer *p);
  int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
                        bool dump_load_err);
 
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log);
+
  #endif
drivers/gpu/drm/i915/i915_params.c +12 -0
index 6fc475a5db615..06ca5b8221118 100644
@@ -171,6 +171,18 @@ i915_param_named(guc_log_level, int, 0400,
         "GuC firmware logging level. Requires GuC to be loaded. "
         "(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
+i915_param_named(guc_log_size_crash, int, 0400,
+       "GuC firmware logging buffer size for crash dumps (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
+i915_param_named(guc_log_size_debug, int, 0400,
+       "GuC firmware logging buffer size for debug logs (in MB)"
+       "(-1=auto [default], NB: max = 16, other restrictions apply)");
+
+i915_param_named(guc_log_size_capture, int, 0400,
+       "GuC error capture register dump buffer size (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
  i915_param_named_unsafe(guc_firmware_path, charp, 0400,
         "GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +3 -0
index 2733cb6cfe094..f684d1ab87078 100644
@@ -61,6 +61,9 @@ struct drm_printer;
         param(int, invert_brightness, 0, 0600) \
         param(int, enable_guc, -1, 0400) \
         param(int, guc_log_level, -1, 0400) \
+       param(int, guc_log_size_crash, -1, 0400) \
+       param(int, guc_log_size_debug, -1, 0400) \
+       param(int, guc_log_size_capture, -1, 0400) \
         param(char *, guc_firmware_path, NULL, 0400) \
         param(char *, huc_firmware_path, NULL, 0400) \
         param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
2.37.1
#24 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

Quoted 10 lines · Joonas Lahtinen

Quoting John Harrison (2022-08-24 21:45:09)

Quoted 9 lines · Joonas Lahtinen
Quoted 6 lines

NACK on this one. Let's get this reverted or fixed to eliminate new module parameters.

What prevents us just from using the maximum sizes? Or alternatively we could check the already existing drm.debug variable or anything else but addding 3 new module parameters.

We don't want to waste 24MB of memory for all users when 99.999% of them don't care about GuC logs.

Quoted 7 lines

It is not exactly wasting memory if it is what is needed to capture the error logs to properly debug a system. And it's definitely not much on any modern system where you will have a GPU. You can always leave the Kconfig options in place for the cases where it matters.

On the other hand, if 99.999% don't need this, then it could just stay as a kernel config time option as well?

No. The point is that we need to able to ask customers to increase the log size, repro an issue and send us the results. All on a pre-installed system where they do not have the option to build a custom kernel. Either we always allocate the maximum and waste the memory for all end users or we have a runtime configuration option. Compile time is not acceptable for some important customers/situations.

Quoted 11 lines
Quoted 11 lines

We also don't want to tie the GuC logging buffer size to the DRM debugging output. Enabling kernel debug output can change timings and prevent the issue that one is trying to capture in the GuC log. And it seems unlikely we could add an entire new top level DRM debug flag just for an internal i915 only log buffer size. Plus drm.debug is explicitly stated as being dynamically changeable via sysfs at any time. The GuC log buffer size cannot be changed without reloading the i915 driver. Or at least, not without reloading the GuC, but we definitely don't want to create a UAPI for arbitrarily reloading the GuC.

Quoted 7 lines
Quoted 4 lines

We can make these parameters 'unsafe' so that they taint the kernel if used. But this is exactly what module parameters are for - configuration that we don't want to hardcode as CONFIG options but which must be set at module load time.

It's better to have sane defaults. And if somebody wants something strange, they can have a Kconfig behind EXPERT option. But even then there should really be need for it.

Define sane.

Sane for most users is to not allocate 24MB of memory for an internal debug only buffer they will never use. And which completely swamps any error capture log with the ASCII encoding of said buffer.

But as above, we need a way to (very occasionally) get larger GuC logs from customers without rebuilding the kernel.

John.

Quoted 514 lines

So for now, let's get the module parameters reverted and go with reasonable default buffer sizes when GuC is enabled. The compile time options can be left in place.

Thank you in advance.

Regards, Joonas

Quoted 505 lines

John.

Quoted 503 lines

For future reference, please do Cc maintainers when adding new uAPI like module parameters.

Regards, Joonas

Quoting [email protected] (2022-07-28 05:20:27)

Quoted 497 lines

From: John Harrison <[email protected]>

The GuC log buffer sizes had to be configured statically at compile time. This can be quite troublesome when needing to get larger logs out of a released driver. So re-organise the code to allow a boot time module parameter override.

---
   drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  53 ++----
   .../gpu/drm/i915/gt/uc/intel_guc_capture.c    |  14 +-
   drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 176 +++++++++++++++++-
   drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +++--
   drivers/gpu/drm/i915/i915_params.c            |  12 ++
   drivers/gpu/drm/i915/i915_params.h            |   3 +
   6 files changed, 226 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -42
index ab4aacc516aa4..01f2705cb94a3 100644
@@ -224,53 +224,22 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc)
 
   static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
   {
-       u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
-       u32 flags;
-
-       #if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
-       #define LOG_UNIT SZ_1M
-       #define LOG_FLAG GUC_LOG_LOG_ALLOC_UNITS
-       #else
-       #define LOG_UNIT SZ_4K
-       #define LOG_FLAG 0
-       #endif
-
-       #if (((CAPTURE_BUFFER_SIZE) % SZ_1M) == 0)
-       #define CAPTURE_UNIT SZ_1M
-       #define CAPTURE_FLAG GUC_LOG_CAPTURE_ALLOC_UNITS
-       #else
-       #define CAPTURE_UNIT SZ_4K
-       #define CAPTURE_FLAG 0
-       #endif
-
-       BUILD_BUG_ON(!CRASH_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CRASH_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!DEBUG_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(DEBUG_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!CAPTURE_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CAPTURE_BUFFER_SIZE, CAPTURE_UNIT));
-
-       BUILD_BUG_ON((CRASH_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT));
-       BUILD_BUG_ON((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT));
-       BUILD_BUG_ON((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) >
-                       (GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT));
+       struct intel_guc_log *log = &guc->log;
+       u32 offset, flags;
+
+       GEM_BUG_ON(!log->sizes_initialised);
+
+       offset = intel_guc_ggtt_offset(guc, log->vma) >> PAGE_SHIFT;
 
          flags = GUC_LOG_VALID |
                  GUC_LOG_NOTIFY_ON_HALF_FULL |
-               CAPTURE_FLAG |
-               LOG_FLAG |
-               ((CRASH_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_CRASH_SHIFT) |
-               ((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_DEBUG_SHIFT) |
-               ((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) << GUC_LOG_CAPTURE_SHIFT) |
+               log->sizes[GUC_LOG_SECTIONS_DEBUG].flag |
+               log->sizes[GUC_LOG_SECTIONS_CAPTURE].flag |
+               (log->sizes[GUC_LOG_SECTIONS_CRASH].count << GUC_LOG_CRASH_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_DEBUG].count << GUC_LOG_DEBUG_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_CAPTURE].count << GUC_LOG_CAPTURE_SHIFT) |
                  (offset << GUC_LOG_BUF_ADDR_SHIFT);
 
-       #undef LOG_UNIT
-       #undef LOG_FLAG
-       #undef CAPTURE_UNIT
-       #undef CAPTURE_FLAG
-
          return flags;
   }
 
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +8 -6
index b54b7883320b1..d2ac53d4f3b6e 100644
@@ -656,16 +656,17 @@ static void check_guc_capture_size(struct intel_guc *guc)
          struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
          int min_size = guc_capture_output_min_size_est(guc);
          int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+       u32 buffer_size = intel_guc_log_section_size_capture(&guc->log);
 
          if (min_size < 0)
                  drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
                           min_size);
-       else if (min_size > CAPTURE_BUFFER_SIZE)
+       else if (min_size > buffer_size)
                  drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
-                        CAPTURE_BUFFER_SIZE, min_size);
-       else if (spare_size > CAPTURE_BUFFER_SIZE)
+                        buffer_size, min_size);
+       else if (spare_size > buffer_size)
                  drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
-                          CAPTURE_BUFFER_SIZE, spare_size, min_size);
+                          buffer_size, spare_size, min_size);
   }
 
   /*
@@ -1294,7 +1295,8 @@ static void __guc_capture_process_output(struct intel_guc *guc)
 
          log_buf_state = guc->log.buf_addr +
                          (sizeof(struct guc_log_buffer_state) * GUC_CAPTURE_LOG_BUFFER);
-       src_data = guc->log.buf_addr + intel_guc_get_log_buffer_offset(GUC_CAPTURE_LOG_BUFFER);
+       src_data = guc->log.buf_addr +
+                  intel_guc_get_log_buffer_offset(&guc->log, GUC_CAPTURE_LOG_BUFFER);
 
          /*
           * Make a copy of the state structure, inside GuC log buffer
@@ -1302,7 +1304,7 @@ static void __guc_capture_process_output(struct intel_guc *guc)
           * from it multiple times.
           */
          memcpy(&log_buf_state_local, log_buf_state, sizeof(struct guc_log_buffer_state));
-       buffer_size = intel_guc_get_log_buffer_size(GUC_CAPTURE_LOG_BUFFER);
+       buffer_size = intel_guc_get_log_buffer_size(&guc->log, GUC_CAPTURE_LOG_BUFFER);
          read_offset = log_buf_state_local.read_ptr;
          write_offset = log_buf_state_local.sampled_write_ptr;
          full_count = log_buf_state_local.buffer_full_cnt;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +166 -10
index 4722d4b18ed19..890b6853bd609 100644
@@ -13,8 +13,158 @@
   #include "intel_guc_capture.h"
   #include "intel_guc_log.h"
 
+#if defined(CONFIG_DRM_I915_DEBUG_GUC)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_16M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_1M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#else
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_8K
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_64K
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_2M
+#endif
+
   static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
+struct guc_log_section {
+       u32 max;
+       u32 flag;
+       u32 default_val;
+       const char *name;
+};
+
+static s32 scale_log_param(struct intel_guc_log *log, const struct guc_log_section *section,
+                          s32 param)
+{
+       /* -1 means default */
+       if (param < 0)
+               return section->default_val;
+
+       /* Check for 32-bit overflow */
+       if (param >= SZ_4K) {
+               drm_err(&guc_to_gt(log_to_guc(log))->i915->drm, "Size too large for GuC %s log: %dMB!",
+                       section->name, param);
+               return section->default_val;
+       }
+
+       /* Param units are 1MB */
+       return param * SZ_1M;
+}
+
+static void _guc_log_init_sizes(struct intel_guc_log *log)
+{
+       struct intel_guc *guc = log_to_guc(log);
+       struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
+       static const struct guc_log_section sections[GUC_LOG_SECTIONS_LIMIT] = {
+               {
+                       GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
+                       "crash dump"
+               },
+               {
+                       GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
+                       "debug",
+               },
+               {
+                       GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT,
+                       GUC_LOG_CAPTURE_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
+                       "capture",
+               }
+       };
+       s32 params[GUC_LOG_SECTIONS_LIMIT] = {
+               i915->params.guc_log_size_crash,
+               i915->params.guc_log_size_debug,
+               i915->params.guc_log_size_capture,
+       };
+       int i;
+
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++)
+               log->sizes[i].bytes = scale_log_param(log, sections + i, params[i]);
+
+       /* If debug size > 1MB then bump default crash size to keep the same units */
+       if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
+           (i915->params.guc_log_size_crash == -1) &&
+           GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
+               log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
+
+       /* Prepare the GuC API structure fields: */
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++) {
+               /* Convert to correct units */
+               if ((log->sizes[i].bytes % SZ_1M) == 0) {
+                       log->sizes[i].units = SZ_1M;
+                       log->sizes[i].flag = sections[i].flag;
+               } else {
+                       log->sizes[i].units = SZ_4K;
+                       log->sizes[i].flag = 0;
+               }
+
+               if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units))
+                       drm_err(&i915->drm, "Mis-aligned GuC log %s size: 0x%X vs 0x%X!",
+                               sections[i].name, log->sizes[i].bytes, log->sizes[i].units);
+               log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;
+
+               if (!log->sizes[i].count) {
+                       drm_err(&i915->drm, "Zero GuC log %s size!", sections[i].name);
+               } else {
+                       /* Size is +1 unit */
+                       log->sizes[i].count--;
+               }
+
+               /* Clip to field size */
+               if (log->sizes[i].count > sections[i].max) {
+                       drm_err(&i915->drm, "GuC log %s size too large: %d vs %d!",
+                               sections[i].name, log->sizes[i].count + 1, sections[i].max + 1);
+                       log->sizes[i].count = sections[i].max;
+               }
+       }
+
+       if (log->sizes[GUC_LOG_SECTIONS_CRASH].units != log->sizes[GUC_LOG_SECTIONS_DEBUG].units) {
+               drm_err(&i915->drm, "Unit mis-match for GuC log crash and debug sections: %d vs %d!",
+                       log->sizes[GUC_LOG_SECTIONS_CRASH].units,
+                       log->sizes[GUC_LOG_SECTIONS_DEBUG].units);
+               log->sizes[GUC_LOG_SECTIONS_CRASH].units = log->sizes[GUC_LOG_SECTIONS_DEBUG].units;
+               log->sizes[GUC_LOG_SECTIONS_CRASH].count = 0;
+       }
+
+       log->sizes_initialised = true;
+}
+
+static void guc_log_init_sizes(struct intel_guc_log *log)
+{
+       if (log->sizes_initialised)
+               return;
+
+       _guc_log_init_sizes(log);
+}
+
+static u32 intel_guc_log_section_size_crash(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CRASH].bytes;
+}
+
+static u32 intel_guc_log_section_size_debug(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes;
+}
+
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CAPTURE].bytes;
+}
+
   static u32 intel_guc_log_size(struct intel_guc_log *log)
   {
          /*
@@ -38,7 +188,10 @@ static u32 intel_guc_log_size(struct intel_guc_log *log)
           *  |         Capture logs          |
           *  +===============================+ + CAPTURE_SIZE
           */
-       return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+       return PAGE_SIZE +
+               intel_guc_log_section_size_crash(log) +
+               intel_guc_log_section_size_debug(log) +
+               intel_guc_log_section_size_capture(log);
   }
 
   /**
@@ -165,7 +318,8 @@ static void guc_move_to_next_buf(struct intel_guc_log *log)
          smp_wmb();
 
          /* All data has been written, so now move the offset of sub buffer. */
-       relay_reserve(log->relay.channel, log->vma->obj->base.size - CAPTURE_BUFFER_SIZE);
+       relay_reserve(log->relay.channel, log->vma->obj->base.size -
+                                         intel_guc_log_section_size_capture(log));
 
          /* Switch to the next sub buffer */
          relay_flush(log->relay.channel);
@@ -210,15 +364,16 @@ bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log,
          return overflow;
   }
 
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type)
   {
          switch (type) {
          case GUC_DEBUG_LOG_BUFFER:
-               return DEBUG_BUFFER_SIZE;
+               return intel_guc_log_section_size_debug(log);
          case GUC_CRASH_DUMP_LOG_BUFFER:
-               return CRASH_BUFFER_SIZE;
+               return intel_guc_log_section_size_crash(log);
          case GUC_CAPTURE_LOG_BUFFER:
-               return CAPTURE_BUFFER_SIZE;
+               return intel_guc_log_section_size_capture(log);
          default:
                  MISSING_CASE(type);
          }
@@ -226,7 +381,8 @@ unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
          return 0;
   }
 
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,
+                                      enum guc_log_buffer_type type)
   {
          enum guc_log_buffer_type i;
          size_t offset = PAGE_SIZE;/* for the log_buffer_states */
@@ -234,7 +390,7 @@ size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
          for (i = GUC_DEBUG_LOG_BUFFER; i < GUC_MAX_LOG_BUFFER; ++i) {
                  if (i == type)
                          break;
-               offset += intel_guc_get_log_buffer_size(i);
+               offset += intel_guc_get_log_buffer_size(log, i);
          }
 
          return offset;
@@ -285,7 +441,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)
                   */
                  memcpy(&log_buf_state_local, log_buf_state,
                         sizeof(struct guc_log_buffer_state));
-               buffer_size = intel_guc_get_log_buffer_size(type);
+               buffer_size = intel_guc_get_log_buffer_size(log, type);
                  read_offset = log_buf_state_local.read_ptr;
                  write_offset = log_buf_state_local.sampled_write_ptr;
                  full_cnt = log_buf_state_local.buffer_full_cnt;
@@ -400,7 +556,7 @@ static int guc_log_relay_create(struct intel_guc_log *log)
            * Keep the size of sub buffers same as shared log buffer
            * but GuC log-events excludes the error-state-capture logs
            */
-       subbuf_size = log->vma->size - CAPTURE_BUFFER_SIZE;
+       subbuf_size = log->vma->size - intel_guc_log_section_size_capture(log);
 
          /*
           * Store up to 8 snapshots, which is large enough to buffer sufficient
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +26 -16
index dc9715411d626..02127703be809 100644
@@ -15,20 +15,6 @@
 
   struct intel_guc;
 
-#if defined(CONFIG_DRM_I915_DEBUG_GUC)
-#define CRASH_BUFFER_SIZE      SZ_2M
-#define DEBUG_BUFFER_SIZE      SZ_16M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
-#define CRASH_BUFFER_SIZE      SZ_1M
-#define DEBUG_BUFFER_SIZE      SZ_2M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#else
-#define CRASH_BUFFER_SIZE      SZ_8K
-#define DEBUG_BUFFER_SIZE      SZ_64K
-#define CAPTURE_BUFFER_SIZE    SZ_2M
-#endif
-
   /*
    * While we're using plain log level in i915, GuC controls are much more...
    * "elaborate"? We have a couple of bits for verbosity, separate bit for actual
@@ -46,10 +32,30 @@ struct intel_guc;
   #define GUC_VERBOSITY_TO_LOG_LEVEL(x)  ((x) + 2)
   #define GUC_LOG_LEVEL_MAX GUC_VERBOSITY_TO_LOG_LEVEL(GUC_LOG_VERBOSITY_MAX)
 
+enum {
+       GUC_LOG_SECTIONS_CRASH,
+       GUC_LOG_SECTIONS_DEBUG,
+       GUC_LOG_SECTIONS_CAPTURE,
+       GUC_LOG_SECTIONS_LIMIT
+};
+
   struct intel_guc_log {
          u32 level;
+
+       /* Allocation settings */
+       struct {
+               s32 bytes;      /* Size in bytes */
+               s32 units;      /* GuC API units - 1MB or 4KB */
+               s32 count;      /* Number of API units */
+               u32 flag;       /* GuC API units flag */
+       } sizes[GUC_LOG_SECTIONS_LIMIT];
+       bool sizes_initialised;
+
+       /* Combined buffer allocation */
          struct i915_vma *vma;
          void *buf_addr;
+
+       /* RelayFS support */
          struct {
                  bool buf_in_use;
                  bool started;
@@ -58,6 +64,7 @@ struct intel_guc_log {
                  struct mutex lock;
                  u32 full_count;
          } relay;
+
          /* logging related stats */
          struct {
                  u32 sampled_overflow;
@@ -69,8 +76,9 @@ struct intel_guc_log {
   void intel_guc_log_init_early(struct intel_guc_log *log);
   bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log, enum guc_log_buffer_type type,
                                        unsigned int full_cnt);
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type);
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type);
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type);
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log, enum guc_log_buffer_type type);
   int intel_guc_log_create(struct intel_guc_log *log);
   void intel_guc_log_destroy(struct intel_guc_log *log);
 
@@ -92,4 +100,6 @@ void intel_guc_log_info(struct intel_guc_log *log, struct drm_printer *p);
   int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
                         bool dump_load_err);
 
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log);
+
   #endif
drivers/gpu/drm/i915/i915_params.c +12 -0
index 6fc475a5db615..06ca5b8221118 100644
@@ -171,6 +171,18 @@ i915_param_named(guc_log_level, int, 0400,
          "GuC firmware logging level. Requires GuC to be loaded. "
          "(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
+i915_param_named(guc_log_size_crash, int, 0400,
+       "GuC firmware logging buffer size for crash dumps (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
+i915_param_named(guc_log_size_debug, int, 0400,
+       "GuC firmware logging buffer size for debug logs (in MB)"
+       "(-1=auto [default], NB: max = 16, other restrictions apply)");
+
+i915_param_named(guc_log_size_capture, int, 0400,
+       "GuC error capture register dump buffer size (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
   i915_param_named_unsafe(guc_firmware_path, charp, 0400,
          "GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +3 -0
index 2733cb6cfe094..f684d1ab87078 100644
@@ -61,6 +61,9 @@ struct drm_printer;
          param(int, invert_brightness, 0, 0600) \
          param(int, enable_guc, -1, 0400) \
          param(int, guc_log_level, -1, 0400) \
+       param(int, guc_log_size_crash, -1, 0400) \
+       param(int, guc_log_size_debug, -1, 0400) \
+       param(int, guc_log_size_capture, -1, 0400) \
          param(char *, guc_firmware_path, NULL, 0400) \
          param(char *, huc_firmware_path, NULL, 0400) \
          param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
2.37.1
maintainer
#25 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

Quoting John Harrison (2022-08-25 19:31:39)

Quoted 16 lines · Joonas Lahtinen
Quoted 15 lines

Quoting John Harrison (2022-08-24 21:45:09)

Quoted 9 lines · Joonas Lahtinen
Quoted 6 lines

NACK on this one. Let's get this reverted or fixed to eliminate new module parameters.

What prevents us just from using the maximum sizes? Or alternatively we could check the already existing drm.debug variable or anything else but addding 3 new module parameters.

We don't want to waste 24MB of memory for all users when 99.999% of them don't care about GuC logs.

It is not exactly wasting memory if it is what is needed to capture the error logs to properly debug a system. And it's definitely not much on any modern system where you will have a GPU. You can always leave the Kconfig options in place for the cases where it matters.

Quoted 4 lines
Quoted 2 lines

On the other hand, if 99.999% don't need this, then it could just stay as a kernel config time option as well?

No. The point is that we need to able to ask customers to increase the log size, repro an issue and send us the results.

Or we could just ask them to provide the logs for each bug report and save one round trip time.

Quoted 2 lines

All on a pre-installed
system where they do not have the option to build a custom kernel.

If you argue that way, they don't always have an easy way to change the kernel cmdline options either. Accounting for initrd, update-grub etc.

Quoted 2 lines

Either we always allocate the maximum and waste the memory for all end users or we have a runtime configuration option.

Doesn't have to be maximum (as there seems to be limitations in log readback speeds also), just something that is useful for most of the debug scenarios.

Quoted 2 lines

Compile time is not
acceptable for some important customers/situations.

Yet spending the time discussing how to make the debug logs useful with the issue reporter wouldn't be an issue in such urgency?

One can argue what is most convenient way, but there's no way to beat sane default. If somebody has problem with that extra memory usage, then we have the config options to reduce/disable.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

We also don't want to tie the GuC logging buffer size to the DRM debugging output. Enabling kernel debug output can change timings and prevent the issue that one is trying to capture in the GuC log. And it seems unlikely we could add an entire new top level DRM debug flag just for an internal i915 only log buffer size. Plus drm.debug is explicitly stated as being dynamically changeable via sysfs at any time. The GuC log buffer size cannot be changed without reloading the i915 driver. Or at least, not without reloading the GuC, but we definitely don't want to create a UAPI for arbitrarily reloading the GuC.

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

We can make these parameters 'unsafe' so that they taint the kernel if used. But this is exactly what module parameters are for - configuration that we don't want to hardcode as CONFIG options but which must be set at module load time.

It's better to have sane defaults. And if somebody wants something strange, they can have a Kconfig behind EXPERT option. But even then there should really be need for it.

Define sane.

I was hoping you would be the expert on that as you've suggested the patch to begin with.

Try to aim to cover >90% of the debug scenarios (that are only 0.001%) and we're already only needing to recompile kernel in 1 per million cases.

We can live with that.

I will push a fixup to remove the module parameters, please figure the rest out in a timely manner.

Regards, Joonas

Quoted 525 lines

Sane for most users is to not allocate 24MB of memory for an internal debug only buffer they will never use. And which completely swamps any error capture log with the ASCII encoding of said buffer.

But as above, we need a way to (very occasionally) get larger GuC logs from customers without rebuilding the kernel.

John.

Quoted 514 lines

So for now, let's get the module parameters reverted and go with reasonable default buffer sizes when GuC is enabled. The compile time options can be left in place.

Thank you in advance.

Regards, Joonas

Quoted 505 lines

John.

Quoted 503 lines

For future reference, please do Cc maintainers when adding new uAPI like module parameters.

Regards, Joonas

Quoting [email protected] (2022-07-28 05:20:27)

Quoted 497 lines

From: John Harrison <[email protected]>

The GuC log buffer sizes had to be configured statically at compile time. This can be quite troublesome when needing to get larger logs out of a released driver. So re-organise the code to allow a boot time module parameter override.

---
   drivers/gpu/drm/i915/gt/uc/intel_guc.c        |  53 ++----
   .../gpu/drm/i915/gt/uc/intel_guc_capture.c    |  14 +-
   drivers/gpu/drm/i915/gt/uc/intel_guc_log.c    | 176 +++++++++++++++++-
   drivers/gpu/drm/i915/gt/uc/intel_guc_log.h    |  42 +++--
   drivers/gpu/drm/i915/i915_params.c            |  12 ++
   drivers/gpu/drm/i915/i915_params.h            |   3 +
   6 files changed, 226 insertions(+), 74 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -42
index ab4aacc516aa4..01f2705cb94a3 100644
@@ -224,53 +224,22 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc)
 
   static u32 guc_ctl_log_params_flags(struct intel_guc *guc)
   {
-       u32 offset = intel_guc_ggtt_offset(guc, guc->log.vma) >> PAGE_SHIFT;
-       u32 flags;
-
-       #if (((CRASH_BUFFER_SIZE) % SZ_1M) == 0)
-       #define LOG_UNIT SZ_1M
-       #define LOG_FLAG GUC_LOG_LOG_ALLOC_UNITS
-       #else
-       #define LOG_UNIT SZ_4K
-       #define LOG_FLAG 0
-       #endif
-
-       #if (((CAPTURE_BUFFER_SIZE) % SZ_1M) == 0)
-       #define CAPTURE_UNIT SZ_1M
-       #define CAPTURE_FLAG GUC_LOG_CAPTURE_ALLOC_UNITS
-       #else
-       #define CAPTURE_UNIT SZ_4K
-       #define CAPTURE_FLAG 0
-       #endif
-
-       BUILD_BUG_ON(!CRASH_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CRASH_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!DEBUG_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(DEBUG_BUFFER_SIZE, LOG_UNIT));
-       BUILD_BUG_ON(!CAPTURE_BUFFER_SIZE);
-       BUILD_BUG_ON(!IS_ALIGNED(CAPTURE_BUFFER_SIZE, CAPTURE_UNIT));
-
-       BUILD_BUG_ON((CRASH_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT));
-       BUILD_BUG_ON((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) >
-                       (GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT));
-       BUILD_BUG_ON((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) >
-                       (GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT));
+       struct intel_guc_log *log = &guc->log;
+       u32 offset, flags;
+
+       GEM_BUG_ON(!log->sizes_initialised);
+
+       offset = intel_guc_ggtt_offset(guc, log->vma) >> PAGE_SHIFT;
 
          flags = GUC_LOG_VALID |
                  GUC_LOG_NOTIFY_ON_HALF_FULL |
-               CAPTURE_FLAG |
-               LOG_FLAG |
-               ((CRASH_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_CRASH_SHIFT) |
-               ((DEBUG_BUFFER_SIZE / LOG_UNIT - 1) << GUC_LOG_DEBUG_SHIFT) |
-               ((CAPTURE_BUFFER_SIZE / CAPTURE_UNIT - 1) << GUC_LOG_CAPTURE_SHIFT) |
+               log->sizes[GUC_LOG_SECTIONS_DEBUG].flag |
+               log->sizes[GUC_LOG_SECTIONS_CAPTURE].flag |
+               (log->sizes[GUC_LOG_SECTIONS_CRASH].count << GUC_LOG_CRASH_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_DEBUG].count << GUC_LOG_DEBUG_SHIFT) |
+               (log->sizes[GUC_LOG_SECTIONS_CAPTURE].count << GUC_LOG_CAPTURE_SHIFT) |
                  (offset << GUC_LOG_BUF_ADDR_SHIFT);
 
-       #undef LOG_UNIT
-       #undef LOG_FLAG
-       #undef CAPTURE_UNIT
-       #undef CAPTURE_FLAG
-
          return flags;
   }
 
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +8 -6
index b54b7883320b1..d2ac53d4f3b6e 100644
@@ -656,16 +656,17 @@ static void check_guc_capture_size(struct intel_guc *guc)
          struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
          int min_size = guc_capture_output_min_size_est(guc);
          int spare_size = min_size * GUC_CAPTURE_OVERBUFFER_MULTIPLIER;
+       u32 buffer_size = intel_guc_log_section_size_capture(&guc->log);
 
          if (min_size < 0)
                  drm_warn(&i915->drm, "Failed to calculate GuC error state capture buffer minimum size: %d!\n",
                           min_size);
-       else if (min_size > CAPTURE_BUFFER_SIZE)
+       else if (min_size > buffer_size)
                  drm_warn(&i915->drm, "GuC error state capture buffer is too small: %d < %d\n",
-                        CAPTURE_BUFFER_SIZE, min_size);
-       else if (spare_size > CAPTURE_BUFFER_SIZE)
+                        buffer_size, min_size);
+       else if (spare_size > buffer_size)
                  drm_notice(&i915->drm, "GuC error state capture buffer maybe too small: %d < %d (min = %d)\n",
-                          CAPTURE_BUFFER_SIZE, spare_size, min_size);
+                          buffer_size, spare_size, min_size);
   }
 
   /*
@@ -1294,7 +1295,8 @@ static void __guc_capture_process_output(struct intel_guc *guc)
 
          log_buf_state = guc->log.buf_addr +
                          (sizeof(struct guc_log_buffer_state) * GUC_CAPTURE_LOG_BUFFER);
-       src_data = guc->log.buf_addr + intel_guc_get_log_buffer_offset(GUC_CAPTURE_LOG_BUFFER);
+       src_data = guc->log.buf_addr +
+                  intel_guc_get_log_buffer_offset(&guc->log, GUC_CAPTURE_LOG_BUFFER);
 
          /*
           * Make a copy of the state structure, inside GuC log buffer
@@ -1302,7 +1304,7 @@ static void __guc_capture_process_output(struct intel_guc *guc)
           * from it multiple times.
           */
          memcpy(&log_buf_state_local, log_buf_state, sizeof(struct guc_log_buffer_state));
-       buffer_size = intel_guc_get_log_buffer_size(GUC_CAPTURE_LOG_BUFFER);
+       buffer_size = intel_guc_get_log_buffer_size(&guc->log, GUC_CAPTURE_LOG_BUFFER);
          read_offset = log_buf_state_local.read_ptr;
          write_offset = log_buf_state_local.sampled_write_ptr;
          full_count = log_buf_state_local.buffer_full_cnt;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +166 -10
index 4722d4b18ed19..890b6853bd609 100644
@@ -13,8 +13,158 @@
   #include "intel_guc_capture.h"
   #include "intel_guc_log.h"
 
+#if defined(CONFIG_DRM_I915_DEBUG_GUC)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_16M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_1M
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_2M
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_4M
+#else
+#define GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE      SZ_8K
+#define GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE      SZ_64K
+#define GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE    SZ_2M
+#endif
+
   static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);
 
+struct guc_log_section {
+       u32 max;
+       u32 flag;
+       u32 default_val;
+       const char *name;
+};
+
+static s32 scale_log_param(struct intel_guc_log *log, const struct guc_log_section *section,
+                          s32 param)
+{
+       /* -1 means default */
+       if (param < 0)
+               return section->default_val;
+
+       /* Check for 32-bit overflow */
+       if (param >= SZ_4K) {
+               drm_err(&guc_to_gt(log_to_guc(log))->i915->drm, "Size too large for GuC %s log: %dMB!",
+                       section->name, param);
+               return section->default_val;
+       }
+
+       /* Param units are 1MB */
+       return param * SZ_1M;
+}
+
+static void _guc_log_init_sizes(struct intel_guc_log *log)
+{
+       struct intel_guc *guc = log_to_guc(log);
+       struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
+       static const struct guc_log_section sections[GUC_LOG_SECTIONS_LIMIT] = {
+               {
+                       GUC_LOG_CRASH_MASK >> GUC_LOG_CRASH_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
+                       "crash dump"
+               },
+               {
+                       GUC_LOG_DEBUG_MASK >> GUC_LOG_DEBUG_SHIFT,
+                       GUC_LOG_LOG_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
+                       "debug",
+               },
+               {
+                       GUC_LOG_CAPTURE_MASK >> GUC_LOG_CAPTURE_SHIFT,
+                       GUC_LOG_CAPTURE_ALLOC_UNITS,
+                       GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
+                       "capture",
+               }
+       };
+       s32 params[GUC_LOG_SECTIONS_LIMIT] = {
+               i915->params.guc_log_size_crash,
+               i915->params.guc_log_size_debug,
+               i915->params.guc_log_size_capture,
+       };
+       int i;
+
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++)
+               log->sizes[i].bytes = scale_log_param(log, sections + i, params[i]);
+
+       /* If debug size > 1MB then bump default crash size to keep the same units */
+       if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
+           (i915->params.guc_log_size_crash == -1) &&
+           GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
+               log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
+
+       /* Prepare the GuC API structure fields: */
+       for (i = 0; i < GUC_LOG_SECTIONS_LIMIT; i++) {
+               /* Convert to correct units */
+               if ((log->sizes[i].bytes % SZ_1M) == 0) {
+                       log->sizes[i].units = SZ_1M;
+                       log->sizes[i].flag = sections[i].flag;
+               } else {
+                       log->sizes[i].units = SZ_4K;
+                       log->sizes[i].flag = 0;
+               }
+
+               if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units))
+                       drm_err(&i915->drm, "Mis-aligned GuC log %s size: 0x%X vs 0x%X!",
+                               sections[i].name, log->sizes[i].bytes, log->sizes[i].units);
+               log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units;
+
+               if (!log->sizes[i].count) {
+                       drm_err(&i915->drm, "Zero GuC log %s size!", sections[i].name);
+               } else {
+                       /* Size is +1 unit */
+                       log->sizes[i].count--;
+               }
+
+               /* Clip to field size */
+               if (log->sizes[i].count > sections[i].max) {
+                       drm_err(&i915->drm, "GuC log %s size too large: %d vs %d!",
+                               sections[i].name, log->sizes[i].count + 1, sections[i].max + 1);
+                       log->sizes[i].count = sections[i].max;
+               }
+       }
+
+       if (log->sizes[GUC_LOG_SECTIONS_CRASH].units != log->sizes[GUC_LOG_SECTIONS_DEBUG].units) {
+               drm_err(&i915->drm, "Unit mis-match for GuC log crash and debug sections: %d vs %d!",
+                       log->sizes[GUC_LOG_SECTIONS_CRASH].units,
+                       log->sizes[GUC_LOG_SECTIONS_DEBUG].units);
+               log->sizes[GUC_LOG_SECTIONS_CRASH].units = log->sizes[GUC_LOG_SECTIONS_DEBUG].units;
+               log->sizes[GUC_LOG_SECTIONS_CRASH].count = 0;
+       }
+
+       log->sizes_initialised = true;
+}
+
+static void guc_log_init_sizes(struct intel_guc_log *log)
+{
+       if (log->sizes_initialised)
+               return;
+
+       _guc_log_init_sizes(log);
+}
+
+static u32 intel_guc_log_section_size_crash(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CRASH].bytes;
+}
+
+static u32 intel_guc_log_section_size_debug(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes;
+}
+
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log)
+{
+       guc_log_init_sizes(log);
+
+       return log->sizes[GUC_LOG_SECTIONS_CAPTURE].bytes;
+}
+
   static u32 intel_guc_log_size(struct intel_guc_log *log)
   {
          /*
@@ -38,7 +188,10 @@ static u32 intel_guc_log_size(struct intel_guc_log *log)
           *  |         Capture logs          |
           *  +===============================+ + CAPTURE_SIZE
           */
-       return PAGE_SIZE + CRASH_BUFFER_SIZE + DEBUG_BUFFER_SIZE + CAPTURE_BUFFER_SIZE;
+       return PAGE_SIZE +
+               intel_guc_log_section_size_crash(log) +
+               intel_guc_log_section_size_debug(log) +
+               intel_guc_log_section_size_capture(log);
   }
 
   /**
@@ -165,7 +318,8 @@ static void guc_move_to_next_buf(struct intel_guc_log *log)
          smp_wmb();
 
          /* All data has been written, so now move the offset of sub buffer. */
-       relay_reserve(log->relay.channel, log->vma->obj->base.size - CAPTURE_BUFFER_SIZE);
+       relay_reserve(log->relay.channel, log->vma->obj->base.size -
+                                         intel_guc_log_section_size_capture(log));
 
          /* Switch to the next sub buffer */
          relay_flush(log->relay.channel);
@@ -210,15 +364,16 @@ bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log,
          return overflow;
   }
 
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type)
   {
          switch (type) {
          case GUC_DEBUG_LOG_BUFFER:
-               return DEBUG_BUFFER_SIZE;
+               return intel_guc_log_section_size_debug(log);
          case GUC_CRASH_DUMP_LOG_BUFFER:
-               return CRASH_BUFFER_SIZE;
+               return intel_guc_log_section_size_crash(log);
          case GUC_CAPTURE_LOG_BUFFER:
-               return CAPTURE_BUFFER_SIZE;
+               return intel_guc_log_section_size_capture(log);
          default:
                  MISSING_CASE(type);
          }
@@ -226,7 +381,8 @@ unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type)
          return 0;
   }
 
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log,
+                                      enum guc_log_buffer_type type)
   {
          enum guc_log_buffer_type i;
          size_t offset = PAGE_SIZE;/* for the log_buffer_states */
@@ -234,7 +390,7 @@ size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type)
          for (i = GUC_DEBUG_LOG_BUFFER; i < GUC_MAX_LOG_BUFFER; ++i) {
                  if (i == type)
                          break;
-               offset += intel_guc_get_log_buffer_size(i);
+               offset += intel_guc_get_log_buffer_size(log, i);
          }
 
          return offset;
@@ -285,7 +441,7 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)
                   */
                  memcpy(&log_buf_state_local, log_buf_state,
                         sizeof(struct guc_log_buffer_state));
-               buffer_size = intel_guc_get_log_buffer_size(type);
+               buffer_size = intel_guc_get_log_buffer_size(log, type);
                  read_offset = log_buf_state_local.read_ptr;
                  write_offset = log_buf_state_local.sampled_write_ptr;
                  full_cnt = log_buf_state_local.buffer_full_cnt;
@@ -400,7 +556,7 @@ static int guc_log_relay_create(struct intel_guc_log *log)
            * Keep the size of sub buffers same as shared log buffer
            * but GuC log-events excludes the error-state-capture logs
            */
-       subbuf_size = log->vma->size - CAPTURE_BUFFER_SIZE;
+       subbuf_size = log->vma->size - intel_guc_log_section_size_capture(log);
 
          /*
           * Store up to 8 snapshots, which is large enough to buffer sufficient
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +26 -16
index dc9715411d626..02127703be809 100644
@@ -15,20 +15,6 @@
 
   struct intel_guc;
 
-#if defined(CONFIG_DRM_I915_DEBUG_GUC)
-#define CRASH_BUFFER_SIZE      SZ_2M
-#define DEBUG_BUFFER_SIZE      SZ_16M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
-#define CRASH_BUFFER_SIZE      SZ_1M
-#define DEBUG_BUFFER_SIZE      SZ_2M
-#define CAPTURE_BUFFER_SIZE    SZ_4M
-#else
-#define CRASH_BUFFER_SIZE      SZ_8K
-#define DEBUG_BUFFER_SIZE      SZ_64K
-#define CAPTURE_BUFFER_SIZE    SZ_2M
-#endif
-
   /*
    * While we're using plain log level in i915, GuC controls are much more...
    * "elaborate"? We have a couple of bits for verbosity, separate bit for actual
@@ -46,10 +32,30 @@ struct intel_guc;
   #define GUC_VERBOSITY_TO_LOG_LEVEL(x)  ((x) + 2)
   #define GUC_LOG_LEVEL_MAX GUC_VERBOSITY_TO_LOG_LEVEL(GUC_LOG_VERBOSITY_MAX)
 
+enum {
+       GUC_LOG_SECTIONS_CRASH,
+       GUC_LOG_SECTIONS_DEBUG,
+       GUC_LOG_SECTIONS_CAPTURE,
+       GUC_LOG_SECTIONS_LIMIT
+};
+
   struct intel_guc_log {
          u32 level;
+
+       /* Allocation settings */
+       struct {
+               s32 bytes;      /* Size in bytes */
+               s32 units;      /* GuC API units - 1MB or 4KB */
+               s32 count;      /* Number of API units */
+               u32 flag;       /* GuC API units flag */
+       } sizes[GUC_LOG_SECTIONS_LIMIT];
+       bool sizes_initialised;
+
+       /* Combined buffer allocation */
          struct i915_vma *vma;
          void *buf_addr;
+
+       /* RelayFS support */
          struct {
                  bool buf_in_use;
                  bool started;
@@ -58,6 +64,7 @@ struct intel_guc_log {
                  struct mutex lock;
                  u32 full_count;
          } relay;
+
          /* logging related stats */
          struct {
                  u32 sampled_overflow;
@@ -69,8 +76,9 @@ struct intel_guc_log {
   void intel_guc_log_init_early(struct intel_guc_log *log);
   bool intel_guc_check_log_buf_overflow(struct intel_guc_log *log, enum guc_log_buffer_type type,
                                        unsigned int full_cnt);
-unsigned int intel_guc_get_log_buffer_size(enum guc_log_buffer_type type);
-size_t intel_guc_get_log_buffer_offset(enum guc_log_buffer_type type);
+unsigned int intel_guc_get_log_buffer_size(struct intel_guc_log *log,
+                                          enum guc_log_buffer_type type);
+size_t intel_guc_get_log_buffer_offset(struct intel_guc_log *log, enum guc_log_buffer_type type);
   int intel_guc_log_create(struct intel_guc_log *log);
   void intel_guc_log_destroy(struct intel_guc_log *log);
 
@@ -92,4 +100,6 @@ void intel_guc_log_info(struct intel_guc_log *log, struct drm_printer *p);
   int intel_guc_log_dump(struct intel_guc_log *log, struct drm_printer *p,
                         bool dump_load_err);
 
+u32 intel_guc_log_section_size_capture(struct intel_guc_log *log);
+
   #endif
drivers/gpu/drm/i915/i915_params.c +12 -0
index 6fc475a5db615..06ca5b8221118 100644
@@ -171,6 +171,18 @@ i915_param_named(guc_log_level, int, 0400,
          "GuC firmware logging level. Requires GuC to be loaded. "
          "(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
+i915_param_named(guc_log_size_crash, int, 0400,
+       "GuC firmware logging buffer size for crash dumps (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
+i915_param_named(guc_log_size_debug, int, 0400,
+       "GuC firmware logging buffer size for debug logs (in MB)"
+       "(-1=auto [default], NB: max = 16, other restrictions apply)");
+
+i915_param_named(guc_log_size_capture, int, 0400,
+       "GuC error capture register dump buffer size (in MB)"
+       "(-1=auto [default], NB: max = 4, other restrictions apply)");
+
   i915_param_named_unsafe(guc_firmware_path, charp, 0400,
          "GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +3 -0
index 2733cb6cfe094..f684d1ab87078 100644
@@ -61,6 +61,9 @@ struct drm_printer;
          param(int, invert_brightness, 0, 0600) \
          param(int, enable_guc, -1, 0400) \
          param(int, guc_log_level, -1, 0400) \
+       param(int, guc_log_size_crash, -1, 0400) \
+       param(int, guc_log_size_debug, -1, 0400) \
+       param(int, guc_log_size_capture, -1, 0400) \
          param(char *, guc_firmware_path, NULL, 0400) \
          param(char *, huc_firmware_path, NULL, 0400) \
          param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
2.37.1
maintainer
#26 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

Quoting Joonas Lahtinen (2022-08-26 09:23:08)

Quoted 25 lines

Quoting John Harrison (2022-08-25 19:31:39)

Quoted 12 lines · Joonas Lahtinen
Quoted 11 lines

Quoting John Harrison (2022-08-24 21:45:09)

Quoted 10 lines

We also don't want to tie the GuC logging buffer size to the DRM debugging output. Enabling kernel debug output can change timings and prevent the issue that one is trying to capture in the GuC log. And it seems unlikely we could add an entire new top level DRM debug flag just for an internal i915 only log buffer size. Plus drm.debug is explicitly stated as being dynamically changeable via sysfs at any time. The GuC log buffer size cannot be changed without reloading the i915 driver. Or at least, not without reloading the GuC, but we definitely don't want to create a UAPI for arbitrarily reloading the GuC.

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

We can make these parameters 'unsafe' so that they taint the kernel if used. But this is exactly what module parameters are for - configuration that we don't want to hardcode as CONFIG options but which must be set at module load time.

It's better to have sane defaults. And if somebody wants something strange, they can have a Kconfig behind EXPERT option. But even then there should really be need for it.

Define sane.

I was hoping you would be the expert on that as you've suggested the patch to begin with.

Quoted 7 lines

Try to aim to cover >90% of the debug scenarios (that are only 0.001%) and we're already only needing to recompile kernel in 1 per million cases.

We can live with that.

I will push a fixup to remove the module parameters, please figure the rest out in a timely manner.

John, what is the status of the followup patch here to configure those reasonable defaults?

We shouldn't be ignoring this and proceed to pile other GuC patches on top.

Regards, Joonas

#27 lore raw

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

Quoted 24 lines · Joonas Lahtinen

Quoting Joonas Lahtinen (2022-08-26 09:23:08)

Quoted 23 lines

Quoting John Harrison (2022-08-25 19:31:39)

Quoted 12 lines · Joonas Lahtinen
Quoted 11 lines

Quoting John Harrison (2022-08-24 21:45:09)

Quoted 10 lines

We also don't want to tie the GuC logging buffer size to the DRM debugging output. Enabling kernel debug output can change timings and prevent the issue that one is trying to capture in the GuC log. And it seems unlikely we could add an entire new top level DRM debug flag just for an internal i915 only log buffer size. Plus drm.debug is explicitly stated as being dynamically changeable via sysfs at any time. The GuC log buffer size cannot be changed without reloading the i915 driver. Or at least, not without reloading the GuC, but we definitely don't want to create a UAPI for arbitrarily reloading the GuC.

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

We can make these parameters 'unsafe' so that they taint the kernel if used. But this is exactly what module parameters are for - configuration that we don't want to hardcode as CONFIG options but which must be set at module load time.

It's better to have sane defaults. And if somebody wants something strange, they can have a Kconfig behind EXPERT option. But even then there should really be need for it.

Define sane.

I was hoping you would be the expert on that as you've suggested the patch to begin with.

And as the 'expert' I suggested an approach that everyone was happy with except for yourself.

Quoted 5 lines
Quoted 5 lines

Try to aim to cover >90% of the debug scenarios (that are only 0.001%) and we're already only needing to recompile kernel in 1 per million cases.

We can live with that.

This is not about how many instances of debug scenarios need a rebuild. It's about whether or not the person doing the repro has the ability to rebuild a custom kernel.

Quoted 3 lines
Quoted 3 lines

I will push a fixup to remove the module parameters, please figure the rest out in a timely manner.

Your fixup was evidently not tested because it broke non-debug builds.

Quoted 5 lines

John, what is the status of the followup patch here to configure those reasonable defaults?

We shouldn't be ignoring this and proceed to pile other GuC patches on top.

Being out of office is not ignoring.

And I don't see what other options we have. Setting a large default means that the vast majority of people who don't care about GuC will have their error capture logs filled with apparent gibberish in the form of a huge ASCII dump of the GuC log binary data. Which is something that people will surely complain about. Whereas setting a 'sensibly small' default means that we won't be able to use the GuC logs in many of the cases where we actually need to.

So right now, it seems the only choice we have is to fix up the broken driver caused by your incomplete removal and then re-add the module parameter to our internal tree so that our internal customers can at least use it.

John.

Quoted 2 lines

Regards, Joonas

#28 lore raw

PATCH 7/7 drm/i915/guc: Reduce spam from error capture

In reply to [email protected]

From: John Harrison <[email protected]>

Some debug code got left in when the GuC based register save for error capture was added. Remove that.

---
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    | 67 ++++++++-----------
 1 file changed, 28 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +28 -39
index d2ac53d4f3b6e..8f11651460131 100644
@@ -1383,33 +1383,22 @@ guc_capture_reg_to_str(const struct intel_guc *guc, u32 owner, u32 type,
 	return NULL;
 }
 
-#ifdef CONFIG_DRM_I915_DEBUG_GUC
-#define __out(a, ...) \
-	do { \
-		drm_warn((&(a)->i915->drm), __VA_ARGS__); \
-		i915_error_printf((a), __VA_ARGS__); \
-	} while (0)
-#else
-#define __out(a, ...) \
-	i915_error_printf(a, __VA_ARGS__)
-#endif
-
 #define GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng) \
 	do { \
-		__out(ebuf, "    i915-Eng-Name: %s command stream\n", \
-		      (eng)->name); \
-		__out(ebuf, "    i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \
-		__out(ebuf, "    i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \
-		__out(ebuf, "    i915-Eng-LogicalMask: 0x%08x\n", \
-		      (eng)->logical_mask); \
+		i915_error_printf(ebuf, "    i915-Eng-Name: %s command stream\n", \
+				  (eng)->name); \
+		i915_error_printf(ebuf, "    i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \
+		i915_error_printf(ebuf, "    i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \
+		i915_error_printf(ebuf, "    i915-Eng-LogicalMask: 0x%08x\n", \
+				  (eng)->logical_mask); \
 	} while (0)
 
 #define GCAP_PRINT_GUC_INST_INFO(ebuf, node) \
 	do { \
-		__out(ebuf, "    GuC-Engine-Inst-Id: 0x%08x\n", \
-		      (node)->eng_inst); \
-		__out(ebuf, "    GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
-		__out(ebuf, "    LRCA: 0x%08x\n", (node)->lrca); \
+		i915_error_printf(ebuf, "    GuC-Engine-Inst-Id: 0x%08x\n", \
+				  (node)->eng_inst); \
+		i915_error_printf(ebuf, "    GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
+		i915_error_printf(ebuf, "    LRCA: 0x%08x\n", (node)->lrca); \
 	} while (0)
 
 int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *ebuf,
@@ -1441,57 +1430,57 @@ int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *ebuf,
 
 	guc = &ee->engine->gt->uc.guc;
 
-	__out(ebuf, "global --- GuC Error Capture on %s command stream:\n",
-	      ee->engine->name);
+	i915_error_printf(ebuf, "global --- GuC Error Capture on %s command stream:\n",
+			  ee->engine->name);
 
 	node = ee->guc_capture_node;
 	if (!node) {
-		__out(ebuf, "  No matching ee-node\n");
+		i915_error_printf(ebuf, "  No matching ee-node\n");
 		return 0;
 	}
 
-	__out(ebuf, "Coverage:  %s\n", grptype[node->is_partial]);
+	i915_error_printf(ebuf, "Coverage:  %s\n", grptype[node->is_partial]);
 
 	for (i = GUC_CAPTURE_LIST_TYPE_GLOBAL; i < GUC_CAPTURE_LIST_TYPE_MAX; ++i) {
-		__out(ebuf, "  RegListType: %s\n",
-		      datatype[i % GUC_CAPTURE_LIST_TYPE_MAX]);
-		__out(ebuf, "    Owner-Id: %d\n", node->reginfo[i].vfid);
+		i915_error_printf(ebuf, "  RegListType: %s\n",
+				  datatype[i % GUC_CAPTURE_LIST_TYPE_MAX]);
+		i915_error_printf(ebuf, "    Owner-Id: %d\n", node->reginfo[i].vfid);
 
 		switch (i) {
 		case GUC_CAPTURE_LIST_TYPE_GLOBAL:
 		default:
 			break;
 		case GUC_CAPTURE_LIST_TYPE_ENGINE_CLASS:
-			__out(ebuf, "    GuC-Eng-Class: %d\n", node->eng_class);
-			__out(ebuf, "    i915-Eng-Class: %d\n",
-			      guc_class_to_engine_class(node->eng_class));
+			i915_error_printf(ebuf, "    GuC-Eng-Class: %d\n", node->eng_class);
+			i915_error_printf(ebuf, "    i915-Eng-Class: %d\n",
+					  guc_class_to_engine_class(node->eng_class));
 			break;
 		case GUC_CAPTURE_LIST_TYPE_ENGINE_INSTANCE:
 			eng = intel_guc_lookup_engine(guc, node->eng_class, node->eng_inst);
 			if (eng)
 				GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng);
 			else
-				__out(ebuf, "    i915-Eng-Lookup Fail!\n");
+				i915_error_printf(ebuf, "    i915-Eng-Lookup Fail!\n");
 			GCAP_PRINT_GUC_INST_INFO(ebuf, node);
 			break;
 		}
 
 		numregs = node->reginfo[i].num_regs;
-		__out(ebuf, "    NumRegs: %d\n", numregs);
+		i915_error_printf(ebuf, "    NumRegs: %d\n", numregs);
 		j = 0;
 		while (numregs--) {
 			regs = node->reginfo[i].regs;
 			str = guc_capture_reg_to_str(guc, GUC_CAPTURE_LIST_INDEX_PF, i,
 						     node->eng_class, 0, regs[j].offset, &is_ext);
 			if (!str)
-				__out(ebuf, "      REG-0x%08x", regs[j].offset);
+				i915_error_printf(ebuf, "      REG-0x%08x", regs[j].offset);
 			else
-				__out(ebuf, "      %s", str);
+				i915_error_printf(ebuf, "      %s", str);
 			if (is_ext)
-				__out(ebuf, "[%ld][%ld]",
-				      FIELD_GET(GUC_REGSET_STEERING_GROUP, regs[j].flags),
-				      FIELD_GET(GUC_REGSET_STEERING_INSTANCE, regs[j].flags));
-			__out(ebuf, ":  0x%08x\n", regs[j].value);
+				i915_error_printf(ebuf, "[%ld][%ld]",
+					FIELD_GET(GUC_REGSET_STEERING_GROUP, regs[j].flags),
+					FIELD_GET(GUC_REGSET_STEERING_INSTANCE, regs[j].flags));
+			i915_error_printf(ebuf, ":  0x%08x\n", regs[j].value);
 			++j;
 		}
 	}
Signature · 1 line
2.37.1
Reviewed-by on v1 7/7
#29 lore raw

Re: [Intel-gfx] [PATCH 7/7] drm/i915/guc: Reduce spam from error capture

Quoted 137 lines · On Wed, 2022-07-27 at 19:20 -0700, [email protected] wrote:

From: John Harrison <[email protected]>

Some debug code got left in when the GuC based register save for error capture was added. Remove that.

---
 .../gpu/drm/i915/gt/uc/intel_guc_capture.c    | 67 ++++++++-----------
 1 file changed, 28 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +28 -39
index d2ac53d4f3b6e..8f11651460131 100644
@@ -1383,33 +1383,22 @@ guc_capture_reg_to_str(const struct intel_guc *guc, u32 owner, u32 type,
 	return NULL;
 }
 
-#ifdef CONFIG_DRM_I915_DEBUG_GUC
-#define __out(a, ...) \
-	do { \
-		drm_warn((&(a)->i915->drm), __VA_ARGS__); \
-		i915_error_printf((a), __VA_ARGS__); \
-	} while (0)
-#else
-#define __out(a, ...) \
-	i915_error_printf(a, __VA_ARGS__)
-#endif
-
 #define GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng) \
 	do { \
-		__out(ebuf, "    i915-Eng-Name: %s command stream\n", \
-		      (eng)->name); \
-		__out(ebuf, "    i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \
-		__out(ebuf, "    i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \
-		__out(ebuf, "    i915-Eng-LogicalMask: 0x%08x\n", \
-		      (eng)->logical_mask); \
+		i915_error_printf(ebuf, "    i915-Eng-Name: %s command stream\n", \
+				  (eng)->name); \
+		i915_error_printf(ebuf, "    i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \
+		i915_error_printf(ebuf, "    i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \
+		i915_error_printf(ebuf, "    i915-Eng-LogicalMask: 0x%08x\n", \
+				  (eng)->logical_mask); \
 	} while (0)
 
 #define GCAP_PRINT_GUC_INST_INFO(ebuf, node) \
 	do { \
-		__out(ebuf, "    GuC-Engine-Inst-Id: 0x%08x\n", \
-		      (node)->eng_inst); \
-		__out(ebuf, "    GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
-		__out(ebuf, "    LRCA: 0x%08x\n", (node)->lrca); \
+		i915_error_printf(ebuf, "    GuC-Engine-Inst-Id: 0x%08x\n", \
+				  (node)->eng_inst); \
+		i915_error_printf(ebuf, "    GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
+		i915_error_printf(ebuf, "    LRCA: 0x%08x\n", (node)->lrca); \
 	} while (0)
 
 int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *ebuf,
@@ -1441,57 +1430,57 @@ int intel_guc_capture_print_engine_node(struct drm_i915_error_state_buf *ebuf,
 
 	guc = &ee->engine->gt->uc.guc;
 
-	__out(ebuf, "global --- GuC Error Capture on %s command stream:\n",
-	      ee->engine->name);
+	i915_error_printf(ebuf, "global --- GuC Error Capture on %s command stream:\n",
+			  ee->engine->name);
 
 	node = ee->guc_capture_node;
 	if (!node) {
-		__out(ebuf, "  No matching ee-node\n");
+		i915_error_printf(ebuf, "  No matching ee-node\n");
 		return 0;
 	}
 
-	__out(ebuf, "Coverage:  %s\n", grptype[node->is_partial]);
+	i915_error_printf(ebuf, "Coverage:  %s\n", grptype[node->is_partial]);
 
 	for (i = GUC_CAPTURE_LIST_TYPE_GLOBAL; i < GUC_CAPTURE_LIST_TYPE_MAX; ++i) {
-		__out(ebuf, "  RegListType: %s\n",
-		      datatype[i % GUC_CAPTURE_LIST_TYPE_MAX]);
-		__out(ebuf, "    Owner-Id: %d\n", node->reginfo[i].vfid);
+		i915_error_printf(ebuf, "  RegListType: %s\n",
+				  datatype[i % GUC_CAPTURE_LIST_TYPE_MAX]);
+		i915_error_printf(ebuf, "    Owner-Id: %d\n", node->reginfo[i].vfid);
 
 		switch (i) {
 		case GUC_CAPTURE_LIST_TYPE_GLOBAL:
 		default:
 			break;
 		case GUC_CAPTURE_LIST_TYPE_ENGINE_CLASS:
-			__out(ebuf, "    GuC-Eng-Class: %d\n", node->eng_class);
-			__out(ebuf, "    i915-Eng-Class: %d\n",
-			      guc_class_to_engine_class(node->eng_class));
+			i915_error_printf(ebuf, "    GuC-Eng-Class: %d\n", node->eng_class);
+			i915_error_printf(ebuf, "    i915-Eng-Class: %d\n",
+					  guc_class_to_engine_class(node->eng_class));
 			break;
 		case GUC_CAPTURE_LIST_TYPE_ENGINE_INSTANCE:
 			eng = intel_guc_lookup_engine(guc, node->eng_class, node->eng_inst);
 			if (eng)
 				GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng);
 			else
-				__out(ebuf, "    i915-Eng-Lookup Fail!\n");
+				i915_error_printf(ebuf, "    i915-Eng-Lookup Fail!\n");
 			GCAP_PRINT_GUC_INST_INFO(ebuf, node);
 			break;
 		}
 
 		numregs = node->reginfo[i].num_regs;
-		__out(ebuf, "    NumRegs: %d\n", numregs);
+		i915_error_printf(ebuf, "    NumRegs: %d\n", numregs);
 		j = 0;
 		while (numregs--) {
 			regs = node->reginfo[i].regs;
 			str = guc_capture_reg_to_str(guc, GUC_CAPTURE_LIST_INDEX_PF, i,
 						     node->eng_class, 0, regs[j].offset, &is_ext);
 			if (!str)
-				__out(ebuf, "      REG-0x%08x", regs[j].offset);
+				i915_error_printf(ebuf, "      REG-0x%08x", regs[j].offset);
 			else
-				__out(ebuf, "      %s", str);
+				i915_error_printf(ebuf, "      %s", str);
 			if (is_ext)
-				__out(ebuf, "[%ld][%ld]",
-				      FIELD_GET(GUC_REGSET_STEERING_GROUP, regs[j].flags),
-				      FIELD_GET(GUC_REGSET_STEERING_INSTANCE, regs[j].flags));
-			__out(ebuf, ":  0x%08x\n", regs[j].value);
+				i915_error_printf(ebuf, "[%ld][%ld]",
+					FIELD_GET(GUC_REGSET_STEERING_GROUP, regs[j].flags),
+					FIELD_GET(GUC_REGSET_STEERING_INSTANCE, regs[j].flags));
+			i915_error_printf(ebuf, ":  0x%08x\n", regs[j].value);
 			++j;
 		}
 	}
Signature · 1 line
2.37.1
#30 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Fixes and improvements to GuC logging and error capture

In reply to [email protected]
== Series Details ==

== Series Details ==

Series: Fixes and improvements to GuC logging and error capture
URL : https://patchwork.freedesktop.org/series/106789/
State : warning

== Summary ==

Error: dim checkpatch failed
77f455e72ebc drm/i915/guc: Add a helper for log buffer size f49ac6e6709a drm/i915/guc: Fix capture size warning and bump the size c88ca5a46e03 drm/i915/guc: Add GuC <-> kernel time stamp translation information 1ea2fd778459 drm/i915/guc: Record CTB info in error logs eb7e76603266 drm/i915/guc: Use streaming loads to speed up dumping the guc log 01657cac8399 drm/i915/guc: Make GuC log sizes runtime configurable -:462: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #462: FILE: drivers/gpu/drm/i915/i915_params.c:175:
+i915_param_named(guc_log_size_crash, int, 0400,
+ "GuC firmware logging buffer size for crash dumps (in MB)"

-:466: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #466: FILE: drivers/gpu/drm/i915/i915_params.c:179:
+i915_param_named(guc_log_size_debug, int, 0400,
+ "GuC firmware logging buffer size for debug logs (in MB)"

-:470: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #470: FILE: drivers/gpu/drm/i915/i915_params.c:183:
+i915_param_named(guc_log_size_capture, int, 0400,
+ "GuC error capture register dump buffer size (in MB)"

total: 0 errors, 0 warnings, 3 checks, 434 lines checked bec1c0368504 drm/i915/guc: Reduce spam from error capture -:129: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #129: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1481:
+ i915_error_printf(ebuf, "[%ld][%ld]",
+ FIELD_GET(GUC_REGSET_STEERING_GROUP, regs[j].flags),

total: 0 errors, 0 warnings, 1 checks, 118 lines checked

#32 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for Fixes and improvements to GuC logging and error capture

In reply to [email protected]
== Series Details ==

== Series Details ==

Series: Fixes and improvements to GuC logging and error capture
URL : https://patchwork.freedesktop.org/series/106789/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_11946 -> Patchwork_106789v1
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

Participating hosts (38 -> 36)
------------------------------

Additional (2): fi-hsw-4770 bat-jsl-1
Missing (4): bat-rplp-1 bat-adlm-1 fi-bdw-samus bat-dg1-5

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_pm_backlight@basic-brightness:
- fi-hsw-4770: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#3012])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-4770/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: NOTRUN -> [INCOMPLETE][2] ([i915#4785])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-4770/igt@i915_selftest@[email protected]
- fi-hsw-g3258: [PASS][3] -> [INCOMPLETE][4] ([i915#3303] / [i915#4785])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/fi-hsw-g3258/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-g3258/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@requests:
- fi-blb-e6850: [PASS][5] -> [DMESG-FAIL][6] ([i915#4528])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/fi-blb-e6850/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-blb-e6850/igt@i915_selftest@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- fi-bdw-5557u: [PASS][7] -> [INCOMPLETE][8] ([i915#146])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/fi-bdw-5557u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-bdw-5557u/igt@[email protected]

* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-hsw-4770: NOTRUN -> [SKIP][9] ([fdo#109271]) +9 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-4770/igt@[email protected]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-pnv-d510: NOTRUN -> [SKIP][10] ([fdo#109271])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-pnv-d510/igt@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-hsw-4770: NOTRUN -> [SKIP][11] ([fdo#109271] / [fdo#111827]) +7 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-4770/igt@[email protected]

* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#1072]) +3 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html

* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][13] ([fdo#109271] / [i915#4312] / [i915#5594] / [i915#6246])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-4770/igt@[email protected]
- fi-blb-e6850: NOTRUN -> [FAIL][14] ([fdo#109271] / [i915#2403] / [i915#4312])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-blb-e6850/igt@[email protected]
- fi-hsw-g3258: NOTRUN -> [FAIL][15] ([fdo#109271] / [i915#4312] / [i915#6246])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-hsw-g3258/igt@[email protected]

#### Possible fixes ####

* igt@debugfs_test@read_all_entries:
- fi-kbl-guc: [FAIL][16] ([i915#6253]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/fi-kbl-guc/igt@debugfs_test@read_all_entries.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-kbl-guc/igt@debugfs_test@read_all_entries.html

* igt@fbdev@read:
- {bat-rpls-2}: [SKIP][18] ([i915#2582]) -> [PASS][19] +4 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/bat-rpls-2/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/bat-rpls-2/igt@[email protected]

* igt@i915_selftest@live@gtt:
- {bat-dg2-9}: [DMESG-WARN][20] ([i915#5763]) -> [PASS][21] +5 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/bat-dg2-9/igt@i915_selftest@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/bat-dg2-9/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@requests:
- fi-pnv-d510: [DMESG-FAIL][22] ([i915#4528]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/fi-pnv-d510/igt@i915_selftest@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/fi-pnv-d510/igt@i915_selftest@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- {bat-rpls-2}: [SKIP][24] ([i915#1849]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/bat-rpls-2/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/bat-rpls-2/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- {bat-rpls-2}: [SKIP][26] ([fdo#109295] / [i915#1845] / [i915#3708]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/bat-rpls-2/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/bat-rpls-2/igt@[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#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2403]: https://gitlab.freedesktop.org/drm/intel/issues/2403
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3003]: https://gitlab.freedesktop.org/drm/intel/issues/3003
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
[i915#5763]: https://gitlab.freedesktop.org/drm/intel/issues/5763
[i915#5903]: https://gitlab.freedesktop.org/drm/intel/issues/5903
[i915#5950]: https://gitlab.freedesktop.org/drm/intel/issues/5950
[i915#6246]: https://gitlab.freedesktop.org/drm/intel/issues/6246
[i915#6253]: https://gitlab.freedesktop.org/drm/intel/issues/6253

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

* Linux: CI_DRM_11946 -> Patchwork_106789v1

CI-20190529: 20190529
CI_DRM_11946: 0e9c43d76a145712da46e935d429ce2a3eea80e8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6598: 97e103419021d0863db527e3f2cf39ccdd132db5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_106789v1: 0e9c43d76a145712da46e935d429ce2a3eea80e8 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

470088a45b74 drm/i915/guc: Reduce spam from error capture 3a4ba58cfd81 drm/i915/guc: Make GuC log sizes runtime configurable 175c2c403f04 drm/i915/guc: Use streaming loads to speed up dumping the guc log 83699521af18 drm/i915/guc: Record CTB info in error logs 99d74264e41b drm/i915/guc: Add GuC <-> kernel time stamp translation information d6282f113072 drm/i915/guc: Fix capture size warning and bump the size d3458a797893 drm/i915/guc: Add a helper for log buffer size

== Logs ==

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

#33 lore raw

[Intel-gfx] ✗ Fi.CI.IGT: failure for Fixes and improvements to GuC logging and error capture

In reply to [email protected]
== Series Details ==

== Series Details ==

Series: Fixes and improvements to GuC logging and error capture
URL : https://patchwork.freedesktop.org/series/106789/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11946_full -> Patchwork_106789v1_full
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (13 -> 13)
------------------------------

No changes in participating hosts

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_mmap@short-mmap:
- shard-skl: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl4/igt@[email protected]

* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-skl: [PASS][3] -> [TIMEOUT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl9/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@gem_ctx_persistence@many-contexts:
- {shard-dg1}: NOTRUN -> [DMESG-FAIL][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-dg1-17/igt@[email protected]

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

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

### CI changes ###

#### Issues hit ####

* boot:
- shard-apl: ([PASS][6], [PASS][7], [PASS][8], [PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [PASS][26], [PASS][27], [PASS][28], [PASS][29], [PASS][30]) -> ([PASS][31], [PASS][32], [PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50], [PASS][51], [PASS][52], [PASS][53], [PASS][54], [FAIL][55]) ([i915#4386])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl2/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl2/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl2/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl3/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl3/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl3/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl7/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl7/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl7/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl3/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl3/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl3/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl2/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl2/boot.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl2/boot.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html
- shard-glk: ([PASS][56], [PASS][57], [PASS][58], [PASS][59], [PASS][60], [PASS][61], [PASS][62], [PASS][63], [PASS][64], [PASS][65], [PASS][66], [PASS][67], [PASS][68], [PASS][69], [PASS][70], [PASS][71], [PASS][72], [PASS][73], [PASS][74], [PASS][75], [PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80]) -> ([PASS][81], [PASS][82], [PASS][83], [PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91], [PASS][92], [PASS][93], [PASS][94], [PASS][95], [PASS][96], [PASS][97], [PASS][98], [PASS][99], [PASS][100], [PASS][101], [PASS][102], [PASS][103], [PASS][104], [FAIL][105]) ([i915#4392])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk9/boot.html
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk9/boot.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk9/boot.html
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/boot.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/boot.html
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/boot.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/boot.html
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/boot.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/boot.html
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk6/boot.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk6/boot.html
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk6/boot.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/boot.html
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/boot.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/boot.html
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk2/boot.html
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk2/boot.html
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk2/boot.html
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk1/boot.html
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk1/boot.html
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk1/boot.html
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk9/boot.html
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk9/boot.html
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk9/boot.html
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/boot.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/boot.html
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/boot.html
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/boot.html
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/boot.html
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/boot.html
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk6/boot.html
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk6/boot.html
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk6/boot.html
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/boot.html
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/boot.html
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/boot.html
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk3/boot.html
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk3/boot.html
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk3/boot.html
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk2/boot.html
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk2/boot.html
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk2/boot.html
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html

### IGT changes ###

#### Issues hit ####

* igt@feature_discovery@psr2:
- shard-iclb: [PASS][106] -> [SKIP][107] ([i915#658])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@[email protected]

* igt@gem_create@create-massive:
- shard-glk: NOTRUN -> [DMESG-WARN][108] ([i915#4991])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/igt@[email protected]
- shard-kbl: NOTRUN -> [DMESG-WARN][109] ([i915#4991])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]

* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][110] -> [FAIL][111] ([i915#5784])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglb7/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglb3/igt@[email protected]

* igt@gem_exec_balancer@parallel-keep-submit-fence:
- shard-iclb: [PASS][112] -> [SKIP][113] ([i915#4525])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb1/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb3/igt@[email protected]

* igt@gem_exec_fair@basic-none@rcs0:
- shard-kbl: [PASS][114] -> [FAIL][115] ([i915#2842])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl7/igt@gem_exec_fair@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][116] -> [FAIL][117] ([i915#2842])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/igt@gem_exec_fair@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/igt@gem_exec_fair@[email protected]

* igt@gem_lmem_swapping@verify-ccs:
- shard-kbl: NOTRUN -> [SKIP][118] ([fdo#109271] / [i915#4613])
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]

* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][119] ([i915#4991])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- shard-apl: [PASS][120] -> [WARN][121] ([i915#6405])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/igt@i915_pm_rc6_residency@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/igt@i915_pm_rc6_residency@[email protected]

* igt@i915_pm_sseu@full-enable:
- shard-skl: [PASS][122] -> [FAIL][123] ([i915#3048])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl10/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl10/igt@[email protected]

* igt@kms_async_flips@alternate-sync-async-flip@pipe-b-edp-1:
- shard-skl: [PASS][124] -> [FAIL][125] ([i915#2521])
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl1/igt@kms_async_flips@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@kms_async_flips@[email protected]

* igt@kms_busy@extended-pageflip-hang-newfb:
- shard-snb: NOTRUN -> [SKIP][126] ([fdo#109271])
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-snb6/igt@[email protected]

* igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][127] ([fdo#109271] / [i915#3886])
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_mc_ccs.html

* igt@kms_chamelium@hdmi-frame-dump:
- shard-kbl: NOTRUN -> [SKIP][128] ([fdo#109271] / [fdo#111827]) +1 similar issue
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]

* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-apl: NOTRUN -> [SKIP][129] ([fdo#109271] / [fdo#111827]) +2 similar issues
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@[email protected]

* igt@kms_cursor_crc@cursor-suspend@pipe-b-edp-1:
- shard-skl: [PASS][130] -> [INCOMPLETE][131] ([i915#4939])
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl7/igt@kms_cursor_crc@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@kms_cursor_crc@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions:
- shard-glk: [PASS][132] -> [FAIL][133] ([i915#2346])
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/igt@kms_cursor_legacy@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/igt@kms_cursor_legacy@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@c-edp1:
- shard-skl: [PASS][134] -> [FAIL][135] ([i915#79])
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl9/igt@kms_flip@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-edp1:
- shard-skl: [PASS][136] -> [INCOMPLETE][137] ([i915#4839])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl9/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-fb-recreate@c-edp1:
- shard-skl: [PASS][138] -> [FAIL][139] ([i915#2122]) +1 similar issue
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl9/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][140] ([i915#3555]) +1 similar issue
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-default-mode.html

* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][141] ([i915#2672]) +7 similar issues
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][142] ([i915#2672] / [i915#3555])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb3/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-default-mode.html

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc:
- shard-snb: [PASS][143] -> [SKIP][144] ([fdo#109271])
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-snb2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc.html
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-snb6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [PASS][145] -> [DMESG-WARN][146] ([i915#180]) +7 similar issues
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl4/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render:
- shard-apl: NOTRUN -> [SKIP][147] ([fdo#109271]) +24 similar issues
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-move:
- shard-kbl: NOTRUN -> [SKIP][148] ([fdo#109271]) +14 similar issues
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]

* igt@kms_hdr@bpc-switch-suspend@pipe-a-dp-1:
- shard-apl: [PASS][149] -> [DMESG-WARN][150] ([i915#180]) +1 similar issue
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/igt@kms_hdr@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/igt@kms_hdr@[email protected]
- shard-kbl: [PASS][151] -> [FAIL][152] ([i915#1188])
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl6/igt@kms_hdr@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl4/igt@kms_hdr@[email protected]

* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1:
- shard-iclb: [PASS][153] -> [SKIP][154] ([i915#5235]) +2 similar issues
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@kms_plane_scaling@[email protected]
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@kms_plane_scaling@[email protected]

* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [PASS][155] -> [SKIP][156] ([fdo#109441]) +3 similar issues
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@kms_psr@psr2_sprite_blt.html

* igt@perf@polling:
- shard-skl: [PASS][157] -> [FAIL][158] ([i915#1542])
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl1/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@[email protected]

#### Possible fixes ####

* igt@fbdev@info:
- {shard-rkl}: [SKIP][159] ([i915#2582]) -> [PASS][160]
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@gem_ctx_exec@basic-nohangcheck:
- {shard-rkl}: [FAIL][161] ([i915#6268]) -> [PASS][162]
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@gem_ctx_persistence@many-contexts:
- {shard-rkl}: [FAIL][163] ([i915#2410]) -> [PASS][164]
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@gem_eio@unwedge-stress:
- {shard-dg1}: [FAIL][165] ([i915#5784]) -> [PASS][166]
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-dg1-17/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-dg1-13/igt@[email protected]
- {shard-tglu}: [TIMEOUT][167] ([i915#3063]) -> [PASS][168]
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglu-6/igt@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglu-2/igt@[email protected]

* igt@gem_exec_balancer@fairslice:
- {shard-rkl}: [SKIP][169] ([i915#6259]) -> [PASS][170]
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-5/igt@[email protected]
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-2/igt@[email protected]

* igt@gem_exec_balancer@parallel-contexts:
- shard-iclb: [SKIP][171] ([i915#4525]) -> [PASS][172] +1 similar issue
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb7/igt@[email protected]
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb4/igt@[email protected]

* igt@gem_exec_fair@basic-deadline:
- shard-kbl: [FAIL][173] ([i915#2846]) -> [PASS][174]
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl7/igt@[email protected]
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]

* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-kbl: [FAIL][175] ([i915#2842]) -> [PASS][176] +3 similar issues
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@gem_exec_fair@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-share@rcs0:
- {shard-tglu}: [FAIL][177] ([i915#2842]) -> [PASS][178]
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglu-8/igt@gem_exec_fair@[email protected]
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglu-3/igt@gem_exec_fair@[email protected]
- shard-tglb: [FAIL][179] ([i915#2842]) -> [PASS][180]
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglb8/igt@gem_exec_fair@[email protected]
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglb7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@rcs0:
- {shard-rkl}: [FAIL][181] ([i915#2842]) -> [PASS][182]
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-6/igt@gem_exec_fair@[email protected]
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs0:
- shard-glk: [FAIL][183] ([i915#2842]) -> [PASS][184]
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/igt@gem_exec_fair@[email protected]
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [FAIL][185] ([i915#2849]) -> [PASS][186]
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb4/igt@gem_exec_fair@[email protected]
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- {shard-rkl}: [SKIP][187] ([fdo#109313]) -> [PASS][188]
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@gem_exec_reloc@basic-write-read-noreloc:
- {shard-rkl}: [SKIP][189] ([i915#3281]) -> [PASS][190] +15 similar issues
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@[email protected]
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@gem_exec_schedule@semaphore-power:
- {shard-rkl}: [SKIP][191] ([fdo#110254]) -> [PASS][192]
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@gem_partial_pwrite_pread@writes-after-reads-uncached:
- {shard-rkl}: [SKIP][193] ([i915#3282]) -> [PASS][194] +7 similar issues
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-6/igt@[email protected]
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@gen9_exec_parse@allowed-single:
- shard-glk: [DMESG-WARN][195] ([i915#5566] / [i915#716]) -> [PASS][196]
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/igt@[email protected]
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/igt@[email protected]

* igt@gen9_exec_parse@batch-without-end:
- {shard-rkl}: [SKIP][197] ([i915#2527]) -> [PASS][198] +3 similar issues
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- {shard-rkl}: [WARN][199] ([i915#6405]) -> [PASS][200]
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-5/igt@i915_pm_rc6_residency@[email protected]
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-2/igt@i915_pm_rc6_residency@[email protected]

* igt@i915_pm_rpm@dpms-non-lpsp:
- {shard-dg1}: [SKIP][201] ([i915#1397]) -> [PASS][202] +2 similar issues
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-dg1-19/igt@[email protected]
[202]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-dg1-15/igt@[email protected]

* igt@i915_pm_rpm@fences:
- {shard-rkl}: [SKIP][203] ([i915#1849]) -> [PASS][204]
[203]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[204]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@i915_pm_rpm@i2c:
- {shard-rkl}: [SKIP][205] ([fdo#109308]) -> [PASS][206]
[205]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@[email protected]
[206]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@i915_suspend@forcewake:
- shard-kbl: [DMESG-WARN][207] ([i915#180]) -> [PASS][208] +1 similar issue
[207]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@[email protected]
[208]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]

* igt@kms_atomic@atomic_plane_damage:
- {shard-rkl}: [SKIP][209] ([i915#4098]) -> [PASS][210]
[209]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@kms_atomic@atomic_plane_damage.html
[210]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@kms_atomic@atomic_plane_damage.html

* igt@kms_big_fb@yf-tiled-32bpp-rotate-90:
- shard-skl: [TIMEOUT][211] ([i915#6371]) -> [PASS][212] +1 similar issue
[211]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl7/igt@[email protected]
[212]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl4/igt@[email protected]

* igt@kms_draw_crc@draw-method-xrgb2101010-render-ytiled:
- {shard-rkl}: [SKIP][213] ([fdo#111314] / [i915#4098] / [i915#4369]) -> [PASS][214] +4 similar issues
[213]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[214]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-dp1:
- shard-apl: [FAIL][215] ([i915#79]) -> [PASS][216]
[215]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/igt@kms_flip@[email protected]
[216]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-fb-recreate-interruptible@a-edp1:
- shard-skl: [FAIL][217] ([i915#2122]) -> [PASS][218] +2 similar issues
[217]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip@[email protected]
[218]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-render:
- {shard-rkl}: [SKIP][219] ([i915#1849] / [i915#4098]) -> [PASS][220] +22 similar issues
[219]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@[email protected]
[220]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-shrfb-scaledprimary:
- shard-skl: [DMESG-WARN][221] ([i915#1982]) -> [PASS][222] +1 similar issue
[221]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl9/igt@[email protected]
[222]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@[email protected]

* igt@kms_plane@plane-position-covered@pipe-b-planes:
- {shard-rkl}: [SKIP][223] ([i915#3558]) -> [PASS][224] +1 similar issue
[223]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@kms_plane@[email protected]
[224]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@kms_plane@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [FAIL][225] ([fdo#108145] / [i915#265]) -> [PASS][226]
[225]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl1/igt@[email protected]
[226]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- {shard-rkl}: [SKIP][227] ([i915#1849] / [i915#3546] / [i915#4070] / [i915#4098]) -> [PASS][228]
[227]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[228]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- {shard-rkl}: [SKIP][229] ([i915#3558] / [i915#4070]) -> [PASS][230]
[229]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[230]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@kms_psr@cursor_mmap_cpu:
- {shard-rkl}: [SKIP][231] ([i915#1072]) -> [PASS][232] +1 similar issue
[231]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@kms_psr@cursor_mmap_cpu.html
[232]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@kms_psr@cursor_mmap_cpu.html

* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][233] ([fdo#109441]) -> [PASS][234] +2 similar issues
[233]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@kms_psr@psr2_primary_mmap_cpu.html
[234]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html

* igt@kms_universal_plane@disable-primary-vs-flip-pipe-b:
- {shard-rkl}: [SKIP][235] ([i915#1845] / [i915#4070] / [i915#4098]) -> [PASS][236]
[235]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[236]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@kms_vblank@pipe-b-wait-busy-hang:
- {shard-rkl}: [SKIP][237] ([i915#1845] / [i915#4098]) -> [PASS][238] +26 similar issues
[237]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[238]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@perf@gen12-unprivileged-single-ctx-counters:
- {shard-rkl}: [SKIP][239] ([fdo#109289]) -> [PASS][240]
[239]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-5/igt@[email protected]
[240]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-2/igt@[email protected]

* igt@perf@polling-parameterized:
- shard-skl: [FAIL][241] ([i915#5639]) -> [PASS][242]
[241]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl10/igt@[email protected]
[242]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl7/igt@[email protected]
- shard-tglb: [FAIL][243] ([i915#5639]) -> [PASS][244]
[243]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglb1/igt@[email protected]
[244]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglb5/igt@[email protected]

* igt@perf@polling-small-buf:
- {shard-rkl}: [FAIL][245] ([i915#1722]) -> [PASS][246]
[245]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]
[246]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]

* igt@perf@short-reads:
- shard-skl: [FAIL][247] ([i915#51]) -> [PASS][248]
[247]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl6/igt@[email protected]
[248]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl10/igt@[email protected]

* igt@perf_pmu@rc6-suspend:
- shard-apl: [DMESG-WARN][249] ([i915#180]) -> [PASS][250] +1 similar issue
[249]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/igt@[email protected]
[250]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@[email protected]

* igt@prime_vgem@coherency-gtt:
- {shard-rkl}: [SKIP][251] ([fdo#109295] / [fdo#111656] / [i915#3708]) -> [PASS][252]
[251]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-6/igt@[email protected]
[252]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]

#### Warnings ####

* igt@gem_exec_balancer@parallel-ordering:
- shard-iclb: [FAIL][253] ([i915#6117]) -> [SKIP][254] ([i915#4525])
[253]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@[email protected]
[254]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb5/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-linear-to-32bpp-linear-downscaling@pipe-a-default-mode:
- shard-skl: [SKIP][255] ([fdo#109271] / [i915#1888]) -> [SKIP][256] ([fdo#109271])
[255]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip_scaled_crc@flip-64bpp-linear-to-32bpp-linear-downscaling@pipe-a-default-mode.html
[256]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@kms_flip_scaled_crc@flip-64bpp-linear-to-32bpp-linear-downscaling@pipe-a-default-mode.html

* igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-fully-sf:
- shard-iclb: [SKIP][257] ([i915#658]) -> [SKIP][258] ([i915#2920])
[257]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@[email protected]
[258]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@[email protected]

* igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-fully-sf:
- shard-iclb: [SKIP][259] ([i915#2920]) -> [SKIP][260] ([i915#658])
[259]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@[email protected]
[260]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:
- shard-iclb: [SKIP][261] ([fdo#111068] / [i915#658]) -> [SKIP][262] ([i915#2920])
[261]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@[email protected]
[262]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@[email protected]

* igt@runner@aborted:
- shard-kbl: ([FAIL][263], [FAIL][264], [FAIL][265], [FAIL][266], [FAIL][267]) ([i915#180] / [i915#3002] / [i915#4312] / [i915#5257] / [i915#92]) -> ([FAIL][268], [FAIL][269], [FAIL][270], [FAIL][271], [FAIL][272], [FAIL][273], [FAIL][274], [FAIL][275], [FAIL][276], [FAIL][277]) ([fdo#109271] / [i915#180] / [i915#3002] / [i915#4312] / [i915#5257] / [i915#92])
[263]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@[email protected]
[264]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl6/igt@[email protected]
[265]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl6/igt@[email protected]
[266]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl4/igt@[email protected]
[267]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@[email protected]
[268]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]
[269]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]
[270]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]
[271]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]
[272]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]
[273]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl6/igt@[email protected]
[274]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]
[275]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]
[276]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl4/igt@[email protected]
[277]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]

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

[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109300]: https://bugs.freedesktop.org/show_bug.cgi?id=109300
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110254]: https://bugs.freedesktop.org/show_bug.cgi?id=110254
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111314]: https://bugs.freedesktop.org/show_bug.cgi?id=111314
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#160]: https://gitlab.freedesktop.org/drm/intel/issues/160
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1850]: https://gitlab.freedesktop.org/drm/intel/issues/1850
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#1911]: https://gitlab.freedesktop.org/drm/intel/issues/1911
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2410]: https://gitlab.freedesktop.org/drm/intel/issues/2410
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2530]: https://gitlab.freedesktop.org/drm/intel/issues/2530
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2849]: https://gitlab.freedesktop.org/drm/intel/issues/2849
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3048]: https://gitlab.freedesktop.org/drm/intel/issues/3048
[i915#3063]: https://gitlab.freedesktop.org/drm/intel/issues/3063
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3376]: https://gitlab.freedesktop.org/drm/intel/issues/3376
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3639]: https://gitlab.freedesktop.org/drm/intel/issues/3639
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#4016]: https://gitlab.freedesktop.org/drm/intel/issues/4016
[i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4369]: https://gitlab.freedesktop.org/drm/intel/issues/4369
[i915#4386]: https://gitlab.freedesktop.org/drm/intel/issues/4386
[i915#4392]: https://gitlab.freedesktop.org/drm/intel/issues/4392
[i915#4462]: https://gitlab.freedesktop.org/drm/intel/issues/4462
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4839]: https://gitlab.freedesktop.org/drm/intel/issues/4839
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4853]: https://gitlab.freedesktop.org/drm/intel/issues/4853
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4883]: https://gitlab.freedesktop.org/drm/intel/issues/4883
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#4893]: https://gitlab.freedesktop.org/drm/intel/issues/4893
[i915#4939]: https://gitlab.freedesktop.org/drm/intel/issues/4939
[i915#4941]: https://gitlab.freedesktop.org/drm/intel/issues/4941
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#51]: https://gitlab.freedesktop.org/drm/intel/issues/51
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5287]: https://gitlab.freedesktop.org/drm/intel/issues/5287
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#5327]: https://gitlab.freedesktop.org/drm/intel/issues/5327
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5639]: https://gitlab.freedesktop.org/drm/intel/issues/5639
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6251]: https://gitlab.freedesktop.org/drm/intel/issues/6251
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6259]: https://gitlab.freedesktop.org/drm/intel/issues/6259
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6371]: https://gitlab.freedesktop.org/drm/intel/issues/6371
[i915#6405]: https://gitlab.freedesktop.org/drm/intel/issues/6405
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92

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

* Linux: CI_DRM_11946 -> Patchwork_106789v1

CI-20190529: 20190529
CI_DRM_11946: 0e9c43d76a145712da46e935d429ce2a3eea80e8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6598: 97e103419021d0863db527e3f2cf39ccdd132db5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_106789v1: 0e9c43d76a145712da46e935d429ce2a3eea80e8 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

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

#34 lore raw

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for Fixes and improvements to GuC logging and error capture

Quoted 37 lines · Patchwork

Project List - Patchwork *Patch Details*
*Series:* Fixes and improvements to GuC logging and error capture
*URL:* https://patchwork.freedesktop.org/series/106789/
*State:* failure
*Details:* https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/index.html

CI Bug Log - changes from CI_DRM_11946_full -> Patchwork_106789v1_full

Summary

*FAILURE*

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

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

    Participating hosts (13 -> 13)

No changes in participating hosts

Possible new issues

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

IGT changes

Possible regressions

Quoted 9 lines

*

    igt@gem_mmap@short-mmap:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl6/igt@[email protected]>
        -> INCOMPLETE
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl4/igt@[email protected]>

Looks like the system just died in the middle of running the test. Unrelated to this patch set as the test is not about error capture or GuC logs and SKL is not a GuC enabled platform.

Quoted 10 lines

*
*

    igt@kms_big_fb@yf-tiled-32bpp-rotate-0:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl6/igt@[email protected]>
        -> TIMEOUT
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl9/igt@[email protected]>

Looks like the test just takes a long time. The max test timeout was hit but dmesg suggests it was still doing stuff the whole time. Either way, it is a display specific test on a non-GuC platform. So again, not related to this patch set.

John.

Quoted 1,191 lines

*

Suppressed

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@gem_ctx_persistence@many-contexts:
o {shard-dg1}: NOTRUN -> DMESG-FAIL
<https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-dg1-17/igt@[email protected]>

Known issues

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

CI changes

Issues hit

*

    boot:

     o

        shard-apl: (PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/boot.html>)
        -> (PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl4/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl1/boot.html>)
        (i915#4386 <https://gitlab.freedesktop.org/drm/intel/issues/4386>)

     o

        shard-glk: (PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk9/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk9/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk9/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk1/boot.html>)
        -> (PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk9/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk9/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk9/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk6/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk3/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk2/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html>,
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk1/boot.html>)
        (i915#4392 <https://gitlab.freedesktop.org/drm/intel/issues/4392>)


      IGT changes


        Issues hit

*

    igt@feature_discovery@psr2:

      o shard-iclb: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@[email protected]>
        -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@[email protected]>
        (i915#658 <https://gitlab.freedesktop.org/drm/intel/issues/658>)

*

    igt@gem_create@create-massive:

     o

        shard-glk: NOTRUN -> DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/igt@[email protected]>
        (i915#4991 <https://gitlab.freedesktop.org/drm/intel/issues/4991>)

     o

        shard-kbl: NOTRUN -> DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]>
        (i915#4991 <https://gitlab.freedesktop.org/drm/intel/issues/4991>)

*

    igt@gem_eio@unwedge-stress:

      o shard-tglb: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglb7/igt@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglb3/igt@[email protected]>
        (i915#5784 <https://gitlab.freedesktop.org/drm/intel/issues/5784>)

*

    igt@gem_exec_balancer@parallel-keep-submit-fence:

      o shard-iclb: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb1/igt@[email protected]>
        -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb3/igt@[email protected]>
        (i915#4525 <https://gitlab.freedesktop.org/drm/intel/issues/4525>)

*

    igt@gem_exec_fair@basic-none@rcs0:

      o shard-kbl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl7/igt@gem_exec_fair@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl4/igt@gem_exec_fair@[email protected]>
        (i915#2842 <https://gitlab.freedesktop.org/drm/intel/issues/2842>)

*

    igt@gem_exec_fair@basic-pace-share@rcs0:

      o shard-glk: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk7/igt@gem_exec_fair@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/igt@gem_exec_fair@[email protected]>
        (i915#2842 <https://gitlab.freedesktop.org/drm/intel/issues/2842>)

*

    igt@gem_lmem_swapping@verify-ccs:

      o shard-kbl: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]>
        (fdo#109271
        <https://bugs.freedesktop.org/show_bug.cgi?id=109271> /
        i915#4613 <https://gitlab.freedesktop.org/drm/intel/issues/4613>)

*

    igt@gem_userptr_blits@input-checking:

      o shard-apl: NOTRUN -> DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/igt@[email protected]>
        (i915#4991 <https://gitlab.freedesktop.org/drm/intel/issues/4991>)

*

    igt@i915_pm_rc6_residency@rc6-idle@vcs0:

      o shard-apl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/igt@i915_pm_rc6_residency@[email protected]>
        -> WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/igt@i915_pm_rc6_residency@[email protected]>
        (i915#6405 <https://gitlab.freedesktop.org/drm/intel/issues/6405>)

*

    igt@i915_pm_sseu@full-enable:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl10/igt@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl10/igt@[email protected]>
        (i915#3048 <https://gitlab.freedesktop.org/drm/intel/issues/3048>)

*

    igt@kms_async_flips@alternate-sync-async-flip@pipe-b-edp-1:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl1/igt@kms_async_flips@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@kms_async_flips@[email protected]>
        (i915#2521 <https://gitlab.freedesktop.org/drm/intel/issues/2521>)

*

    igt@kms_busy@extended-pageflip-hang-newfb:

      o shard-snb: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-snb6/igt@[email protected]>
        (fdo#109271 <https://bugs.freedesktop.org/show_bug.cgi?id=109271>)

*

    igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_mc_ccs:

      o shard-apl: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_mc_ccs.html>
        (fdo#109271
        <https://bugs.freedesktop.org/show_bug.cgi?id=109271> /
        i915#3886 <https://gitlab.freedesktop.org/drm/intel/issues/3886>)

*

    igt@kms_chamelium@hdmi-frame-dump:

      o shard-kbl: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/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>) +1
        similar issue

*

    igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:

      o shard-apl: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/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>) +2
        similar issues

*

    igt@kms_cursor_crc@cursor-suspend@pipe-b-edp-1:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl7/igt@kms_cursor_crc@[email protected]>
        -> INCOMPLETE
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@kms_cursor_crc@[email protected]>
        (i915#4939 <https://gitlab.freedesktop.org/drm/intel/issues/4939>)

*

    igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions:

      o shard-glk: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk5/igt@kms_cursor_legacy@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk5/igt@kms_cursor_legacy@[email protected]>
        (i915#2346 <https://gitlab.freedesktop.org/drm/intel/issues/2346>)

*

    igt@kms_flip@flip-vs-expired-vblank@c-edp1:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl9/igt@kms_flip@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@kms_flip@[email protected]>
        (i915#79 <https://gitlab.freedesktop.org/drm/intel/issues/79>)

*

    igt@kms_flip@flip-vs-suspend@c-edp1:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip@[email protected]>
        -> INCOMPLETE
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl9/igt@kms_flip@[email protected]>
        (i915#4839 <https://gitlab.freedesktop.org/drm/intel/issues/4839>)

*

    igt@kms_flip@plain-flip-fb-recreate@c-edp1:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl9/igt@kms_flip@[email protected]>
        (i915#2122
        <https://gitlab.freedesktop.org/drm/intel/issues/2122>) +1
        similar issue

*

    igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-default-mode:

      o shard-iclb: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@kms_flip_scaled_crc@flip-64bpp-xtile-to-32bpp-xtile-downscaling@pipe-a-default-mode.html>
        (i915#3555
        <https://gitlab.freedesktop.org/drm/intel/issues/3555>) +1
        similar issue

*

    igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode:

      o shard-iclb: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html>
        (i915#2672
        <https://gitlab.freedesktop.org/drm/intel/issues/2672>) +7
        similar issues

*

    igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-default-mode:

      o shard-iclb: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb3/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-default-mode.html>
        (i915#2672
        <https://gitlab.freedesktop.org/drm/intel/issues/2672> /
        i915#3555 <https://gitlab.freedesktop.org/drm/intel/issues/3555>)

*

    igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc:

      o shard-snb: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-snb2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc.html>
        -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-snb6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-wc.html>
        (fdo#109271 <https://bugs.freedesktop.org/show_bug.cgi?id=109271>)

*

    igt@kms_frontbuffer_tracking@fbc-suspend:

      o shard-kbl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl4/igt@[email protected]>
        -> DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>
        (i915#180
        <https://gitlab.freedesktop.org/drm/intel/issues/180>) +7
        similar issues

*

    igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render:

      o shard-apl: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl7/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render.html>
        (fdo#109271
        <https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +24
        similar issues

*

    igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-move:

      o shard-kbl: NOTRUN -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]>
        (fdo#109271
        <https://bugs.freedesktop.org/show_bug.cgi?id=109271>) +14
        similar issues

*

    igt@kms_hdr@bpc-switch-suspend@pipe-a-dp-1:

     o

        shard-apl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/igt@kms_hdr@[email protected]>
        -> DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl8/igt@kms_hdr@[email protected]>
        (i915#180
        <https://gitlab.freedesktop.org/drm/intel/issues/180>) +1
        similar issue

     o

        shard-kbl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl6/igt@kms_hdr@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl4/igt@kms_hdr@[email protected]>
        (i915#1188 <https://gitlab.freedesktop.org/drm/intel/issues/1188>)

*

    igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1:

      o shard-iclb: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@kms_plane_scaling@[email protected]>
        -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@kms_plane_scaling@[email protected]>
        (i915#5235
        <https://gitlab.freedesktop.org/drm/intel/issues/5235>) +2
        similar issues

*

    igt@kms_psr@psr2_sprite_blt:

      o shard-iclb: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html>
        -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@kms_psr@psr2_sprite_blt.html>
        (fdo#109441
        <https://bugs.freedesktop.org/show_bug.cgi?id=109441>) +3
        similar issues

*

    igt@perf@polling:

      o shard-skl: PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl1/igt@[email protected]>
        -> FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@[email protected]>
        (i915#1542 <https://gitlab.freedesktop.org/drm/intel/issues/1542>)


        Possible fixes

*

    igt@fbdev@info:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#2582
        <https://gitlab.freedesktop.org/drm/intel/issues/2582>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@gem_ctx_exec@basic-nohangcheck:

      o {shard-rkl}: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#6268
        <https://gitlab.freedesktop.org/drm/intel/issues/6268>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>

*

    igt@gem_ctx_persistence@many-contexts:

      o {shard-rkl}: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#2410
        <https://gitlab.freedesktop.org/drm/intel/issues/2410>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>

*

    igt@gem_eio@unwedge-stress:

     o

        {shard-dg1}: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-dg1-17/igt@[email protected]>
        (i915#5784
        <https://gitlab.freedesktop.org/drm/intel/issues/5784>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-dg1-13/igt@[email protected]>

     o

        {shard-tglu}: TIMEOUT
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglu-6/igt@[email protected]>
        (i915#3063
        <https://gitlab.freedesktop.org/drm/intel/issues/3063>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglu-2/igt@[email protected]>

*

    igt@gem_exec_balancer@fairslice:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-5/igt@[email protected]>
        (i915#6259
        <https://gitlab.freedesktop.org/drm/intel/issues/6259>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-2/igt@[email protected]>

*

    igt@gem_exec_balancer@parallel-contexts:

      o shard-iclb: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb7/igt@[email protected]>
        (i915#4525
        <https://gitlab.freedesktop.org/drm/intel/issues/4525>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb4/igt@[email protected]>
        +1 similar issue

*

    igt@gem_exec_fair@basic-deadline:

      o shard-kbl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl7/igt@[email protected]>
        (i915#2846
        <https://gitlab.freedesktop.org/drm/intel/issues/2846>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>

*

    igt@gem_exec_fair@basic-none-rrul@rcs0:

      o shard-kbl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@gem_exec_fair@[email protected]>
        (i915#2842
        <https://gitlab.freedesktop.org/drm/intel/issues/2842>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@gem_exec_fair@[email protected]>
        +3 similar issues

*

    igt@gem_exec_fair@basic-none-share@rcs0:

     o

        {shard-tglu}: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglu-8/igt@gem_exec_fair@[email protected]>
        (i915#2842
        <https://gitlab.freedesktop.org/drm/intel/issues/2842>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglu-3/igt@gem_exec_fair@[email protected]>

     o

        shard-tglb: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglb8/igt@gem_exec_fair@[email protected]>
        (i915#2842
        <https://gitlab.freedesktop.org/drm/intel/issues/2842>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglb7/igt@gem_exec_fair@[email protected]>

*

    igt@gem_exec_fair@basic-pace@rcs0:

      o {shard-rkl}: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-6/igt@gem_exec_fair@[email protected]>
        (i915#2842
        <https://gitlab.freedesktop.org/drm/intel/issues/2842>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@gem_exec_fair@[email protected]>

*

    igt@gem_exec_fair@basic-pace@vcs0:

      o shard-glk: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk8/igt@gem_exec_fair@[email protected]>
        (i915#2842
        <https://gitlab.freedesktop.org/drm/intel/issues/2842>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk7/igt@gem_exec_fair@[email protected]>

*

    igt@gem_exec_fair@basic-throttle@rcs0:

      o shard-iclb: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb4/igt@gem_exec_fair@[email protected]>
        (i915#2849
        <https://gitlab.freedesktop.org/drm/intel/issues/2849>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb4/igt@gem_exec_fair@[email protected]>

*

    igt@gem_exec_flush@basic-batch-kernel-default-cmd:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (fdo#109313
        <https://bugs.freedesktop.org/show_bug.cgi?id=109313>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>

*

    igt@gem_exec_reloc@basic-write-read-noreloc:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@[email protected]>
        (i915#3281
        <https://gitlab.freedesktop.org/drm/intel/issues/3281>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>
        +15 similar issues

*

    igt@gem_exec_schedule@semaphore-power:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (fdo#110254
        <https://bugs.freedesktop.org/show_bug.cgi?id=110254>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>

*

    igt@gem_partial_pwrite_pread@writes-after-reads-uncached:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-6/igt@[email protected]>
        (i915#3282
        <https://gitlab.freedesktop.org/drm/intel/issues/3282>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>
        +7 similar issues

*

    igt@gen9_exec_parse@allowed-single:

      o shard-glk: DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-glk3/igt@[email protected]>
        (i915#5566
        <https://gitlab.freedesktop.org/drm/intel/issues/5566> /
        i915#716
        <https://gitlab.freedesktop.org/drm/intel/issues/716>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-glk8/igt@[email protected]>

*

    igt@gen9_exec_parse@batch-without-end:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#2527
        <https://gitlab.freedesktop.org/drm/intel/issues/2527>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>
        +3 similar issues

*

    igt@i915_pm_rc6_residency@rc6-idle@vcs0:

      o {shard-rkl}: WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-5/igt@i915_pm_rc6_residency@[email protected]>
        (i915#6405
        <https://gitlab.freedesktop.org/drm/intel/issues/6405>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-2/igt@i915_pm_rc6_residency@[email protected]>

*

    igt@i915_pm_rpm@dpms-non-lpsp:

      o {shard-dg1}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-dg1-19/igt@[email protected]>
        (i915#1397
        <https://gitlab.freedesktop.org/drm/intel/issues/1397>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-dg1-15/igt@[email protected]>
        +2 similar issues

*

    igt@i915_pm_rpm@fences:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#1849
        <https://gitlab.freedesktop.org/drm/intel/issues/1849>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@i915_pm_rpm@i2c:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@[email protected]>
        (fdo#109308
        <https://bugs.freedesktop.org/show_bug.cgi?id=109308>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@i915_suspend@forcewake:

      o shard-kbl: DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@[email protected]>
        (i915#180
        <https://gitlab.freedesktop.org/drm/intel/issues/180>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]>
        +1 similar issue

*

    igt@kms_atomic@atomic_plane_damage:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@kms_atomic@atomic_plane_damage.html>
        (i915#4098
        <https://gitlab.freedesktop.org/drm/intel/issues/4098>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@kms_atomic@atomic_plane_damage.html>

*

    igt@kms_big_fb@yf-tiled-32bpp-rotate-90:

      o shard-skl: TIMEOUT
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl7/igt@[email protected]>
        (i915#6371
        <https://gitlab.freedesktop.org/drm/intel/issues/6371>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl4/igt@[email protected]>
        +1 similar issue

*

    igt@kms_draw_crc@draw-method-xrgb2101010-render-ytiled:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (fdo#111314
        <https://bugs.freedesktop.org/show_bug.cgi?id=111314> /
        i915#4098
        <https://gitlab.freedesktop.org/drm/intel/issues/4098> /
        i915#4369
        <https://gitlab.freedesktop.org/drm/intel/issues/4369>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>
        +4 similar issues

*

    igt@kms_flip@flip-vs-expired-vblank-interruptible@a-dp1:

      o shard-apl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl8/igt@kms_flip@[email protected]>
        (i915#79 <https://gitlab.freedesktop.org/drm/intel/issues/79>)
        -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@kms_flip@[email protected]>

*

    igt@kms_flip@plain-flip-fb-recreate-interruptible@a-edp1:

      o shard-skl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip@[email protected]>
        (i915#2122
        <https://gitlab.freedesktop.org/drm/intel/issues/2122>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@kms_flip@[email protected]>
        +2 similar issues

*

    igt@kms_frontbuffer_tracking@psr-rgb101010-draw-render:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-2/igt@[email protected]>
        (i915#1849
        <https://gitlab.freedesktop.org/drm/intel/issues/1849> /
        i915#4098
        <https://gitlab.freedesktop.org/drm/intel/issues/4098>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>
        +22 similar issues

*

    igt@kms_frontbuffer_tracking@psr-shrfb-scaledprimary:

      o shard-skl: DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl9/igt@[email protected]>
        (i915#1982
        <https://gitlab.freedesktop.org/drm/intel/issues/1982>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@[email protected]>
        +1 similar issue

*

    igt@kms_plane@plane-position-covered@pipe-b-planes:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@kms_plane@[email protected]>
        (i915#3558
        <https://gitlab.freedesktop.org/drm/intel/issues/3558>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@kms_plane@[email protected]>
        +1 similar issue

*

    igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:

      o shard-skl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl1/igt@[email protected]>
        (fdo#108145
        <https://bugs.freedesktop.org/show_bug.cgi?id=108145> /
        i915#265
        <https://gitlab.freedesktop.org/drm/intel/issues/265>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl1/igt@[email protected]>

*

    igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#1849
        <https://gitlab.freedesktop.org/drm/intel/issues/1849> /
        i915#3546
        <https://gitlab.freedesktop.org/drm/intel/issues/3546> /
        i915#4070
        <https://gitlab.freedesktop.org/drm/intel/issues/4070> /
        i915#4098
        <https://gitlab.freedesktop.org/drm/intel/issues/4098>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@kms_plane_multiple@atomic-pipe-a-tiling-y:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#3558
        <https://gitlab.freedesktop.org/drm/intel/issues/3558> /
        i915#4070
        <https://gitlab.freedesktop.org/drm/intel/issues/4070>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@kms_psr@cursor_mmap_cpu:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@kms_psr@cursor_mmap_cpu.html>
        (i915#1072
        <https://gitlab.freedesktop.org/drm/intel/issues/1072>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@kms_psr@cursor_mmap_cpu.html>
        +1 similar issue

*

    igt@kms_psr@psr2_primary_mmap_cpu:

      o shard-iclb: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@kms_psr@psr2_primary_mmap_cpu.html>
        (fdo#109441
        <https://bugs.freedesktop.org/show_bug.cgi?id=109441>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html>
        +2 similar issues

*

    igt@kms_universal_plane@disable-primary-vs-flip-pipe-b:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#1845
        <https://gitlab.freedesktop.org/drm/intel/issues/1845> /
        i915#4070
        <https://gitlab.freedesktop.org/drm/intel/issues/4070> /
        i915#4098
        <https://gitlab.freedesktop.org/drm/intel/issues/4098>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@kms_vblank@pipe-b-wait-busy-hang:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#1845
        <https://gitlab.freedesktop.org/drm/intel/issues/1845> /
        i915#4098
        <https://gitlab.freedesktop.org/drm/intel/issues/4098>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>
        +26 similar issues

*

    igt@perf@gen12-unprivileged-single-ctx-counters:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-5/igt@[email protected]>
        (fdo#109289
        <https://bugs.freedesktop.org/show_bug.cgi?id=109289>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-2/igt@[email protected]>

*

    igt@perf@polling-parameterized:

     o

        shard-skl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl10/igt@[email protected]>
        (i915#5639
        <https://gitlab.freedesktop.org/drm/intel/issues/5639>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl7/igt@[email protected]>

     o

        shard-tglb: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-tglb1/igt@[email protected]>
        (i915#5639
        <https://gitlab.freedesktop.org/drm/intel/issues/5639>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-tglb5/igt@[email protected]>

*

    igt@perf@polling-small-buf:

      o {shard-rkl}: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-1/igt@[email protected]>
        (i915#1722
        <https://gitlab.freedesktop.org/drm/intel/issues/1722>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-6/igt@[email protected]>

*

    igt@perf@short-reads:

      o shard-skl: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl6/igt@[email protected]>
        (i915#51 <https://gitlab.freedesktop.org/drm/intel/issues/51>)
        -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl10/igt@[email protected]>

*

    igt@perf_pmu@rc6-suspend:

      o shard-apl: DMESG-WARN
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-apl1/igt@[email protected]>
        (i915#180
        <https://gitlab.freedesktop.org/drm/intel/issues/180>) -> PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-apl6/igt@[email protected]>
        +1 similar issue

*

    igt@prime_vgem@coherency-gtt:

      o {shard-rkl}: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-rkl-6/igt@[email protected]>
        (fdo#109295
        <https://bugs.freedesktop.org/show_bug.cgi?id=109295> /
        fdo#111656
        <https://bugs.freedesktop.org/show_bug.cgi?id=111656> /
        i915#3708
        <https://gitlab.freedesktop.org/drm/intel/issues/3708>) ->
        PASS
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-rkl-5/igt@[email protected]>


        Warnings

*

    igt@gem_exec_balancer@parallel-ordering:

      o shard-iclb: FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@[email protected]>
        (i915#6117
        <https://gitlab.freedesktop.org/drm/intel/issues/6117>) ->
        SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb5/igt@[email protected]>
        (i915#4525 <https://gitlab.freedesktop.org/drm/intel/issues/4525>)

*

    igt@kms_flip_scaled_crc@flip-64bpp-linear-to-32bpp-linear-downscaling@pipe-a-default-mode:

      o shard-skl: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-skl4/igt@kms_flip_scaled_crc@flip-64bpp-linear-to-32bpp-linear-downscaling@pipe-a-default-mode.html>
        (fdo#109271
        <https://bugs.freedesktop.org/show_bug.cgi?id=109271> /
        i915#1888
        <https://gitlab.freedesktop.org/drm/intel/issues/1888>) ->
        SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-skl6/igt@kms_flip_scaled_crc@flip-64bpp-linear-to-32bpp-linear-downscaling@pipe-a-default-mode.html>
        (fdo#109271 <https://bugs.freedesktop.org/show_bug.cgi?id=109271>)

*

    igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-fully-sf:

      o shard-iclb: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@[email protected]>
        (i915#658
        <https://gitlab.freedesktop.org/drm/intel/issues/658>) -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@[email protected]>
        (i915#2920 <https://gitlab.freedesktop.org/drm/intel/issues/2920>)

*

    igt@kms_psr2_sf@overlay-plane-move-continuous-exceed-fully-sf:

      o shard-iclb: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb2/igt@[email protected]>
        (i915#2920
        <https://gitlab.freedesktop.org/drm/intel/issues/2920>) ->
        SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb1/igt@[email protected]>
        (i915#658 <https://gitlab.freedesktop.org/drm/intel/issues/658>)

*

    igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:

      o shard-iclb: SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-iclb5/igt@[email protected]>
        (fdo#111068
        <https://bugs.freedesktop.org/show_bug.cgi?id=111068> /
        i915#658
        <https://gitlab.freedesktop.org/drm/intel/issues/658>) -> SKIP
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-iclb2/igt@[email protected]>
        (i915#2920 <https://gitlab.freedesktop.org/drm/intel/issues/2920>)

*

    igt@runner@aborted:

      o shard-kbl: (FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl6/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl6/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl4/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11946/shard-kbl1/igt@[email protected]>)
        (i915#180
        <https://gitlab.freedesktop.org/drm/intel/issues/180> /
        i915#3002
        <https://gitlab.freedesktop.org/drm/intel/issues/3002> /
        i915#4312
        <https://gitlab.freedesktop.org/drm/intel/issues/4312> /
        i915#5257
        <https://gitlab.freedesktop.org/drm/intel/issues/5257> /
        i915#92 <https://gitlab.freedesktop.org/drm/intel/issues/92>)
        -> (FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl6/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl1/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl4/igt@[email protected]>,
        FAIL
        <https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_106789v1/shard-kbl7/igt@[email protected]>)
        (fdo#109271
        <https://bugs.freedesktop.org/show_bug.cgi?id=109271> /
        i915#180 <https://gitlab.freedesktop.org/drm/intel/issues/180>
        / i915#3002
        <https://gitlab.freedesktop.org/drm/intel/issues/3002> /
        i915#4312
        <https://gitlab.freedesktop.org/drm/intel/issues/4312> /
        i915#5257
        <https://gitlab.freedesktop.org/drm/intel/issues/5257> /
        i915#92 <https://gitlab.freedesktop.org/drm/intel/issues/92>)

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

Build changes

* Linux: CI_DRM_11946 -> Patchwork_106789v1

CI-20190529: 20190529
CI_DRM_11946: 0e9c43d76a145712da46e935d429ce2a3eea80e8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6598: 97e103419021d0863db527e3f2cf39ccdd132db5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_106789v1: 0e9c43d76a145712da46e935d429ce2a3eea80e8 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit