[Intel-gfx] [PATCH] set cpu domain before dumping batch buffer if gpu isn't wedged

Ben Gamari bgamari at gmail.com
Mon Jan 19 22:06:40 CET 2009


---
 drivers/gpu/drm/i915/i915_gem_debugfs.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_debugfs.c b/drivers/gpu/drm/i915/i915_gem_debugfs.c
index 4808dd1..cd19e0a 100644
--- a/drivers/gpu/drm/i915/i915_gem_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c
@@ -207,6 +207,13 @@ static int i915_batch_buffer_info(struct seq_file *m, void *data)
 	if (obj == NULL)
 		return 0;
 
+	if (!dev_priv->mm.wedged) {
+		ret = i915_gem_object_set_to_cpu_domain(obj, 0);
+		if (ret)
+			return ret;
+	}
+
+	DRM_INFO("hi3\n");
 	obj_priv = obj->driver_private;
 	if (obj_priv->page_list == NULL) {
 		free_page_list = 1;
-- 
1.6.0.6




More information about the Intel-gfx mailing list