[Bug 99948] [BDW] igt_ppgtt_shrink, OOPS gen8_ppgtt_insert_4lvl
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 24 19:58:17 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99948
--- Comment #4 from Chris Wilson <chris at chris-wilson.co.uk> ---
and
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
index 8e33a8bde78a..187444c37bbb 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
@@ -62,12 +62,14 @@ fake_get_pages(struct drm_i915_gem_object *obj)
for (sg = pages->sgl; sg; sg = sg_next(sg)) {
unsigned long len = min_t(typeof(rem), rem, BIT(31));
+ GEM_BUG_ON(!len);
sg_set_page(sg, pfn_to_page(PFN_BIAS), len, 0);
sg_dma_address(sg) = page_to_phys(sg_page(sg));
sg_dma_len(sg) = len;
rem -= len;
}
+ GEM_BUG_ON(rem);
obj->mm.madv = I915_MADV_DONTNEED;
return pages;
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170224/5ea51248/attachment.html>
More information about the intel-gfx-bugs
mailing list