Skip to contentSkip to conversation

drm/i915/execlists: Delay updating ring register state after resume

PATCH In review Chris Wilson 3 participants 14 messages Sep 13, 2018 – Sep 14, 2018

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

PATCH 1/2 drm/i915/execlists: Delay updating ring register state after resume

Now that we reload both RING_HEAD and RING_TAIL when rebinding the context, we do not need to scrub those registers immediately on resume.

v2: Handle the perma-pinned contexts.
v3: Set RING_TAIL on context-pin so that we always have known state in the context image for the ring registers and all parties have similar code (ripe for refactoring).

Cc Tvrtko Ursulin <[email protected]>
Cc Mika Kuoppala <[email protected]>
---
 drivers/gpu/drm/i915/intel_lrc.c | 33 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/intel_lrc.c +15 -18
index 9b1f0e5211a0..d7fcbba8e982 100644
@@ -1338,11 +1338,13 @@ __execlists_context_pin(struct intel_engine_cs *engine,
 
 	intel_lr_context_descriptor_update(ctx, engine, ce);
 
+	GEM_BUG_ON(!intel_ring_offset_valid(ce->ring, ce->ring->head));
+
 	ce->lrc_reg_state = vaddr + LRC_STATE_PN * PAGE_SIZE;
 	ce->lrc_reg_state[CTX_RING_BUFFER_START+1] =
 		i915_ggtt_offset(ce->ring->vma);
-	GEM_BUG_ON(!intel_ring_offset_valid(ce->ring, ce->ring->head));
-	ce->lrc_reg_state[CTX_RING_HEAD+1] = ce->ring->head;
+	ce->lrc_reg_state[CTX_RING_HEAD + 1] = ce->ring->head;
+	ce->lrc_reg_state[CTX_RING_TAIL + 1] = ce->ring->tail;
 
 	ce->state->obj->pin_global++;
 	i915_gem_context_get(ctx);
@@ -2841,13 +2843,14 @@ static int execlists_context_deferred_alloc(struct i915_gem_context *ctx,
 	return ret;
 }
 
-void intel_lr_context_resume(struct drm_i915_private *dev_priv)
+void intel_lr_context_resume(struct drm_i915_private *i915)
 {
 	struct intel_engine_cs *engine;
 	struct i915_gem_context *ctx;
 	enum intel_engine_id id;
 
-	/* Because we emit WA_TAIL_DWORDS there may be a disparity
+	/*
+	 * Because we emit WA_TAIL_DWORDS there may be a disparity
 	 * between our bookkeeping in ce->ring->head and ce->ring->tail and
 	 * that stored in context. As we only write new commands from
 	 * ce->ring->tail onwards, everything before that is junk. If the GPU
@@ -2857,28 +2860,22 @@ void intel_lr_context_resume(struct drm_i915_private *dev_priv)
 	 * So to avoid that we reset the context images upon resume. For
 	 * simplicity, we just zero everything out.
 	 */
-	list_for_each_entry(ctx, &dev_priv->contexts.list, link) {
-		for_each_engine(engine, dev_priv, id) {
+	list_for_each_entry(ctx, &i915->contexts.list, link) {
+		for_each_engine(engine, i915, id) {
 			struct intel_context *ce =
 				to_intel_context(ctx, engine);
-			u32 *reg;
 
 			if (!ce->state)
 				continue;
 
-			reg = i915_gem_object_pin_map(ce->state->obj,
-						      I915_MAP_WB);
-			if (WARN_ON(IS_ERR(reg)))
-				continue;
-
-			reg += LRC_STATE_PN * PAGE_SIZE / sizeof(*reg);
-			reg[CTX_RING_HEAD+1] = 0;
-			reg[CTX_RING_TAIL+1] = 0;
+			intel_ring_reset(ce->ring, 0);
 
-			ce->state->obj->mm.dirty = true;
-			i915_gem_object_unpin_map(ce->state->obj);
+			if (ce->pin_count) { /* otherwise done in context_pin */
+				u32 *regs = ce->lrc_reg_state;
 
-			intel_ring_reset(ce->ring, 0);
+				regs[CTX_RING_HEAD + 1] = ce->ring->head;
+				regs[CTX_RING_TAIL + 1] = ce->ring->tail;
+			}
 		}
 	}
 }
Signature · 6 lines
2.19.0

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

PATCH 2/2 drm/i915/execlists: Use coherent writes into the context image

That we use a WB mapping for updating the RING_TAIL register inside the context image even on !llc machines has been a source of consternation for every reader. It appears to work on bsw+, but it may just have been that we have been incredibly bad at detecting the errors.

v2: With extra enthusiasm.

---
 drivers/gpu/drm/i915/i915_drv.h         | 6 ++++++
 drivers/gpu/drm/i915/i915_gem.c         | 2 ++
 drivers/gpu/drm/i915/i915_perf.c        | 4 +++-
 drivers/gpu/drm/i915/intel_engine_cs.c  | 2 +-
 drivers/gpu/drm/i915/intel_lrc.c        | 8 +++++---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +-
 6 files changed, 18 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +6 -0
index 7ea442033a57..5c833a45682d 100644
@@ -3074,6 +3074,12 @@ enum i915_map_type {
 	I915_MAP_FORCE_WC = I915_MAP_WC | I915_MAP_OVERRIDE,
 };
 
+static inline enum i915_map_type
+i915_coherent_map_type(struct drm_i915_private *i915)
+{
+	return HAS_LLC(i915) ? I915_MAP_WB : I915_MAP_WC;
+}
+
 /**
  * i915_gem_object_pin_map - return a contiguous mapping of the entire object
  * @obj: the object to map into kernel address space
drivers/gpu/drm/i915/i915_gem.c +2 -0
index 89834ce19acd..d6f2bbd6a0dc 100644
@@ -5417,6 +5417,8 @@ static int __intel_engines_record_defaults(struct drm_i915_private *i915)
 	for_each_engine(engine, i915, id) {
 		struct i915_vma *state;
 
+		GEM_BUG_ON(to_intel_context(ctx, engine)->pin_count);
+
 		state = to_intel_context(ctx, engine)->state;
 		if (!state)
 			continue;
drivers/gpu/drm/i915/i915_perf.c +3 -1
index 3d7a052b4cca..90168ac845c2 100644
@@ -1735,13 +1735,15 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
 	/* Update all contexts now that we've stalled the submission. */
 	list_for_each_entry(ctx, &dev_priv->contexts.list, link) {
 		struct intel_context *ce = to_intel_context(ctx, engine);
+		unsigned int map_type;
 		u32 *regs;
 
 		/* OA settings will be set upon first use */
 		if (!ce->state)
 			continue;
 
-		regs = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+		map_type = i915_coherent_map_type(dev_priv);
+		regs = i915_gem_object_pin_map(ce->state->obj, map_type);
 		if (IS_ERR(regs))
 			return PTR_ERR(regs);
 
drivers/gpu/drm/i915/intel_engine_cs.c +1 -1
index 10cd051ba29e..c99f2cb9b0e1 100644
@@ -1150,7 +1150,7 @@ void intel_engines_unpark(struct drm_i915_private *i915)
 		map = NULL;
 		if (engine->default_state)
 			map = i915_gem_object_pin_map(engine->default_state,
-						      I915_MAP_WB);
+						      I915_MAP_FORCE_WB);
 		if (!IS_ERR_OR_NULL(map))
 			engine->pinned_default_state = map;
 
drivers/gpu/drm/i915/intel_lrc.c +5 -3
index d7fcbba8e982..7b1f322f232b 100644
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
 	 * on an active context (which by nature is already on the GPU).
 	 */
 	if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-		err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+		err = i915_gem_object_set_to_wc_domain(vma->obj, true);
 		if (err)
 			return err;
 	}
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
 	if (ret)
 		goto err;
 
-	vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+	vaddr = i915_gem_object_pin_map(ce->state->obj,
+					i915_coherent_map_type(ctx->i915) |
+					I915_MAP_OVERRIDE);
 	if (IS_ERR(vaddr)) {
 		ret = PTR_ERR(vaddr);
 		goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
 		void *defaults;
 
 		defaults = i915_gem_object_pin_map(engine->default_state,
-						   I915_MAP_WB);
+						   I915_MAP_FORCE_WB);
 		if (IS_ERR(defaults)) {
 			ret = PTR_ERR(defaults);
 			goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
index d0ef50bf930a..1eb68d77b66c 100644
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
 		}
 
 		defaults = i915_gem_object_pin_map(engine->default_state,
-						   I915_MAP_WB);
+						   I915_MAP_FORCE_WB);
 		if (IS_ERR(defaults)) {
 			err = PTR_ERR(defaults);
 			goto err_map;
Signature · 6 lines
2.19.0

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

PATCH v3 1/1 drm/i915/execlists: Use coherent writes into the context image

That we use a WB mapping for updating the RING_TAIL register inside the context image even on !llc machines has been a source of consternation for every reader. It appears to work on bsw+, but it may just have been that we have been incredibly bad at detecting the errors.

v2: With extra enthusiasm.
v3: Drop force of map type for pinned default_state as by the time we pin it, the map type is always WB and doesn't conflict with the earlier use by ce->state.

---
 drivers/gpu/drm/i915/i915_drv.h         | 6 ++++++
 drivers/gpu/drm/i915/i915_gem.c         | 2 ++
 drivers/gpu/drm/i915/i915_perf.c        | 4 +++-
 drivers/gpu/drm/i915/intel_lrc.c        | 8 +++++---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +-
 5 files changed, 17 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +6 -0
index 7ea442033a57..5c833a45682d 100644
@@ -3074,6 +3074,12 @@ enum i915_map_type {
 	I915_MAP_FORCE_WC = I915_MAP_WC | I915_MAP_OVERRIDE,
 };
 
+static inline enum i915_map_type
+i915_coherent_map_type(struct drm_i915_private *i915)
+{
+	return HAS_LLC(i915) ? I915_MAP_WB : I915_MAP_WC;
+}
+
 /**
  * i915_gem_object_pin_map - return a contiguous mapping of the entire object
  * @obj: the object to map into kernel address space
drivers/gpu/drm/i915/i915_gem.c +2 -0
index 89834ce19acd..d6f2bbd6a0dc 100644
@@ -5417,6 +5417,8 @@ static int __intel_engines_record_defaults(struct drm_i915_private *i915)
 	for_each_engine(engine, i915, id) {
 		struct i915_vma *state;
 
+		GEM_BUG_ON(to_intel_context(ctx, engine)->pin_count);
+
 		state = to_intel_context(ctx, engine)->state;
 		if (!state)
 			continue;
drivers/gpu/drm/i915/i915_perf.c +3 -1
index 3d7a052b4cca..90168ac845c2 100644
@@ -1735,13 +1735,15 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
 	/* Update all contexts now that we've stalled the submission. */
 	list_for_each_entry(ctx, &dev_priv->contexts.list, link) {
 		struct intel_context *ce = to_intel_context(ctx, engine);
+		unsigned int map_type;
 		u32 *regs;
 
 		/* OA settings will be set upon first use */
 		if (!ce->state)
 			continue;
 
-		regs = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+		map_type = i915_coherent_map_type(dev_priv);
+		regs = i915_gem_object_pin_map(ce->state->obj, map_type);
 		if (IS_ERR(regs))
 			return PTR_ERR(regs);
 
drivers/gpu/drm/i915/intel_lrc.c +5 -3
index d7fcbba8e982..7b1f322f232b 100644
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
 	 * on an active context (which by nature is already on the GPU).
 	 */
 	if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-		err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+		err = i915_gem_object_set_to_wc_domain(vma->obj, true);
 		if (err)
 			return err;
 	}
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
 	if (ret)
 		goto err;
 
-	vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+	vaddr = i915_gem_object_pin_map(ce->state->obj,
+					i915_coherent_map_type(ctx->i915) |
+					I915_MAP_OVERRIDE);
 	if (IS_ERR(vaddr)) {
 		ret = PTR_ERR(vaddr);
 		goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
 		void *defaults;
 
 		defaults = i915_gem_object_pin_map(engine->default_state,
-						   I915_MAP_WB);
+						   I915_MAP_FORCE_WB);
 		if (IS_ERR(defaults)) {
 			ret = PTR_ERR(defaults);
 			goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
index d0ef50bf930a..1eb68d77b66c 100644
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
 		}
 
 		defaults = i915_gem_object_pin_map(engine->default_state,
-						   I915_MAP_WB);
+						   I915_MAP_FORCE_WB);
 		if (IS_ERR(defaults)) {
 			err = PTR_ERR(defaults);
 			goto err_map;
Signature · 6 lines
2.19.0

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

Re: [PATCH v3] drm/i915/execlists: Use coherent writes into the context image

Quoted 56 lines · Chris Wilson

That we use a WB mapping for updating the RING_TAIL register inside the context image even on !llc machines has been a source of consternation for every reader. It appears to work on bsw+, but it may just have been that we have been incredibly bad at detecting the errors.

v2: With extra enthusiasm.
v3: Drop force of map type for pinned default_state as by the time we pin it, the map type is always WB and doesn't conflict with the earlier use by ce->state.

---
  drivers/gpu/drm/i915/i915_drv.h         | 6 ++++++
  drivers/gpu/drm/i915/i915_gem.c         | 2 ++
  drivers/gpu/drm/i915/i915_perf.c        | 4 +++-
  drivers/gpu/drm/i915/intel_lrc.c        | 8 +++++---
  drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +-
  5 files changed, 17 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +6 -0
index 7ea442033a57..5c833a45682d 100644
@@ -3074,6 +3074,12 @@ enum i915_map_type {
  	I915_MAP_FORCE_WC = I915_MAP_WC | I915_MAP_OVERRIDE,
  };
 
+static inline enum i915_map_type
+i915_coherent_map_type(struct drm_i915_private *i915)
+{
+	return HAS_LLC(i915) ? I915_MAP_WB : I915_MAP_WC;
+}
+
  /**
   * i915_gem_object_pin_map - return a contiguous mapping of the entire object
   * @obj: the object to map into kernel address space
drivers/gpu/drm/i915/i915_gem.c +2 -0
index 89834ce19acd..d6f2bbd6a0dc 100644
@@ -5417,6 +5417,8 @@ static int __intel_engines_record_defaults(struct drm_i915_private *i915)
  	for_each_engine(engine, i915, id) {
  		struct i915_vma *state;
 
+		GEM_BUG_ON(to_intel_context(ctx, engine)->pin_count);
+
  		state = to_intel_context(ctx, engine)->state;
  		if (!state)
  			continue;
drivers/gpu/drm/i915/i915_perf.c +0 -0
index 3d7a052b4cca..90168ac845c2 100644
@@ -1735,13 +1735,15 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
  	/* Update all contexts now that we've stalled the submission. */
  	list_for_each_entry(ctx, &dev_priv->contexts.list, link) {

drivers/gpu/drm/i915/i915_perf.c static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv, · line 1745

Quoted 10 lines
drivers/gpu/drm/i915/i915_perf.c +2 -1
  		struct intel_context *ce = to_intel_context(ctx, engine);
+		unsigned int map_type;
  		u32 *regs;
 
  		/* OA settings will be set upon first use */
  		if (!ce->state)
  			continue;
 
-		regs = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+		map_type = i915_coherent_map_type(dev_priv);

Local for line length only? Could move it out of the loop as well to cache it if you feel like it.

Quoted 9 lines
drivers/gpu/drm/i915/i915_perf.c +1 -0
+		regs = i915_gem_object_pin_map(ce->state->obj, map_type);
  		if (IS_ERR(regs))
  			return PTR_ERR(regs);
 
drivers/gpu/drm/i915/intel_lrc.c +0 -0
index d7fcbba8e982..7b1f322f232b 100644

drivers/gpu/drm/i915/intel_lrc.c static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma) · line 1297

Quoted 5 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
  	 * on an active context (which by nature is already on the GPU).
  	 */
  	if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-		err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+		err = i915_gem_object_set_to_wc_domain(vma->obj, true);

I am still confused by this. Cache flushing effects of the old and new call seem the same due object being in CPU write domain at this point. What changes is that it will be marked differently from this point one. Does that come into play later in the objects lifetime and where?

drivers/gpu/drm/i915/intel_lrc.c __execlists_context_pin(struct intel_engine_cs *engine, · line 1327

Quoted 11 lines
drivers/gpu/drm/i915/intel_lrc.c +3 -1
  		if (err)
  			return err;
  	}
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
  	if (ret)
  		goto err;
 
-	vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+	vaddr = i915_gem_object_pin_map(ce->state->obj,
+					i915_coherent_map_type(ctx->i915) |
+					I915_MAP_OVERRIDE);

Override MAP_WB from populate_lr_context - OK I think.

Quoted 18 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
  	if (IS_ERR(vaddr)) {
  		ret = PTR_ERR(vaddr);
  		goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
  		void *defaults;
 
  		defaults = i915_gem_object_pin_map(engine->default_state,
-						   I915_MAP_WB);
+						   I915_MAP_FORCE_WB);
  		if (IS_ERR(defaults)) {
  			ret = PTR_ERR(defaults);
  			goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +0 -0
index d0ef50bf930a..1eb68d77b66c 100644

drivers/gpu/drm/i915/intel_ringbuffer.c alloc_context_vma(struct intel_engine_cs *engine) · line 1294

Quoted 8 lines
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
  		}
 
  		defaults = i915_gem_object_pin_map(engine->default_state,
-						   I915_MAP_WB);
+						   I915_MAP_FORCE_WB);
  		if (IS_ERR(defaults)) {
  			err = PTR_ERR(defaults);
  			goto err_map;

These two do not need to be changed AFAICT.

Regards,

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

#4 lore raw

Re: [PATCH v3] drm/i915/execlists: Use coherent writes into the context image

Quoting Tvrtko Ursulin (2018-09-14 09:14:54)

Quoted 9 lines · Chris Wilson
Quoted 7 lines
drivers/gpu/drm/i915/intel_lrc.c +0 -0
index d7fcbba8e982..7b1f322f232b 100644
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
       * on an active context (which by nature is already on the GPU).
       */
Quoted 8 lines

drivers/gpu/drm/i915/intel_lrc.c static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma) · line 1297

Quoted 3 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
      if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-             err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+             err = i915_gem_object_set_to_wc_domain(vma->obj, true);

I am still confused by this. Cache flushing effects of the old and new call seem the same due object being in CPU write domain at this point. What changes is that it will be marked differently from this point one. Does that come into play later in the objects lifetime and where?

No, just taking the opportunity to use a more correct domain now that it exists and logically ties in with using WC.

Quoted 33 lines

drivers/gpu/drm/i915/intel_lrc.c __execlists_context_pin(struct intel_engine_cs *engine, · line 1327

Quoted 11 lines
drivers/gpu/drm/i915/intel_lrc.c +3 -1
              if (err)
                      return err;
      }
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
      if (ret)
              goto err;
 
-     vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+     vaddr = i915_gem_object_pin_map(ce->state->obj,
+                                     i915_coherent_map_type(ctx->i915) |
+                                     I915_MAP_OVERRIDE);

Override MAP_WB from populate_lr_context - OK I think.

Quoted 19 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
      if (IS_ERR(vaddr)) {
              ret = PTR_ERR(vaddr);
              goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
              void *defaults;
 
              defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
              if (IS_ERR(defaults)) {
                      ret = PTR_ERR(defaults);
                      goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +0 -0
index d0ef50bf930a..1eb68d77b66c 100644
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
              }
 
Quoted 9 lines

drivers/gpu/drm/i915/intel_ringbuffer.c alloc_context_vma(struct intel_engine_cs *engine) · line 1294

Quoted 7 lines
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
              defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
              if (IS_ERR(defaults)) {
                      err = PTR_ERR(defaults);
                      goto err_map;

These two do not need to be changed AFAICT.

I think we cannot rely on engine->default_state always being MAP_WB already at this point, due to not having an idle cycle between creation of engine->default_state on module_load and first use.

Having thought of that last night, I did mean to add a call to __i915_gem_park() during init so we forced ourselves to idle. -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw

Re: [PATCH v3] drm/i915/execlists: Use coherent writes into the context image

Quoted 19 lines · Chris Wilson

Quoting Tvrtko Ursulin (2018-09-14 09:14:54)

Quoted 9 lines · Chris Wilson
Quoted 7 lines
drivers/gpu/drm/i915/intel_lrc.c +0 -0
index d7fcbba8e982..7b1f322f232b 100644
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
        * on an active context (which by nature is already on the GPU).
        */
Quoted 8 lines

drivers/gpu/drm/i915/intel_lrc.c static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma) · line 1297

Quoted 3 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
       if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-             err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+             err = i915_gem_object_set_to_wc_domain(vma->obj, true);

I am still confused by this. Cache flushing effects of the old and new call seem the same due object being in CPU write domain at this point. What changes is that it will be marked differently from this point one. Does that come into play later in the objects lifetime and where?

Quoted 2 lines

No, just taking the opportunity to use a more correct domain now that it exists and logically ties in with using WC.

Ok.

Quoted 43 lines
Quoted 33 lines

drivers/gpu/drm/i915/intel_lrc.c __execlists_context_pin(struct intel_engine_cs *engine, · line 1327

Quoted 11 lines
drivers/gpu/drm/i915/intel_lrc.c +3 -1
               if (err)
                       return err;
       }
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
       if (ret)
               goto err;
 
-     vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+     vaddr = i915_gem_object_pin_map(ce->state->obj,
+                                     i915_coherent_map_type(ctx->i915) |
+                                     I915_MAP_OVERRIDE);

Override MAP_WB from populate_lr_context - OK I think.

Quoted 19 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
       if (IS_ERR(vaddr)) {
               ret = PTR_ERR(vaddr);
               goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
               void *defaults;
 
               defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
               if (IS_ERR(defaults)) {
                       ret = PTR_ERR(defaults);
                       goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +0 -0
index d0ef50bf930a..1eb68d77b66c 100644
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
               }
 
Quoted 9 lines

drivers/gpu/drm/i915/intel_ringbuffer.c alloc_context_vma(struct intel_engine_cs *engine) · line 1294

Quoted 7 lines
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
               defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
               if (IS_ERR(defaults)) {
                       err = PTR_ERR(defaults);
                       goto err_map;

These two do not need to be changed AFAICT.

Quoted 6 lines

I think we cannot rely on engine->default_state always being MAP_WB already at this point, due to not having an idle cycle between creation of engine->default_state on module_load and first use.

Having thought of that last night, I did mean to add a call to __i915_gem_park() during init so we forced ourselves to idle.

I don't follow - all places where we map it use MAP_WB. Isn't force flag just to override the existing different mapping?

Regards,

Tvrtko

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

#6 lore raw

Re: [PATCH v3] drm/i915/execlists: Use coherent writes into the context image

Quoting Tvrtko Ursulin (2018-09-14 10:12:15)

Quoted 73 lines · Chris Wilson
Quoted 19 lines

Quoting Tvrtko Ursulin (2018-09-14 09:14:54)

Quoted 9 lines · Chris Wilson
Quoted 7 lines
drivers/gpu/drm/i915/intel_lrc.c +0 -0
index d7fcbba8e982..7b1f322f232b 100644
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
        * on an active context (which by nature is already on the GPU).
        */
Quoted 8 lines

drivers/gpu/drm/i915/intel_lrc.c static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma) · line 1297

Quoted 3 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
       if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-             err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+             err = i915_gem_object_set_to_wc_domain(vma->obj, true);

I am still confused by this. Cache flushing effects of the old and new call seem the same due object being in CPU write domain at this point. What changes is that it will be marked differently from this point one. Does that come into play later in the objects lifetime and where?

Quoted 2 lines

No, just taking the opportunity to use a more correct domain now that it exists and logically ties in with using WC.

Ok.

Quoted 47 lines
Quoted 33 lines

drivers/gpu/drm/i915/intel_lrc.c __execlists_context_pin(struct intel_engine_cs *engine, · line 1327

Quoted 11 lines
drivers/gpu/drm/i915/intel_lrc.c +3 -1
               if (err)
                       return err;
       }
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
       if (ret)
               goto err;
 
-     vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+     vaddr = i915_gem_object_pin_map(ce->state->obj,
+                                     i915_coherent_map_type(ctx->i915) |
+                                     I915_MAP_OVERRIDE);

Override MAP_WB from populate_lr_context - OK I think.

Quoted 19 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
       if (IS_ERR(vaddr)) {
               ret = PTR_ERR(vaddr);
               goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
               void *defaults;
 
               defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
               if (IS_ERR(defaults)) {
                       ret = PTR_ERR(defaults);
                       goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +0 -0
index d0ef50bf930a..1eb68d77b66c 100644
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
               }
 
Quoted 9 lines

drivers/gpu/drm/i915/intel_ringbuffer.c alloc_context_vma(struct intel_engine_cs *engine) · line 1294

Quoted 7 lines
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
               defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
               if (IS_ERR(defaults)) {
                       err = PTR_ERR(defaults);
                       goto err_map;

These two do not need to be changed AFAICT.

I think we cannot rely on engine->default_state always being MAP_WB already at this point, due to not having an idle cycle between creation of engine->default_state on module_load and first use.

Quoted 5 lines
Quoted 2 lines

Having thought of that last night, I did mean to add a call to __i915_gem_park() during init so we forced ourselves to idle.

I don't follow - all places where we map it use MAP_WB. Isn't force flag just to override the existing different mapping?

Yes, but we may not have done the force from MAP_WC to MAP_WB in i915_gem_unpark->intel_engines_unpark by this point, so engine->default_state may still have a WC mapping on it. To be sure, we need to validate that we can acquire that mapping on init. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reviewed-by
#7 lore raw

Re: [PATCH v3] drm/i915/execlists: Use coherent writes into the context image

Quoted 77 lines · Chris Wilson

Quoting Tvrtko Ursulin (2018-09-14 10:12:15)

Quoted 76 lines · Chris Wilson
Quoted 19 lines

Quoting Tvrtko Ursulin (2018-09-14 09:14:54)

Quoted 9 lines · Chris Wilson
Quoted 7 lines
drivers/gpu/drm/i915/intel_lrc.c +0 -0
index d7fcbba8e982..7b1f322f232b 100644
@@ -1294,7 +1294,7 @@ static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma)
         * on an active context (which by nature is already on the GPU).
         */
Quoted 8 lines

drivers/gpu/drm/i915/intel_lrc.c static int __context_pin(struct i915_gem_context *ctx, struct i915_vma *vma) · line 1297

Quoted 3 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
        if (!(vma->flags & I915_VMA_GLOBAL_BIND)) {
-             err = i915_gem_object_set_to_gtt_domain(vma->obj, true);
+             err = i915_gem_object_set_to_wc_domain(vma->obj, true);

I am still confused by this. Cache flushing effects of the old and new call seem the same due object being in CPU write domain at this point. What changes is that it will be marked differently from this point one. Does that come into play later in the objects lifetime and where?

Quoted 2 lines

No, just taking the opportunity to use a more correct domain now that it exists and logically ties in with using WC.

Ok.

Quoted 49 lines
Quoted 33 lines

drivers/gpu/drm/i915/intel_lrc.c __execlists_context_pin(struct intel_engine_cs *engine, · line 1327

Quoted 11 lines
drivers/gpu/drm/i915/intel_lrc.c +3 -1
                if (err)
                        return err;
        }
@@ -1322,7 +1322,9 @@ __execlists_context_pin(struct intel_engine_cs *engine,
        if (ret)
                goto err;
 
-     vaddr = i915_gem_object_pin_map(ce->state->obj, I915_MAP_WB);
+     vaddr = i915_gem_object_pin_map(ce->state->obj,
+                                     i915_coherent_map_type(ctx->i915) |
+                                     I915_MAP_OVERRIDE);

Override MAP_WB from populate_lr_context - OK I think.

Quoted 19 lines
drivers/gpu/drm/i915/intel_lrc.c +1 -1
        if (IS_ERR(vaddr)) {
                ret = PTR_ERR(vaddr);
                goto unpin_vma;
@@ -2753,7 +2755,7 @@ populate_lr_context(struct i915_gem_context *ctx,
                void *defaults;
 
                defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
                if (IS_ERR(defaults)) {
                        ret = PTR_ERR(defaults);
                        goto err_unpin_ctx;
drivers/gpu/drm/i915/intel_ringbuffer.c +0 -0
index d0ef50bf930a..1eb68d77b66c 100644
@@ -1288,7 +1288,7 @@ alloc_context_vma(struct intel_engine_cs *engine)
                }
 
Quoted 9 lines

drivers/gpu/drm/i915/intel_ringbuffer.c alloc_context_vma(struct intel_engine_cs *engine) · line 1294

Quoted 7 lines
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
                defaults = i915_gem_object_pin_map(engine->default_state,
-                                                I915_MAP_WB);
+                                                I915_MAP_FORCE_WB);
                if (IS_ERR(defaults)) {
                        err = PTR_ERR(defaults);
                        goto err_map;

These two do not need to be changed AFAICT.

I think we cannot rely on engine->default_state always being MAP_WB already at this point, due to not having an idle cycle between creation of engine->default_state on module_load and first use.

Having thought of that last night, I did mean to add a call to __i915_gem_park() during init so we forced ourselves to idle.

Quoted 7 lines
Quoted 2 lines

I don't follow - all places where we map it use MAP_WB. Isn't force flag just to override the existing different mapping?

Yes, but we may not have done the force from MAP_WC to MAP_WB in i915_gem_unpark->intel_engines_unpark by this point, so engine->default_state may still have a WC mapping on it. To be sure, we need to validate that we can acquire that mapping on init.

Okay I missed the fact we just transfer the engine->default_state object ownership from ce->state->obj. Somehow I assumed it is a dedicated buffer.

Regards,

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

Reviewed-by on v1 1/2
#8 lore raw
In reply to Chris Wilson
Quoted 80 lines · Chris Wilson

Now that we reload both RING_HEAD and RING_TAIL when rebinding the context, we do not need to scrub those registers immediately on resume.

v2: Handle the perma-pinned contexts.
v3: Set RING_TAIL on context-pin so that we always have known state in the context image for the ring registers and all parties have similar code (ripe for refactoring).

Cc Tvrtko Ursulin <[email protected]>
Cc Mika Kuoppala <[email protected]>
---
  drivers/gpu/drm/i915/intel_lrc.c | 33 +++++++++++++++-----------------
  1 file changed, 15 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/intel_lrc.c +10 -17
index 9b1f0e5211a0..d7fcbba8e982 100644
@@ -1338,11 +1338,13 @@ __execlists_context_pin(struct intel_engine_cs *engine,
 
  	intel_lr_context_descriptor_update(ctx, engine, ce);
 
+	GEM_BUG_ON(!intel_ring_offset_valid(ce->ring, ce->ring->head));
+
  	ce->lrc_reg_state = vaddr + LRC_STATE_PN * PAGE_SIZE;
  	ce->lrc_reg_state[CTX_RING_BUFFER_START+1] =
  		i915_ggtt_offset(ce->ring->vma);
-	GEM_BUG_ON(!intel_ring_offset_valid(ce->ring, ce->ring->head));
-	ce->lrc_reg_state[CTX_RING_HEAD+1] = ce->ring->head;
+	ce->lrc_reg_state[CTX_RING_HEAD + 1] = ce->ring->head;
+	ce->lrc_reg_state[CTX_RING_TAIL + 1] = ce->ring->tail;
 
  	ce->state->obj->pin_global++;
  	i915_gem_context_get(ctx);
@@ -2841,13 +2843,14 @@ static int execlists_context_deferred_alloc(struct i915_gem_context *ctx,
  	return ret;
  }
 
-void intel_lr_context_resume(struct drm_i915_private *dev_priv)
+void intel_lr_context_resume(struct drm_i915_private *i915)
  {
  	struct intel_engine_cs *engine;
  	struct i915_gem_context *ctx;
  	enum intel_engine_id id;
 
-	/* Because we emit WA_TAIL_DWORDS there may be a disparity
+	/*
+	 * Because we emit WA_TAIL_DWORDS there may be a disparity
  	 * between our bookkeeping in ce->ring->head and ce->ring->tail and
  	 * that stored in context. As we only write new commands from
  	 * ce->ring->tail onwards, everything before that is junk. If the GPU
@@ -2857,28 +2860,22 @@ void intel_lr_context_resume(struct drm_i915_private *dev_priv)
  	 * So to avoid that we reset the context images upon resume. For
  	 * simplicity, we just zero everything out.
  	 */
-	list_for_each_entry(ctx, &dev_priv->contexts.list, link) {
-		for_each_engine(engine, dev_priv, id) {
+	list_for_each_entry(ctx, &i915->contexts.list, link) {
+		for_each_engine(engine, i915, id) {
  			struct intel_context *ce =
  				to_intel_context(ctx, engine);
-			u32 *reg;
 
  			if (!ce->state)
  				continue;
 
-			reg = i915_gem_object_pin_map(ce->state->obj,
-						      I915_MAP_WB);
-			if (WARN_ON(IS_ERR(reg)))
-				continue;
-
-			reg += LRC_STATE_PN * PAGE_SIZE / sizeof(*reg);
-			reg[CTX_RING_HEAD+1] = 0;
-			reg[CTX_RING_TAIL+1] = 0;
+			intel_ring_reset(ce->ring, 0);
 
-			ce->state->obj->mm.dirty = true;
-			i915_gem_object_unpin_map(ce->state->obj);

drivers/gpu/drm/i915/intel_lrc.c void intel_lr_context_resume(struct drm_i915_private *dev_priv) · line 2881

Quoted 10 lines
drivers/gpu/drm/i915/intel_lrc.c +5 -1
+			if (ce->pin_count) { /* otherwise done in context_pin */
+				u32 *regs = ce->lrc_reg_state;
 
-			intel_ring_reset(ce->ring, 0);
+				regs[CTX_RING_HEAD + 1] = ce->ring->head;
+				regs[CTX_RING_TAIL + 1] = ce->ring->tail;
+			}
  		}
  	}
  }

Regards,

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

#9 lore raw

✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume
URL : https://patchwork.freedesktop.org/series/49654/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Commit: drm/i915/execlists: Delay updating ring register state after resume
Okay!

Commit: drm/i915/execlists: Use coherent writes into the context image -drivers/gpu/drm/i915/selftests/../i915_drv.h:3689:16: warning: expression using sizeof(void) +drivers/gpu/drm/i915/selftests/../i915_drv.h:3695:16: warning: expression using sizeof(void)

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

#10 lore raw

✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume
URL : https://patchwork.freedesktop.org/series/49654/
State : failure

== Summary ==

= CI Bug Log - changes from CI_DRM_4817 -> Patchwork_10174 =

== Summary - FAILURE ==

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

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

External URL: https://patchwork.freedesktop.org/api/1.0/series/49654/revisions/1/mbox/

== Possible new issues ==

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

=== IGT changes ===

    ==== Possible regressions ====

    igt@drv_selftest@live_contexts:
      fi-bsw-n3050:       PASS -> DMESG-FAIL

    
    ==== Warnings ====

    igt@pm_rpm@module-reload:
      fi-hsw-4770r:       SKIP -> PASS

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_module_reload@basic-reload:
      fi-blb-e6850:       NOTRUN -> INCOMPLETE (fdo#107718)

    igt@gem_exec_suspend@basic-s3:
      fi-kbl-soraka:      NOTRUN -> INCOMPLETE (fdo#107556, fdo#107774)

    
    ==== Possible fixes ====

    igt@drv_module_reload@basic-reload-inject:
      fi-hsw-4770r:       DMESG-WARN (fdo#107924) -> PASS

    igt@drv_selftest@live_coherency:
      fi-gdg-551:         DMESG-FAIL (fdo#107164) -> PASS

    igt@gem_exec_suspend@basic-s3:
      fi-blb-e6850:       INCOMPLETE (fdo#107718) -> PASS

fdo#107164 https://bugs.freedesktop.org/show_bug.cgi?id=107164
fdo#107556 https://bugs.freedesktop.org/show_bug.cgi?id=107556
fdo#107718 https://bugs.freedesktop.org/show_bug.cgi?id=107718
fdo#107774 https://bugs.freedesktop.org/show_bug.cgi?id=107774
fdo#107924 https://bugs.freedesktop.org/show_bug.cgi?id=107924

== Participating hosts (48 -> 45) ==

Additional (1): fi-kbl-soraka
Missing (4): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* Linux: CI_DRM_4817 -> Patchwork_10174

CI_DRM_4817: 0725fa5c5756ff86de0f33f10b9d92ac452d5118 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4640: 9a8da36e708f9ed15b20689dfe305e41f9a19008 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10174: c701befaed7dfa1b985984037d6bf5e4299ce391 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

c701befaed7d drm/i915/execlists: Use coherent writes into the context image 0c773550b623 drm/i915/execlists: Delay updating ring register state after resume

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10174/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#11 lore raw

✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume (rev2)

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume (rev2)
URL : https://patchwork.freedesktop.org/series/49654/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Commit: drm/i915/execlists: Delay updating ring register state after resume
Okay!

Commit: drm/i915/execlists: Use coherent writes into the context image -drivers/gpu/drm/i915/selftests/../i915_drv.h:3689:16: warning: expression using sizeof(void) +drivers/gpu/drm/i915/selftests/../i915_drv.h:3695:16: warning: expression using sizeof(void)

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

#12 lore raw

✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume (rev2)

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume (rev2)
URL : https://patchwork.freedesktop.org/series/49654/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4819 -> Patchwork_10176 =

== Summary - WARNING ==

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

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

External URL: https://patchwork.freedesktop.org/api/1.0/series/49654/revisions/2/mbox/

== Possible new issues ==

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

=== IGT changes ===

    ==== Warnings ====

    igt@pm_rpm@module-reload:
      fi-hsw-4770r:       PASS -> SKIP

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_module_reload@basic-reload-inject:
      fi-hsw-4770r:       PASS -> DMESG-WARN (fdo#107425, fdo#107924)

    igt@gem_exec_suspend@basic-s3:
      fi-blb-e6850:       PASS -> INCOMPLETE (fdo#107718)

    igt@kms_psr@primary_page_flip:
      fi-cfl-s3:          PASS -> FAIL (fdo#107336)
      fi-kbl-r:           PASS -> FAIL (fdo#107336)

    
    ==== Possible fixes ====

    igt@kms_frontbuffer_tracking@basic:
      fi-byt-clapper:     FAIL (fdo#103167) -> PASS

    igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
      fi-skl-6700k2:      FAIL (fdo#103191) -> PASS

    igt@kms_psr@primary_page_flip:
      fi-whl-u:           FAIL (fdo#107336) -> PASS

fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#107336 https://bugs.freedesktop.org/show_bug.cgi?id=107336
fdo#107425 https://bugs.freedesktop.org/show_bug.cgi?id=107425
fdo#107718 https://bugs.freedesktop.org/show_bug.cgi?id=107718
fdo#107924 https://bugs.freedesktop.org/show_bug.cgi?id=107924

== Participating hosts (48 -> 45) ==

Additional (1): fi-icl-u
Missing (4): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* Linux: CI_DRM_4819 -> Patchwork_10176

CI_DRM_4819: 974889a04616f44de2f342dfdc9753b6dad8de88 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4640: 9a8da36e708f9ed15b20689dfe305e41f9a19008 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10176: 727e57a655b11345ea5681cf75a691d2440669c6 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

727e57a655b1 drm/i915/execlists: Use coherent writes into the context image de52a519af9f drm/i915/execlists: Delay updating ring register state after resume

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10176/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#13 lore raw

✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume (rev2)

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/i915/execlists: Delay updating ring register state after resume (rev2)
URL : https://patchwork.freedesktop.org/series/49654/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4819_full -> Patchwork_10176_full =

== Summary - SUCCESS ==

No regressions found.

== Known issues ==

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

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_exec_schedule@preempt-other-chain-vebox:
      shard-snb:          SKIP -> INCOMPLETE (fdo#105411)

    igt@gem_userptr_blits@readonly-unsync:
      shard-glk:          PASS -> INCOMPLETE (k.org#198133, fdo#103359)

    igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-shrfb-draw-mmap-gtt:
      shard-glk:          PASS -> FAIL (fdo#103167)

    igt@kms_setmode@basic:
      shard-apl:          PASS -> FAIL (fdo#99912)
      shard-kbl:          PASS -> FAIL (fdo#99912)

    
    ==== Possible fixes ====

    igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-blt:
      shard-glk:          DMESG-WARN (fdo#105763) -> PASS +3

    igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-render:
      shard-glk:          DMESG-FAIL -> PASS

fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105763 https://bugs.freedesktop.org/show_bug.cgi?id=105763
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* Linux: CI_DRM_4819 -> Patchwork_10176

CI_DRM_4819: 974889a04616f44de2f342dfdc9753b6dad8de88 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4640: 9a8da36e708f9ed15b20689dfe305e41f9a19008 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10176: 727e57a655b11345ea5681cf75a691d2440669c6 @ 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_10176/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx