summaryrefslogtreecommitdiff
path: root/tests/gem_stress.c
AgeCommit message (Collapse)Author
2011-07-08gem_stress: Assert we have no pending ops when using the CPUChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-07-02gem_stress: Add an option to test handling of signalsChris Wilson
As signals cause the syscalls to be interrupted, we often need to clean up partial state before returning to userspace. Often a source of unamusing bugs, so encourage gem_stress to provoke them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-13gem_stress: some stats about incoherenciesDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to disable render copyfunc checkDaniel Vetter
Too noisy - which is an another way of saying too broken :( Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option for tile_sizeDaniel Vetter
I want to know how large these corruptions can get! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to set tiles per bufferDaniel Vetter
gem_stress -p1 is much more evil than gem_stress -c1, it also manages to tear appart untiled workloads! Now duct-taping over it still works (--apply-duct-tape) ... hm. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to continue despite failuresDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to override the number of rounds to completeDaniel Vetter
gem_stress -c 1 ... sometimes takes a while to hit a problem. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-06gem_stress: avoid division by 0Daniel Vetter
Without this height would be 16 with the minimal buffer size. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-06gem_stress: disable fence storm when only using untiled buffersDaniel Vetter
This explains why gem_stress -u worked beforehand - the rendercpy was not actually used! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-06gem_stress: round max_dimension down to the next potDaniel Vetter
Creates funny rounding problems otherwise. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-05gem_stress: trim buffer sizes to fit into 3D pipelineChris Wilson
Remember the 3D pipeline is much more restricted than the BLT engine, and we were feeding it buffers much larger than either the render engine or the sampler could manager. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05gem_stress: cpu maps force tiling to be disabled, so fix the printfChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05gem_stress: Add extra passes to intial render copyfunc verificationChris Wilson
...and allow for cpu maps!
2011-06-05test: Add more gen3 render blittersChris Wilson
... and we have a winner: gen3_mixed_blits reproduces the issue Daniel Vetter originally found. It seems clear that we have some incoherence between the RENDER and BLT units on gen3 that no amount of MI_FLUSH can hide. Hmmm.... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-05-25gem_stress: '-b' option to disable BLT copyfuncChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-05-24gem_stress: Add render copyfunc for SandyBridgeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-04-27gem_stress: option to use cpu mappingsDaniel Vetter
This things just won't die (libva!!!), so add an option to test them. _Not_ meant to test snoopable mappings. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-04-12gem_stress: option to only use x-tilingDaniel Vetter
This seems to be another trick to massively improve correctness of the render blit. At least on my i945. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-04-04gem_stress: option to disable tilingDaniel Vetter
Of all the things I've tried, this seems to be the only thing to fix tile corruptions reliably on gen2&gen3 (safe for outright disabling the render copy). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-04-04gem_stress: clean up fence_stormDaniel Vetter
That little snippet creapt in and magically made render copy work - by essentially disabling it. Restore order, everything incoherent again. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-04-04gem_stress: extract emit_bltDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-04-04gem_stress: gen2 render copyDaniel Vetter
Sometimes acts up like gen3 on my i855gm. Sometimes works flawless. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-04-01gem_stress: split out gen3 render copyDaniel Vetter
Header conflicts with other headers for different generations. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-31gem_stress: option to disable render copyDaniel Vetter
It seems to be randomly broken, every boot in a slightly different way on my i945gme. Works quite well on my Q35. So add an option to disable it till this is resolved. Well, more testing seems to suggest that I've been hunting ghosts. Or maybe not and it works now simply because it's a different day. Anyway, leave this in for future testing. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-29gem_stress: render copy on gen3Daniel Vetter
Headers copied over from xf86-video-intel, code built after the Xrender support. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-29gem_stress: fix set_tilingDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-29gem_stress: ad-hoc tile tracingDaniel Vetter
Signed-off-by: root <daniel.vetter@ffwll.ch>
2011-03-27gem_stress: optin to set num_buffersDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27gem_stress: variable gpu busy loadDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27gem_stress: getoptificationDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27gem_stress: dump complete failed tileDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25Move gen5 blitter work-around to libDaniel Vetter
Suggested by Chris Wilson to prevent utterly strange gpu hangs. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25gem_stress: limit gtt_size to 256Daniel Vetter
gem_stress maps all buffers, so more only results in trashing (which should be handled with an option). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25gem_stress: implement gen5 blitter work-aroundDaniel Vetter
ddx and mesa assume that this is issued after every blit command. Breaking that invariant results in a dying gpu. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25gem_stress: fix blitter_copy on gen4+Daniel Vetter
Utter fail at copy&pasting. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-21gem_stress: submit batch if there's only one fence leftDaniel Vetter
... for a copy might use up to two fences! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-21stress: Distinguish between busy_bo and scratch_bo creation sizesChris Wilson
The busy bo has a fixed size (1024x256, 32bpp) whereas the scratch bo may need to vary their size to exercise different features of fence allocation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-20gem_stress: pwrite/pread supportDaniel Vetter
And a few other things: - inline checking when copying tiles with the cpu, fails _much_ faster. - bo size seems to have a tremendous effect, put on the TODO. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-20Add gem stress testDaniel Vetter
Not where I want it to be, yet. And not as good as I've hoped in detecting broken kernels. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>