tests/gem_fence_trash: make threaded tests more through-rough
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Apr 2013 07:19:05 +0000 (09:19 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Apr 2013 07:47:58 +0000 (09:47 +0200)
commit0a8bfbf7476d845b2136b6e7f9360cd3fbe6d426
treecda456b3939b3de3026113b5f0373e0c02906f6c
parentcb3a44fa2691e0a642b150373b5fd9d0f554a7ce
tests/gem_fence_trash: make threaded tests more through-rough

With this at least the y-tiled test reliably fails on my machines, but
x-tiled still passes on some. More ideas to tune this highly welcome.

v2: Fill cpu caches with data for each newly allocated bo. This seems
to do the trick on my snb here _really_ reliably. So apparently the
backsnoop for llc gtt writes is the crucial ingredient here to make
the test fail.

While at it, also stop leaking mmap space.

v3: Fixup commit message.

Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_fence_thrash.c