All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Fix test on inputs for vma_compare()
@ 2016-11-03 20:08 Chris Wilson
  2016-11-03 20:40 ` Matthew Auld
  2016-11-03 20:45 ` ✓ Fi.CI.BAT: success for " Patchwork
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Wilson @ 2016-11-03 20:08 UTC (permalink / raw)
  To: intel-gfx; +Cc: Matthew Auld

When supplying a view to vma_compare() it is required that the supplied
i915_address_space is the global GTT. I tested the VMA instead (which is
the current position in the rbtree and maybe from any address space).

Reported-by: Matthew Auld <matthew.auld@intel.com>
Tested-by: Matthew Auld <matthew.auld@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98579
Fixes: db6c2b4151f2 ("drm/i915: Store the vma in an rbtree...")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 7a6a7454f321..dd6df1af25a1 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -3425,7 +3425,7 @@ static inline long vma_compare(struct i915_vma *vma,
 			       struct i915_address_space *vm,
 			       const struct i915_ggtt_view *view)
 {
-	GEM_BUG_ON(view && !i915_vma_is_ggtt(vma));
+	GEM_BUG_ON(view && !i915_is_ggtt(vm));
 
 	if (vma->vm != vm)
 		return vma->vm - vm;
-- 
2.10.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915: Fix test on inputs for vma_compare()
  2016-11-03 20:08 [PATCH] drm/i915: Fix test on inputs for vma_compare() Chris Wilson
@ 2016-11-03 20:40 ` Matthew Auld
  2016-11-03 20:45 ` ✓ Fi.CI.BAT: success for " Patchwork
  1 sibling, 0 replies; 4+ messages in thread
From: Matthew Auld @ 2016-11-03 20:40 UTC (permalink / raw)
  To: Chris Wilson; +Cc: Intel Graphics Development, Matthew Auld

On 3 November 2016 at 20:08, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> When supplying a view to vma_compare() it is required that the supplied
> i915_address_space is the global GTT. I tested the VMA instead (which is
> the current position in the rbtree and maybe from any address space).
>
> Reported-by: Matthew Auld <matthew.auld@intel.com>
> Tested-by: Matthew Auld <matthew.auld@intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98579
> Fixes: db6c2b4151f2 ("drm/i915: Store the vma in an rbtree...")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* ✓ Fi.CI.BAT: success for drm/i915: Fix test on inputs for vma_compare()
  2016-11-03 20:08 [PATCH] drm/i915: Fix test on inputs for vma_compare() Chris Wilson
  2016-11-03 20:40 ` Matthew Auld
@ 2016-11-03 20:45 ` Patchwork
  2016-11-03 21:06   ` Chris Wilson
  1 sibling, 1 reply; 4+ messages in thread
From: Patchwork @ 2016-11-03 20:45 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Fix test on inputs for vma_compare()
URL   : https://patchwork.freedesktop.org/series/14798/
State : success

== Summary ==

Series 14798v1 drm/i915: Fix test on inputs for vma_compare()
https://patchwork.freedesktop.org/api/1.0/series/14798/revisions/1/mbox/

Test kms_force_connector_basic:
        Subgroup prune-stale-modes:
                skip       -> PASS       (fi-snb-2600)

fi-bdw-5557u     total:241  pass:226  dwarn:0   dfail:0   fail:0   skip:15 
fi-bsw-n3050     total:241  pass:201  dwarn:0   dfail:0   fail:0   skip:40 
fi-bxt-t5700     total:241  pass:213  dwarn:0   dfail:0   fail:0   skip:28 
fi-byt-j1900     total:241  pass:213  dwarn:0   dfail:0   fail:0   skip:28 
fi-byt-n2820     total:241  pass:209  dwarn:0   dfail:0   fail:0   skip:32 
fi-hsw-4770      total:241  pass:221  dwarn:0   dfail:0   fail:0   skip:20 
fi-hsw-4770r     total:241  pass:221  dwarn:0   dfail:0   fail:0   skip:20 
fi-ilk-650       total:241  pass:188  dwarn:0   dfail:0   fail:0   skip:53 
fi-ivb-3520m     total:241  pass:219  dwarn:0   dfail:0   fail:0   skip:22 
fi-ivb-3770      total:241  pass:219  dwarn:0   dfail:0   fail:0   skip:22 
fi-kbl-7200u     total:241  pass:219  dwarn:0   dfail:0   fail:0   skip:22 
fi-skl-6260u     total:241  pass:227  dwarn:0   dfail:0   fail:0   skip:14 
fi-skl-6700hq    total:241  pass:220  dwarn:0   dfail:0   fail:0   skip:21 
fi-skl-6700k     total:241  pass:219  dwarn:1   dfail:0   fail:0   skip:21 
fi-skl-6770hq    total:241  pass:227  dwarn:0   dfail:0   fail:0   skip:14 
fi-snb-2520m     total:241  pass:209  dwarn:0   dfail:0   fail:0   skip:32 
fi-snb-2600      total:241  pass:208  dwarn:0   dfail:0   fail:0   skip:33 

3933917d03ccd442dd67d5142ed6f2988dd1ee4e drm-intel-nightly: 2016y-11m-03d-19h-58m-54s UTC integration manifest
93f207a drm/i915: Fix test on inputs for vma_compare()

== Logs ==

For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_2900/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: ✓ Fi.CI.BAT: success for drm/i915: Fix test on inputs for vma_compare()
  2016-11-03 20:45 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2016-11-03 21:06   ` Chris Wilson
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2016-11-03 21:06 UTC (permalink / raw)
  To: intel-gfx

On Thu, Nov 03, 2016 at 08:45:31PM -0000, Patchwork wrote:
> == Series Details ==
> 
> Series: drm/i915: Fix test on inputs for vma_compare()
> URL   : https://patchwork.freedesktop.org/series/14798/
> State : success
> 
> == Summary ==
> 
> Series 14798v1 drm/i915: Fix test on inputs for vma_compare()
> https://patchwork.freedesktop.org/api/1.0/series/14798/revisions/1/mbox/
> 
> Test kms_force_connector_basic:
>         Subgroup prune-stale-modes:
>                 skip       -> PASS       (fi-snb-2600)

All quiet. No GEM_BUG_ON here...
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-11-03 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-03 20:08 [PATCH] drm/i915: Fix test on inputs for vma_compare() Chris Wilson
2016-11-03 20:40 ` Matthew Auld
2016-11-03 20:45 ` ✓ Fi.CI.BAT: success for " Patchwork
2016-11-03 21:06   ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.