igt/gem_close_race: Trim object size
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Jul 2014 22:36:15 +0000 (23:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Jul 2014 22:39:36 +0000 (23:39 +0100)
commit98165d60bec04d258eeb9623550e58a8bc2f3906
treeaa0d8c3c95bd8b57f2f34f00fc571bee07866e66
parentf796d9958b2b85696b572a4c686c758eb0323c2b
igt/gem_close_race: Trim object size

The challenge here is to race GPU activity versus the gem_close. Using a
large objects makes the window of GPU activity larger - except on !llc
systems we then incur massive overhead from clflush, likely destroying
any race (due to mutex contention). And that mutex contention is
amplified by the number of cores - bad news for Baytrail.

Give up and make the objects smaller and hope that the test is run
frequently enough to catch the race.

References: https://bugs.freedesktop.org/show_bug.cgi?id=71029
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/gem_close_race.c