aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Gamari <bgamari@gmail.com>2009-04-02 14:24:54 -0400
committerEric Anholt <eric@anholt.net>2009-04-08 13:18:06 -0400
commit6911a9b8ae8b2a1dab4dfda9c2bd20f7ca2961d6 (patch)
tree8679f210a6f214cdfd2bcfd0fc7c71464ec30919 /drivers/gpu/drm/i915/i915_drv.h
parent8fe74cf053de7ad2124a894996f84fa890a81093 (diff)
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: Ben Gamari <bgamari@gmail.com> Signed-off-by: Carl Worth <cworth@cworth.org> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 317b1223e091..efcd610d4fca 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -635,6 +635,8 @@ int i915_gem_attach_phys_object(struct drm_device *dev,
635void i915_gem_detach_phys_object(struct drm_device *dev, 635void i915_gem_detach_phys_object(struct drm_device *dev,
636 struct drm_gem_object *obj); 636 struct drm_gem_object *obj);
637void i915_gem_free_all_phys_object(struct drm_device *dev); 637void i915_gem_free_all_phys_object(struct drm_device *dev);
638int i915_gem_object_get_pages(struct drm_gem_object *obj);
639void i915_gem_object_put_pages(struct drm_gem_object *obj);
638 640
639/* i915_gem_tiling.c */ 641/* i915_gem_tiling.c */
640void i915_gem_detect_bit_6_swizzle(struct drm_device *dev); 642void i915_gem_detect_bit_6_swizzle(struct drm_device *dev);