public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/i915: WARN_ON failed map_and_fenceable
@ 2013-08-10  5:12 Ben Widawsky
  2013-08-10  5:12 ` [PATCH 2/5] drm/i915: bind m&f cleanup Ben Widawsky
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Ben Widawsky @ 2013-08-10  5:12 UTC (permalink / raw)
  To: Intel GFX; +Cc: Ben Widawsky, Ben Widawsky

I just noticed in our code we don't really check the assertion, and
given some of the code I am changing in this area, I feel a WARN is very
nice to have.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_gem.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 498ef8a..b91a7f0 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3186,6 +3186,8 @@ search_free:
 	if (i915_is_ggtt(vm))
 		obj->map_and_fenceable = mappable && fenceable;
 
+	WARN_ON(map_and_fenceable & !obj->map_and_fenceable);
+
 	trace_i915_vma_bind(vma, map_and_fenceable);
 	i915_gem_verify_gtt(dev);
 	return 0;
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-08-13  1:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-10  5:12 [PATCH 1/5] drm/i915: WARN_ON failed map_and_fenceable Ben Widawsky
2013-08-10  5:12 ` [PATCH 2/5] drm/i915: bind m&f cleanup Ben Widawsky
2013-08-10  8:41   ` Chris Wilson
2013-08-13  0:17     ` Ben Widawsky
2013-08-10  5:12 ` [PATCH 3/5] drm/i915: Remove node only when allocated Ben Widawsky
2013-08-10  8:45   ` Chris Wilson
2013-08-13  1:37     ` Ben Widawsky
2013-08-10  5:12 ` [PATCH 4/5] drm: WARN when removing unallocated node Ben Widawsky
2013-08-10  8:48   ` Chris Wilson
2013-08-10  5:12 ` [PATCH 5/5] drm/i915: Convert execbuf code to use vmas Ben Widawsky
2013-08-10  9:01   ` Chris Wilson
2013-08-10  9:10   ` Chris Wilson
2013-08-10  9:13   ` Chris Wilson
2013-08-13  1:50     ` Ben Widawsky
2013-08-10  8:43 ` [PATCH 1/5] drm/i915: WARN_ON failed map_and_fenceable Chris Wilson
2013-08-10  8:58   ` Daniel Vetter
2013-08-10  8:58 ` Daniel Vetter
2013-08-10 17:17   ` Ben Widawsky
2013-08-10 18:05     ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox