summaryrefslogtreecommitdiff
path: root/tests/gem_close_race.c
AgeCommit message (Collapse)Author
2015-08-21lib: add a single include headerThomas Wood
Add a header that includes all the headers for the library. This allows reorganisation of the library without affecting programs using it and also simplifies the headers that need to be included to use the library. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-03-06igt.cocci: Replace igt_assert() with igt_assert_CMP() where possibleMatt Roper
The integer comparison macros give us better error output by including the actual values that failed the comparison. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2014-07-12igt/gem_close_race: Increase GPU loadChris Wilson
Increate the GPU load slightly, but mitigate the CPU overhead from clflushing by keeping the object alive using flink. This has also the side-effect of magnifying the desired busy-close race. References: https://bugs.freedesktop.org/show_bug.cgi?id=71029 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-11igt/gem_close_race: Trim object sizeChris Wilson
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>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11tests/gem_close_race: Properly wrap init code in fixturesDaniel Vetter
Blows up otherwise if there's no intel gpu around. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-29igt/gem_close_race: Fix blit commands for BDWChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73958 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-12-13tests/gem_close_race: Adapt the test for Full PPGTTOscar Mateo
With Full PPGTT, each new fd creates a new context and thus a new PPGTT, so we have to reduce the number of simultaneous fds or face OOM problems. For every new PPGTT, its PDEs are stored in the GGTT which imposes a limit of 1024 new contexts. We want to leave at least 1/4 of the GGTT available for "important" stuff like scanout buffers, so never open more than 768 fds. v2: Unconditionally use the lower limit, as suggested by Daniel Vetter Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-01lib: add igt_main macroDaniel Vetter
In the past new testcases with subtest often forgot to add the call to igt_exit at the end of their main() function. That is now caught with a bit more obnoxious asserts, but it's still a nuissance. This little igt_main macro takes care of that (and also of calling the subtest machinery initialization code correctly). If no one objects I'll roll this out for all the simple cases (i.e. those tests that don't have additional argv parsing on top of the subtest machinery). v2: Roll it out across the board. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-10-29gem_close_race: Also test random closing of active fdChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-29gem_close_race: Bump the workloadChris Wilson
Emit more work per client and many more clients in order to increase the chance of racing i915_gem_release() and i915_gem_retire_requests()
2013-10-29gem_close_race: Tidy up call to execbufferChris Wilson
Pass the right pointer to the execlist would be a good start. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-28tests: Add gem_close_raceChris Wilson
The intention is to exercise #70784. Yet the first challenge is make the test suite happy.