Chris Wilson
da026d8bfe
test: Exercise concurrent GPU read/write with CPU domain access
...
Designed to exercise this patch to i915.ko:
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index fbf1118..57ae1f2 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3181,9 +3181,11 @@ i915_gem_object_set_to_cpu_domain(struct drm_i915_gem_obj
if (ret)
return ret;
- ret = i915_gem_object_wait_rendering(obj);
- if (ret)
- return ret;
+ if (write || obj->pending_gpu_write) {
+ ret = i915_gem_object_wait_rendering(obj);
+ if (ret)
+ return ret;
+ }
i915_gem_object_flush_gtt_write_domain(obj);
By exercising the conditions whereby should either of the checks be missed
an error is detected.
2012-04-10 19:35:29 +01:00
..
2012-04-10 19:35:29 +01:00
2012-04-10 16:23:18 +02:00
2012-04-10 16:23:18 +02:00
2012-04-10 16:23:18 +02:00
2012-04-04 11:13:06 +02:00
2012-04-04 10:56:50 +02:00
2012-01-11 16:56:50 +01:00
2012-01-11 14:59:47 +01:00
2012-01-11 14:59:47 +01:00
2012-01-11 14:47:09 +01:00
2010-10-26 11:46:52 +01:00
2010-10-26 11:46:52 +01:00
2010-10-26 11:46:52 +01:00
2012-01-10 18:30:39 +01:00
2012-03-24 19:30:29 +01:00
2012-04-10 19:35:29 +01:00
2012-02-29 18:32:02 +01:00
2011-12-14 17:43:37 +00:00
2011-09-13 11:05:13 +02:00
2012-01-10 15:50:20 +01:00
2012-01-10 18:30:39 +01:00
2012-03-24 19:17:43 +01:00
2012-01-10 18:30:39 +01:00
2012-03-24 19:22:21 +01:00
2012-01-10 22:34:52 +01:00
2012-01-10 15:50:20 +01:00
2012-01-10 18:41:46 +01:00
2011-11-11 11:17:59 -02:00
2011-11-27 02:39:14 +01:00
2012-01-15 17:14:56 +01:00
2012-03-22 12:27:43 +01:00
2012-01-10 18:41:46 +01:00
2012-03-20 14:27:05 +01:00
2012-03-24 19:30:29 +01:00
2012-01-31 13:52:59 +01:00
2011-11-27 01:37:59 +01:00
2010-10-26 11:46:52 +01:00
2012-01-10 18:30:39 +01:00
2012-03-24 19:30:29 +01:00
2012-01-10 15:50:20 +01:00
2012-01-10 15:50:20 +01:00
2012-02-22 10:50:52 +01:00
2012-03-22 14:00:22 +01:00
2012-03-22 14:00:22 +01:00
2012-03-22 14:00:22 +01:00
2012-03-22 14:00:22 +01:00
2012-01-22 20:09:54 +01:00
2012-03-23 19:31:01 +01:00
2012-03-22 12:27:43 +01:00
2012-03-22 12:27:43 +01:00
2012-02-29 20:22:45 +01:00
2012-02-15 17:43:38 +01:00
2012-01-10 18:41:46 +01:00
2012-01-23 17:18:53 +01:00
2011-10-28 17:40:23 +02:00
2012-01-15 17:14:56 +01:00
2012-01-15 17:14:56 +01:00
2012-01-15 17:14:56 +01:00
2012-01-15 17:14:56 +01:00
2012-01-15 17:14:56 +01:00
2012-01-15 17:14:56 +01:00
2009-03-26 18:47:42 -07:00
2011-09-15 19:39:44 +02:00
2009-03-26 18:47:42 -07:00
2012-04-10 19:35:29 +01:00
2011-11-27 01:55:42 +01:00
2012-01-24 11:28:25 +01:00
2012-02-27 12:50:50 -08:00
2012-01-24 10:50:10 +01:00
2012-01-15 16:05:43 +01:00
2012-04-04 11:13:06 +02:00