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

Ben Gamari bgamari at gmail.com
Tue Feb 3 23:06:57 CET 2009


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

diff --git a/drivers/gpu/drm/i915/i915_gem_debugfs.c b/drivers/gpu/drm/i915/i915_gem_debugfs.c
index c5379f0..19c4888 100644
--- a/drivers/gpu/drm/i915/i915_gem_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c
@@ -208,6 +208,12 @@ 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;
+	}
+
 	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