All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Check intel_contexts to avoid one extra pointer chase
@ 2018-06-01  9:40 Chris Wilson
  2018-06-01 10:05 ` Mika Kuoppala
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Chris Wilson @ 2018-06-01  9:40 UTC (permalink / raw)
  To: intel-gfx

As we store the intel_context on the request (rq->hw_context), we can
simply compare that against the local intel_context for the
i915->kernel_context rather than using the rq->gem_context.

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

diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index 81f086397d10..94e4db1870aa 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -610,7 +610,7 @@ static bool engine_has_kernel_context_barrier(struct intel_engine_cs *engine)
 
 		any_active = true;
 
-		if (rq->gem_context == i915->kernel_context)
+		if (rq->hw_context == ce)
 			continue;
 
 		/*
-- 
2.17.1

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

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

end of thread, other threads:[~2018-06-01 13:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01  9:40 [PATCH] drm/i915: Check intel_contexts to avoid one extra pointer chase Chris Wilson
2018-06-01 10:05 ` Mika Kuoppala
2018-06-01 10:09   ` Chris Wilson
2018-06-01 10:47 ` ✗ Fi.CI.BAT: failure for " Patchwork
2018-06-01 11:54 ` ✓ Fi.CI.BAT: success " Patchwork
2018-06-01 12:54 ` [PATCH] " Chris Wilson
2018-06-01 13:19 ` ✗ Fi.CI.IGT: failure 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.