<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Display chunks with xorg intel driver with Accel & when using swap space"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90725#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Display chunks with xorg intel driver with Accel & when using swap space"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90725">bug 90725</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>Ok, swizzle path looks most suspicious here. All the rendering is done as a
XCopyArea from a ShmPixmap which basically results in manual detiling through
WC mmap.

Can you please test which of

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 463f65f..853da31 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -86,7 +86,7 @@ search_snoop_cache(struct kgem *kgem, unsigned int num_pages,
unsigned flags);
 #define DBG_NO_WC_MMAP 0
 #define DBG_NO_BLT_Y 0
 #define DBG_NO_SCANOUT_Y 0
-#define DBG_NO_DETILING 0
+#define DBG_NO_DETILING 1
 #define DBG_DUMP 0
 #define DBG_NO_MALLOC_CACHE 0

or

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 463f65f..251a299 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -83,7 +83,7 @@ search_snoop_cache(struct kgem *kgem, unsigned int num_pages,
unsigned flags);
 #define DBG_NO_FAST_RELOC 0
 #define DBG_NO_HANDLE_LUT 0
 #define DBG_NO_WT 0
-#define DBG_NO_WC_MMAP 0
+#define DBG_NO_WC_MMAP 1
 #define DBG_NO_BLT_Y 0
 #define DBG_NO_SCANOUT_Y 0
 #define DBG_NO_DETILING 0

fixes the issue. I think either of them will fix the kdm corruption, so they
require a little soak testing (pretty much try and reproduce the earlier
swapping -> corruption issue).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>