<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GM45] igt@gem_mmap_gtt@basic-small-bo-tiledx - fail - Failed assertion: memcmp(ptr , tiled_pattern, PAGE_SIZE) == 0 (edit)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106848#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GM45] igt@gem_mmap_gtt@basic-small-bo-tiledx - fail - Failed assertion: memcmp(ptr , tiled_pattern, PAGE_SIZE) == 0 (edit)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106848">bug 106848</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>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;</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>