[Bug 106848] [GM45] igt at gem_mmap_gtt@basic-small-bo-tiledx - fail - Failed assertion: memcmp(ptr , tiled_pattern, PAGE_SIZE) == 0 (edit)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 8 07:42:41 UTC 2018


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

--- Comment #7 from Chris Wilson <chris at chris-wilson.co.uk> ---
If my reading is correct e6cbd7f2efb433d717af72aa8510a9db6f7a7e05 just perturbs
the physical page address. You have 6GiB, right? Could you try with mem=3G (my
guess is that will limit it to the *low* 3G!) That was a gen4 bug with >4G
memory, but we believed it to be Broadwater/Crestline and not G4x; anyway it
sounds like we should just restrict our allocations to DMA32.

Try:

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index fd882eb389d2..e6b48adf0fae 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4720,7 +4720,7 @@ i915_gem_object_create(struct drm_i915_private *dev_priv,
u64 size)
                goto fail;

        mask = GFP_HIGHUSER | __GFP_RECLAIMABLE;
-       if (IS_I965GM(dev_priv) || IS_I965G(dev_priv)) {
+       if (IS_GEN4(dev_priv)) {
                /* 965gm cannot relocate objects above 4GiB. */
                mask &= ~__GFP_HIGHMEM;
                mask |= __GFP_DMA32;

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


More information about the intel-gfx-bugs mailing list