summaryrefslogtreecommitdiff
path: root/tests/gem_evict_alignment.c
AgeCommit message (Collapse)AuthorFilesLines
2018-02-23igt: Use lib gem_execbuf where possibleAntonio Argenziano1-5/+2
Replace custom execbuf ioctl wrapper with the ones in lib. v2: - Lib execbuf wrapper is not signal handling friendly. (Chris) v3: - EXECBUFFER2_WR != EXECBUFFER2. (Chris) v4: Drop gem_exec_fence.c changes Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-09-11igt/gem_evict_(alignment,everything): Limit to low 4GChris Wilson1-6/+31
These tests do not tell the kernel they can use the upper 48bits of aperture space, and cause eviction on the low 4G just as effectively exercising the evict code. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2017-02-22igt: Start marking up GEM tests that require an alive GPU to functionChris Wilson1-0/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-01-02igt: Mass conversion to to_user_pointer()Chris Wilson1-2/+2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-15tests/gem_evict_alignment: use uint64_t in eviction memory parametersMika Kuoppala1-5/+8
With large apertures we need to use uint64_t for counts and sizes. commit 0e2071411a4d4e1488a821daf522dffde2809e03 paved way for this but forgot to change the subtest parameters. v2: Pass correctly to the copy() also (Chris) References: https://bugs.freedesktop.org/show_bug.cgi?id=93849 Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2016-01-25Promote eviction memory sizes and buffer counts to uint64_tChris Wilson1-3/+2
References: https://bugs.freedesktop.org/show_bug.cgi?id=93849 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-04lib: igt_fork_hang_helper must be run in fixturesDaniel Vetter1-13/+13
Because it opens an intel-specific drm fd. Fixes crashes when running igt on no-intel. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-09-11convert drm_open_any*() calls to drm_open_driver*(DRIVER_INTEL) calls with cocciMicah Fedke1-1/+1
Apply the new API to all call sites within the test suite using the following semantic patch: // Semantic patch for replacing drm_open_any* with arch-specific drm_open_driver* calls @@ identifier i =~ "\bdrm_open_any\b"; @@ - i() + drm_open_driver(DRIVER_INTEL) @@ identifier i =~ "\bdrm_open_any_master\b"; @@ - i() + drm_open_driver_master(DRIVER_INTEL) @@ identifier i =~ "\bdrm_open_any_render\b"; @@ - i() + drm_open_driver_render(DRIVER_INTEL) @@ identifier i =~ "\b__drm_open_any\b"; @@ - i() + __drm_open_driver(DRIVER_INTEL) Signed-off-by: Micah Fedke <micah.fedke@collabora.co.uk> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-08-21lib: add a single include headerThomas Wood1-5/+1
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 Roper1-1/+1
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>
2015-02-13lib/igt_gt: Document and consolidateDaniel Vetter1-0/+1
Also move forcewake and stop_rings code from igt_debugfs to igt_gt since it fits better. And move the hang injection fork helpers from igt_aux to igt_gt, too. Also push the intel_gen call into igt_hang_ring while at it. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-01-07igt/gem_evict_(alignment|everything): contend with GPU hangsChris Wilson1-0/+15
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-04tests: add more test descriptionsThomas Wood1-0/+3
Add more test descriptions based on exiting comments. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-11-17lib/os: Push simulation test down into intel_require_memoryDaniel Vetter1-2/+0
This has the upside that we'll never forget to add it to thrashing tests. But we'll also never miss to move it when adding basic functionality tests to existing binaries. Chris already started this refining work in e.g. commit d77eda6614a1955717f224be023dedf74eb7735d Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Nov 14 07:45:40 2014 +0000 igt/gem_linear_blits: Require that we do the full test by moving igt_skip_on_simulation into subtests. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2014-11-17lib/os: Pust igt_require into memory check functionDaniel Vetter1-2/+2
More in line with the usual igt pattern and simplifies the code - every called just wrapped it in igt_require. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2014-06-06igt/gem_evict_alignment: Fix the memory limits checkingChris Wilson1-1/+1
We actually allocate twice as many bo as needed to fill the aperture to cause ENOSPC, but the entire payload has to still fit into RAM. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75138 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-06igt/gem_evict_alignment: Fix the memory limits checkingChris Wilson1-2/+2
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75138 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-06igt/gem_evict_alignment: Remove obsolete skip on gen8+Chris Wilson1-3/+0
If the BLT commands, aren't fixed yet, they should be. ASAP. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-23lib: extract igt_aux.[hc]Daniel Vetter1-1/+4
And shovel all the various helpers in there. Also move igt_set_vt_graphics_mode to igt_kms.h since the function is implemented in igt_kms.c. And it fits better. I kinda missed this in the prep work. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter1-1/+2
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-12tests: fix sub-test enumerationThomas Wood1-3/+4
Ensure sub-tests can be listed correctly by doing any test setup within an igt_fixture block. Signed-off-by: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-13gem_evict_*: Fix batch lengths, broken on gen8 integrationBen Widawsky1-1/+3
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-07gem_evict_alignment: Skip on GEN8 for nowBen Widawsky1-0/+3
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-06tests/bdw: gem_evict_*Ben Widawsky1-2/+6
support gen8 style blits Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-01lib: add igt_main macroDaniel Vetter1-5/+1
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-09gem_evict_*: Use iterator for blit batchBen Widawsky1-11/+11
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-03lib/drmtest: include sys/mman.h from drmtest.hDaniel Vetter1-1/+0
We need it for mmapping to get at PROT_READ|WRITE anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29tests/gem_evict_*: Fix leak in copyDaniel Vetter1-0/+1
This turned out to be the reason one one of my tests was hitting the list corruption bug - we need a good deal more memory pressure. So I'll now add a new testcase for that. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-23tests/gem_evict_*: Add interruptible modesDaniel Vetter1-10/+35
Also I've stumbled over igt_fixture again. Somehow gcc loves to wreak havoc with stack variables set up in igt_fixtures ... Duct-tape in the form of moving fd out to global scope applied. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-21tests: Add gem_evict_alignmentChris Wilson1-0/+196
Clone gem_evict_everything and use it to exercise the misalignment paths. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>