summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-06-07igt/vc4_dmabuf_poll: Add a test for polling to wait for dmabuf fences.Eric Anholt
This successfully catches vc4's lack of dmabuf fencing. Signed-off-by: Eric Anholt <eric@anholt.net>
2017-06-07ffs: Include strings.hArkadiusz Hiler
ffs() was used in couple of places without explicitly including strings.h. On a few libc implementation this is done implicitly through other headers, but let's do not rely on that behavior. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07tests/gem_exec_nop: Rename signal() to fence_signal()Arkadiusz Hiler
Unfortunately <signal.h> is included through some obscure dependencies when using bionic, so we have a name clash on signal(). Changed the test function name to fence_signal() to avoid this, but left the test cases names unchanged. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07tests/gem_exec_nop: Disable headless subtest on cairoless AndroidArkadiusz Hiler
Currently whole igt_kms.c is disabled while compiling on Android without cairo, so this tests does not compile. There should be cleaner a way to disable only cairo dependant parts which should allow us to enable at least some of the KMS tests, but that's a bigger rework for another time. v2: simplified #ifs on CAIRO/ANDROID (P. Latvala) Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07Android.mk: Use drm stubsArkadiusz Hiler
Use drm stubs that sit under lib/stubs. Also drop strange, nonexistent additions to LOCAL_C_INCLUDES. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07Android.mk: Fix libkmod useArkadiusz Hiler
On Android libkmod.h is nested under libkmod directory, so we should include appropriately. Also we need to link with it. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07tests/Android.mk: Add perf to skip listArkadiusz Hiler
It does not build on Android with top libdrm. Temporary hax. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07chamelium: Fix build issues on AndroidArkadiusz Hiler
Makefile.sources are included 1:1 in Android.mk files, and are not parsed by automake. And yet those had some automake conditional logic. Moving it to .am file is enough for now. Also igt_chamelium.h included config.h without proper "HAVE_CONFIG_H" guard, and the file itself was included unconditionally. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
2017-06-07Make conditions on HAVE_UDEV consistentArkadiusz Hiler
We have a lot of `#ifdef HAVE_UDEV` and ` #if HAVE_UDEV` all over the place, but ifdef and if have a slightly different semantics. Let make it consistent by using #ifdefs only. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07tests/drm_import_export: Include {i915_,}drm.h properlyArkadiusz Hiler
Using `libdrm/` impairs compatibility with android build system and pkg-config manages -I for us on regular distros. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-06-07kms_cursor_legacy: Add a burner thread to make basic-busy-* pass.Maarten Lankhorst
This appears to be required on SNB, or else we miss a lot of interrupts. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-06-07tests/kms_properties: Allow setting all connector properties now.Maarten Lankhorst
i915 connector properties have been converted to atomic, so all properties can now be set. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-06-06tests/kms_rotation_crc: Keep primary plane enabled while testing.Maarten Lankhorst
This will force less watermarks to be allcoated to the sprite plane, making it easy to hit a underrun! Unfortunately the FIFO underrun wasprevented by skl_plane_downscale_amount, but fixed with Ville's patch series. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-06-06tests/kms_rotation_crc: Implement stricter rotation testsMaarten Lankhorst
This makes kms_rotation_crc also test a case where a small strip is tested on the top or left side of the screen. It allows us to ensure more accurately that the rotation is shown correctly on the screen. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-06-06tests/kms_cursor_legacy: Prepare for non-square rotation testsMaarten Lankhorst
No functional changes yet, just making sure that it works as expected. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-06-06tests/kms_setmode: Dynamic crtc/connector combinationsHarry Wentland
Create crtc/connector combinations based on actual adapter information obtained from drmModeRes. Also set MAX_CRTCs to 6 for AMD GPUs. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
2017-06-01tests/kms_cursor_crc: Test non-square cursors on IVB+Ville Syrjälä
IVB+ have the cursor "FBC" feature, meaning they support a somewhat limited form of non-square cursors. Let's test that. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2017-05-31lib: Moving gem_execbuf_wr to ioctl_wrappersLukasz Fiedorowicz
gem_execbuf_wr was duplicated in multiple places. Moving everything to lib/ Signed-off-by: Lukasz Fiedorowicz <lukasz.fiedorowicz@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2017-05-24igt/gem_shrink: Exercise concurrent calls to i915_gem_shrink()Chris Wilson
Just recently I once again made the mistake of thinking we could do a plain mutex_lock() inside i915_gem_shrink(). However, such a lock is liable to cyclic deadlocks between multiple relcaimers. This can be reported by lockdep, but we need contention in the shrinker for it to spot this particular mistake. The easiest way to explicit cause contention is via concurrent calls to debugfs/i915_drop_caches whilst the GPU is busy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-23igt/gem_mmap_wc: Move the require mmap-wc to the fixtureChris Wilson
Not all subtests remembered their requires, so do it from the caller and catch all at once. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-23igt/gem_exec_latency: Check for WC mmaps before useChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-23igt/gem_exec_store: And free the new obj/reloc arraysChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-23igt/gem_exec_store: Exercise more patterns for MI_STORE_DWORD_IMMChris Wilson
Check that writes to adjacent cachelines are functional. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-19igt/pm_rps: Allow CUR to be greater than MAX (overclocking)Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-18igt/gem_exec_fence: Skip await test if store-dword is not supportChris Wilson
The request we await for is just to store a dword, if the device doesn't support store-dword we will do no awaits and so not actually test anything. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-18lib: Refactor testing for ability to use MI_STORE_DATA_IMMChris Wilson
Rather than have the code in multiple locations, put a copy in lib/ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-17igt/gem_spin_batch: Avoid interleave throttle within open spin batchesChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101079 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-16igt/gem_exec_store: Add welcome screenChris Wilson
Print out a little bit of device information on startup to help diagnose errors. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-13amdgpu/amd_cs_nop: Use a counter not seqnoChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-13igt/amd_cs_nop: Spread submissions across multiple processesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-13igt/gem_exec_nop: Restore check on available signal ringsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-12igt/gem_exec_nop: Include the impact of signaling a fenceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-11igt/gem_exec_reloc: Filter out unavailable addresses for !ppgttChris Wilson
In the old shared GTT modes, some addresses may already be in use and so we cannot pin our objects there. Skip placing objects to those locations for maximum test coverage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-11igt/gem_exec_reloc: Exercise relocations across the full GTT rangeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-09tests/kms_cursor_legacy: Fix failing tests harderMaarten Lankhorst
Also allow the initial vblank evasion to fail. This was the most likely cause of the test failure, so be sure to fix it too. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-05-09tests/kms_cursor_legacy: Increase tolerance for failing ↵Maarten Lankhorst
flip-before/after-cursor. Run the test 25 times and fail if we miss too many vblanks. CI receives too many false positives so we have to fix it. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-05-08igt/gem_mmap_gtt: Check that userspace clflushing of the GTT mmapChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=100971 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-04tests/pm_sseu: Re-enable the testOscar Mateo
This test got inadvertently disabled by commit 83884e97 (Restore "lib: Open debugfs files for the given DRM device") when the initialization order got changed (dbg_init before gem_init). v2: - The asserts on fd are useless (Petri) - Deinit in inverse order. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-05-04kms_frontbuffer_tracking: Don't poke compressing status for old cpusGabriel Krisman Bertazi
Commit 2804afc606f8 ("kms_frontbuffer_tracking: fix compression checking") removes the check whether the kernel supports reporting the compression status before asserting on it. This breaks the test for no good reason on old CPUs (SNB and earlier) where the kernel can't report the compression status. Instead, we can check if the cpu doesn't support reporting and adopt the same behavior as if --no-fbc-compression-check was used. Changes since v1: - Move verification to setup_fbc (Paulo) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100677 Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2017-05-03tests/kms_concurrent: Concurrent and interruptible subtests for atomicMika Kahola
This test case introduces concurrently running test cases for atomic modesetting. The first test or thread draws blue backround with black holes on it. These holes are covered by rectangular, blue planes that are placed randomly like in test case 'kms_plane_multiple'. The second thread changes resolution from higher to lower one and back. For: VIZ-7022 v2: use igt_fork instead of pthreads to create concurrent test runs (Maarten) v3: use igt_display calls instead of raw drm calls for display updates (Maarten) Various cleanups on accessing drm connector (Maarten) Signed-off-by: Mika Kahola <mika.kahola@intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-04-27Add gem_exec_awaitChris Wilson
The sole purpose of this test is try and exercise i915_gem_request_await_object() and descendants. In particular, asking whether it is worth adding magic there. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-27igt/kms_cursor_legacy: Mark up busy tests as requiring a GPUChris Wilson
If we can't use the GPU to make a framebuffer busy, skip the test. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-27igt/gem_workarounds: Mark up the requirement for an active GPUChris Wilson
We need to use the GPU to read back the registers using GPU commands, ergo we need igt_require_gem() to check the GPU is alive first. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-27igt/gem_render_linear_blits: Add missing igt_require_gem()Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-25igt/amdgpu: Fix compiler errorsChris Wilson
amdgpu/amd_basic.c: In function ‘amdgpu_semaphore_test’: amdgpu/amd_basic.c:555:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_request ibs_request[2] = {0}; ^ amdgpu/amd_basic.c:555:9: error: (near initialization for ‘ibs_request[0]’) [-Werror=missing-braces] amdgpu/amd_basic.c:556:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_ib_info ib_info[2] = {0}; ^ amdgpu/amd_basic.c:556:9: error: (near initialization for ‘ib_info[0]’) [-Werror=missing-braces] amdgpu/amd_basic.c: In function ‘amdgpu_command_submission_multi_fence_wait_all’: amdgpu/amd_basic.c:1210:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_request ibs_request[2] = {0}; ^ amdgpu/amd_basic.c:1210:9: error: (near initialization for ‘ibs_request[0]’) [-Werror=missing-braces] amdgpu/amd_basic.c:1212:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_fence fence_status[2] = {0}; ^ amdgpu/amd_basic.c:1212:9: error: (near initialization for ‘fence_status[0]’) [-Werror=missing-braces] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-25igt/meta_test: Fix dmesg-warn testMarta Lofstedt
Add bracket to match with piglit dmesg filter. Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-04-25tests/feat_profile.json: legacy features list for piglit summary featureJari Tahvanainen
Daniel has posted empty feat_profile.json as template to be used. This is my understanding about the features and what tests are covering those. Usage: piglit summary feature json-filename output-directory results-directory Signed-off-by: Jari Tahvanainen <jari.tahvanainen@intel.com> Acked-by: Daniel Vetter <daniel.vetter@intel.com>
2017-04-24igt/gem_exec_schedule: Emit wide batches of requestsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-22igt/kms_frontbuffer_tracking: Declare dependency on functioning GEMChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-22igt: Add amd_prime for checking prime integrationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>