OSDN Git Service

drm/i915: Record the ringbuffer associated with the request
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jul 2016 07:08:38 +0000 (08:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jul 2016 07:18:24 +0000 (08:18 +0100)
commitba6e0418064de8c4dee914a5eb8574affe19e6f5
tree04f37fd0d3aab12822f90133f9211fde5bb8a218
parent7b4d3a16dd97be0ebc793ea046b9af9d5c9b1b1a
drm/i915: Record the ringbuffer associated with the request

The request tells us where to read the ringbuf from, so use that
information to simplify the error capture. If no request was active at
the time of the hang, the ring is idle and there is no information
inside the ring pertaining to the hang.

Note carefully that this will reduce the amount of information stored in
the error state - any ring without an active request will not be
recorded.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467616119-4093-8-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gpu_error.c