summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-12-05gem_close_race: Update size to avoid OOMHEADppgttBen Widawsky1-2/+8
The code opens a bunch of file descriptors, which internally will now do a bunch of allocations. This is guaranteed to OOM, which makes the test not useful. We could either skip, or adjust the size. The number (8MB) should be sufficient through gen8 with 4GB GGTT. NOTE: If we move away from allocating the page tables on init, we could remove this limitation. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05tests/gem_ppgtt: New gem_ppgtt set of testsOscar Mateo4-0/+327
This test covers some tricky corner cases found during the True-and-only PPGTT feature development. v2: Add pthread requirement to makefile. v3: Added new "pinned" testcase. v4 (Ben): Update rendercpy to use contexts Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-12-05gem_pin: Skip with full ppgttBen Widawsky3-1/+21
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_ctx_bad_exec: Updates for contexts on all ringsBen Widawsky1-3/+3
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_ctx_bad_destroy: change return typeBen Widawsky1-1/+1
Destroying the default context is now EPERM. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_exec_faulting_reloc: Update gen8 BLT cmdsBen Widawsky1-9/+24
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gen8 rendercpy: temporarily disableBen Widawsky1-2/+4
We don't yet have this working, and the excessive hangs are annoying. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05Kill XY_COLOR_BLT_CMDBen Widawsky2-2/+0
Since we now always want a length for this command, and we've created a non-length variant, remove the #define to prevent further foot shooting. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_reloc_vs_gpu: Update for gen8 BLT cmdsBen Widawsky1-13/+12
NOTE: Some subtests are still failing, but I haven't found the bug yet. At least this should help QA meanwhile. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_persistent_relocs: Update for gen8 BLT cmdsBen Widawsky1-13/+12
NOTE: Some subtests are still failing, but I haven't found the bug yet. At least this should help QA meanwhile. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_write_read_ring_switch: Missed gen8 BLT updatesBen Widawsky1-4/+2
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05drm_vma_limiter_cached: Missed gen8 BLT updatesBen Widawsky1-4/+2
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05gem_pipe_control_store_loop: BDW updateBen Widawsky3-4/+31
I've opted to not use the PIPE_CONTROL w/a for now. I am unclear if it is actually required (the test does pass). Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-05tests/gem_ctx_exec: Add eviction testDaniel Vetter2-17/+93
It didn't pan out at all since atm we don't evict context objects. But maybe it's useful for when that happens. v2: Actually test eviction. Took a while to figure that one out. And indeed the testcase now fails because we don't evict the previous context as we should. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-05lib: add gem_available_aperture_size helperDaniel Vetter2-0/+10
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-05tests/core_get_client_auth: new subtests for always authenticatedDaniel Vetter2-9/+21
This exercise the bug fixed in commit 1020dc6990168a5081ffad620c440e220f05b460 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Oct 29 08:55:57 2013 +0000 drm: Do not drop root privileges for a fancier younger process Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-05tests: rename get_client_auth to have a core_ prefixDaniel Vetter3-3/+3
Also sort .gitignore. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-05quick_dump: Restore execture permission on quick_dump.pyVille Syrjälä1-0/+0
quick_dump.py execute permission was accidentally lost in: commit d56697233699844db9262a9a056b62b24b69dd39 Author: Mengdong Lin <mengdong.lin@intel.com> Date: Sun Aug 25 23:07:22 2013 -0400 quick_dump/bdw: support Broadwell in device auto-detection Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-12-05Update dpio read/write to take in extra PHY parameter.Chon Ming Lee7-13/+26
The extra parameter is for future platform. Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-12-05tools/quick_dump: Update Baytrail DPIO names to reflect to the driver change.Chon Ming Lee1-53/+51
DPIO name still using old name. Change it according to the driver name. Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-12-04tests/gem_reset_stats: add close-pending-forkMika Kuoppala1-0/+62
This triggers use after free oops on request->batch_obj when going through the rings and setting reset status on requests, after a gpu hang. v2: Streamlined the test and added comments (Daniel) Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-04lib/drmtest: Fix filedesc leak on gem_quiescent_gpuMika Kuoppala1-0/+1
to not run out of filedescs as some tests call gem_quiescent_gpu directly. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03Revert "lib/drmtest: ducttape over fork race"Tvrtko Ursulin1-10/+0
This reverts commit a031a1bf93b828585e7147f06145fc5030814547. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Conflicts: lib/drmtest.c Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03Revert "test/gem_concurrent_blt"Daniel Vetter1-0/+4
This reverts commit aee0dcb1ec2075991d310dd6f3fb5e50160847d1. Oops, accidentally commit a bit of wip changes.
2013-12-03drmtest: Avoid wrong PID/TID after clone racesTvrtko Ursulin1-1/+9
Various C library implementations have various races with regards to caching getpid() or TID inside pthread_kill() implementations. For example see clone(2) glibc man page and pthread_kill Bionic C library source. Work around that by making sure correct PID/TGID and TID values are retrieved from the kernel when re-raising the signal. It can be delivered immediately after the clone system call while C library cached copies have not yet been updated. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03build: Skip kms_fbc_crc on AndroidTvrtko Ursulin1-0/+1
We do not have GLib there so it does not build. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03build: Make sure asserts are enabled for testsTvrtko Ursulin3-1/+5
Tests depend on assertions being enabled since they can, and do, contain actual test steps. They are also mandatory for ensuring sane test case behaviour. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03test/gem_concurrent_bltDaniel Vetter2-4/+4
Limit working set size also with available ram. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72255 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03lib: Don't put functional code into assertsDaniel Vetter1-6/+11
Android apparently compiles with NDEBUG. Which is strongly advised against, since the big pile of asserts mostly check correct usage of the helper code in testcases. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-03drmtest: Fix weird signage on errnoChris Wilson1-4/+4
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-28gitignore: Ignore kms_fbc_crcDamien Lespiau1-0/+1
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28kms_fbc_crc: Remove unused variableDamien Lespiau1-1/+0
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28rendercopy/bdw: Fix the 3DSTATE_STENCIL_BUFFER instruction lengthDamien Lespiau1-1/+3
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28rendercopy/bdw: Fix the 3DSTATE_HIER_DEPTH_BUFFER instruction lengthDamien Lespiau1-1/+3
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28rendercopy/bdw: Fix the various 3DSTATE_CONSTANT_* instruction lengthDamien Lespiau1-17/+31
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28rendercopy/bdw: Fix the STATE_SIP instruction lengthDamien Lespiau1-3/+4
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variableDamien Lespiau1-1/+7
This is the one that already works in libdrm, so don't disappoint people coming with expectations. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28intel_dump_decode: Actually parse the -d optionDamien Lespiau1-1/+1
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-27kms_fbc_crc: Add a CRC based FBC testVille Syrjälä2-0/+540
kms_fbc_crc will perform various write operations to the scanout buffer whilc FBC is enabled. CRC checks will be used to make sure the modifcations to scanout buffer are detected. The operations include: - page flip - GTT mmap - CPU mmap - blit - rendercopy - context switch + rendercopy - combination of a page flip and each operation listed above v2: Use gem_sw_finish instead of drmModeDirtyFB after CPU access v3: Drop pwrite tests, call gem_bo_busy() after rendering, drop set_domain() calls after mmap access, wait for 2 vblanks Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-27lib: Add gem_bo_busyVille Syrjälä3-11/+12
Move gem_bo_busy() from gem_wait_render_timeout.c to lib. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-27lib: Add gem_sw_finish()Ville Syrjälä2-0/+12
Wrap DRM_IOCTL_I915_GEM_SW_FINISH into gem_sw_finish() Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-27rendercopy: Pass context to rendercopy functionsVille Syrjälä14-28/+43
rendercopy does the batch buffer flush internally, so if we want to use it with multiple contexts, we need to pass the context in from caller. v2: Modify rendercopy_gen8 as well Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-27kms_cursor_crc: Fix crc readout after a subtest failureVille Syrjälä1-0/+4
If a subtest fails, it'll leave the pipe CRC file open, which will prevent subsequent subtests from opening the file. Make sure the file is cloesed before trying to open it again. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-27lib: Fix pipe_crc->ctl_fd assertVille Syrjälä1-1/+1
Use the correct fd in the assert(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-27tests: Document exec naming convention for execbuf related testsDaniel Vetter1-0/+2
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-27tests: Document per-ring naming conventionsDaniel Vetter1-0/+4
Inspired by the recent pile of tests for the CS, which doesn't split up the tests into per-ring subtests. Cc: bradley.d.volkin@intel.com Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-26tests/pm_pc8: add "resuming" statePaulo Zanoni1-0/+3
This one was missing. For some reason we never really detected it on our test suite. I checked the Kernel source and now we should be fine. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-11-21tests/pm_pc8: try to reuse FBs when possiblePaulo Zanoni1-6/+54
Instead of creating a new FB every time we need one, create a cache of FBs and reuse whenever possible. That means we'll create at most two FBs, and reuse them hundreds and hundreds of times. The kmstest_paint_test_pattern function takes about 1-2 seconds to run, and we'll avoid it whenever we reuse the FB. This makes the time taken to run the modeset-lpsp-stress subtest go from 2:29 to 1:29. A full "time ./pm_pc8 --quick" goes from 8:14 to 6:27. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-11-21tests/pm_pc8: try harder to reach PC8+ residenciesPaulo Zanoni1-0/+47
If we want to actually reach PC8+ states, we need to properly configure all the devices on the system to allow this. This function will try to setup the things we know we need, but won't scream in case anything fails: we don't know which devices are present on your machine, so we can't really expect anything, just try to help with the more common problems. Another reason for this commit is that I got tired of having to readjust the runtime PM policies every time I reboot my machine. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-11-21tests/pm_pc8: rename some subtestsPaulo Zanoni1-2/+2
Due to copy/paste error, we had 3 subtests called gem-execbuf-stress. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>