[Bug 99947] [BDW] igt_ppgtt_lowlevel, GEM_BUG_ON(num_entries > pt->used_ptes)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 24 18:23:09 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99947

--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> ---
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
index e23753181720..6bac267914df 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
@@ -237,18 +237,19 @@ static int lowlevel_hole(struct drm_i915_private *i915,

                        GEM_BUG_ON(addr + BIT_ULL(size) > vm->total);

+                       if (igt_timeout(end_time,
+                                       "%s timed out before %d/%d\n",
+                                       __func__, n, count)) {
+                               hole_end = hole_start; /* quit */
+                               break;
+                       }
+
                        if (vm->allocate_va_range &&
                            vm->allocate_va_range(vm, addr, BIT_ULL(size)))
                                break;

                        vm->insert_entries(vm, obj->mm.pages, addr,
                                           I915_CACHE_NONE, 0);
-                       if (igt_timeout(end_time,
-                                       "%s timed out after %d/%d\n",
-                                       __func__, n, count)) {
-                               hole_end = hole_start; /* quit */
-                               break;
-                       }
                }
                count = n;

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170224/93f43580/attachment-0001.html>


More information about the intel-gfx-bugs mailing list