drm/i915: Enable irq to trace batch buffer completion.
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Sep 2009 04:26:06 +0000 (05:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Sep 2009 02:15:25 +0000 (03:15 +0100)
commit9d34e5db07303c9609053e2e651aa6d1fc74e923
tree670c674800068fd0fdb753378082db9a106e3088
parent8f0dc5bf17dfd947bf7b2cd07a8b1f43e72fb750
drm/i915: Enable irq to trace batch buffer completion.

If we trigger a tracepoint for batch buffer submission, it is a reasonable
assumption that we wish to also trace the batch buffer completion. So in
order to capture the completion events, we need to enable irqs... However,
we cannot rely on the completion event to disable the irq later, so we
defer the irq disable to the retire request.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_trace.h