All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Mark pending batches correctly on reset
@ 2016-10-26 12:07 Mika Kuoppala
  2016-10-26 12:15 ` Chris Wilson
  2016-10-26 13:17 ` ✗ Fi.CI.BAT: warning for " Patchwork
  0 siblings, 2 replies; 5+ messages in thread
From: Mika Kuoppala @ 2016-10-26 12:07 UTC (permalink / raw)
  To: intel-gfx

For contexts that get their requests NOPed after a reset,
correctly count them as pending.

Testcase: igt/tests/gem_reset_stats
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 87018df9..e025542 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2615,6 +2615,7 @@ static void reset_request(struct drm_i915_gem_request *request)
 		head = 0;
 	}
 	memset(vaddr + head, 0, request->postfix - head);
+	i915_set_reset_status(request->ctx, false);
 }
 
 static void i915_gem_reset_engine(struct intel_engine_cs *engine)
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-10-26 13:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 12:07 [PATCH] drm/i915: Mark pending batches correctly on reset Mika Kuoppala
2016-10-26 12:15 ` Chris Wilson
2016-10-26 12:32   ` Mika Kuoppala
2016-10-26 12:57     ` Chris Wilson
2016-10-26 13:17 ` ✗ Fi.CI.BAT: warning for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.