Skip to content
Commit 6911a9b8 authored by Ben Gamari's avatar Ben Gamari Committed by Eric Anholt
Browse files

drm/i915: Implement batch and ring buffer dumping



We create a debugfs node (i915_ringbuffer_data) to expose a hex dump
of the ring buffer itself.  We also expose another debugfs node
(i915_ringbuffer_info) with information on the state (i.e. head, tail
addresses) of the ringbuffer.

For batchbuffer dumping, we look at the device's active_list, dumping
each object which has I915_GEM_DOMAIN_COMMAND in its read
domains. This is all exposed through the dri/i915_batchbuffers debugfs
file with a header for each object (giving the objects gtt_offset so
that it can be matched against the offset given in the
BATCH_BUFFER_START command.

Signed-off-by: default avatarBen Gamari <bgamari@gmail.com>
Signed-off-by: default avatarCarl Worth <cworth@cworth.org>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 8fe74cf0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment