summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-12-31chamelium: Debug-print CRCs when comparing them and dumping framesPaul Kocialkowski1-0/+7
Add debug prints for the reference and captured CRCs when comparing them and dumping them, which can be useful to get an idea of what is going on (e.g. specific noise on display cables often only changes one of the values that compose the CRC). It's also useful to associate a test debug output with the dumped pictures (that have the CRC in their name). Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
2018-12-31chamelium: Pass the pattern block size as argument to helpersPaul Kocialkowski1-5/+7
This adds a new block size argument to the pattern generation helpers so that different sizes of blocks can be used. In the future, this allows us to use different block sizes when testing overlay planes, making it visually explicit what is part of the main plane and what is part of the overlay plane. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
2018-12-31chamelium: Pass dimensions instead of mode to pattern generation helperPaul Kocialkowski1-6/+5
In order to reuse the pattern generation helper for overlay planes, let's provide the pattern generation helper with the explicit dimensions instead of the mode (that only applies to the primary plane). Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
2018-12-31chamelium: Pass and use stride for xr24 pattern paintPaul Kocialkowski1-3/+5
Using the width from the selected mode is not sufficient to correctly paint a pattern on the framebuffer memory: the stride also has to be taken in account for proper line start alignment. Pass the stride and use it in chamelium_paint_xr24_pattern. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
2018-12-31chamelium: Fix inverted xr24 pattern paint dimensionsPaul Kocialkowski1-1/+1
The xr24 pattern for chamelium testing appears mangled when checking it on an actual display. This is because the horizontal and vertical display sizes are inverted when used as width and height. Put them back in order. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
2018-12-27lib/kms: Fix documentation for for_each_pipe_staticPetri Latvala1-2/+2
The documentation block was copypasted from for_each_pipe without changing the name. A drive-by typo fix to for_each_pipe's docs is included. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2018-12-21lib/fb: Remove unused variablesPetri Latvala1-1/+0
../lib/igt_fb.c: In function ‘convert_rgb24_to_yuv444’: ../lib/igt_fb.c:1720:16: warning: unused variable ‘v’ [-Wunused-variable] float y, u, v; ^ ../lib/igt_fb.c:1720:13: warning: unused variable ‘u’ [-Wunused-variable] float y, u, v; ^ ../lib/igt_fb.c:1720:10: warning: unused variable ‘y’ [-Wunused-variable] float y, u, v; ^ Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
2018-12-20runner: Add explicit "notrun" results for tests that were not executedPetri Latvala27-11/+507
When possible, all tests we know we were going to attempt to execute now appear in the results as "notrun". The only known case where it's not possible to add an explicit "notrun" is when running in multiple-mode, because "no subtests" and "run all subtests, we didn't list them beforehand" are represented the same. v2: Rebase and adjust to already landed json changes Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Martin Peres <martin.peres@linux.intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2018-12-20Add support for forcing a specific driverPetri Latvala3-0/+39
This commit adds a new option for forcing the use of a specific driver indicated via an environment variable. v2 (Petri): - Use an environment variable instead of command line - Refactor the loop in __open_device - Don't try to load kernel modules v3 (Petri): - Rebase and adjust to the driver loading changes Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: gustavo@padovan.org Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
2018-12-18lib/igt_fb: Added XYUV8888 format support for testingStanislav Lisovskiy2-1/+90
XYUV8888 format support has been added to DRM, modified IGT to reflect those changes. v2: Fixed merge conflict, started to use new yuv<=>rgb conversion functions. v3: Fixed kms_available_modes_crc test to support new XYUV format. Fixed a problem, where test complains that two outputs might use same pipe at the same time. v4: Fixed convertion procedure in igt_fb to support XYUV properly. v5: Fixed a coding typo. v6: Set depth equal to -1 for XYUV format in order to prevent it to be used by igt_bpp_depth_to_drm_format, as we do not want YUV formats to be used in that case. v7: Fix "black" color initialization for create_bo_for_fb with proper value. Changed naming "planar_stride" to "xyuv_stride". v8: Change naming from DRM_FORMAT_XYUV to DRM_FORMAT_XYUV8888 v9: Fixed compilation errors by rebasing to recent master. v10: Adding reference to correspondent kernel commit with the new format in include/drm-uapi v11: Removed unnecessary sizeof's in rgb <=> yuv444 convert functions. v12: Rebased against master branch, fixed rebase conflict caused by new fb_convert functions. Removed drm kernel commit reference as it is still not merged, so doesn't make sense to use it. v13: Resolved one more rebase conflict. Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-12-17igt/amdgpu_amd_prime: Bail if we fail to create more contextsChris Wilson1-2/+3
amdgpu has started to report out of space after creating a few contexts. This is not the scope of this test as here we are just verifying that fences created in amd can be imported and used for synchronisation by i915 and for that we just need at least one context created! References: https://bugs.freedesktop.org/show_bug.cgi?id=109049 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
2018-12-15tests/kms_frontbuffer_tracking: Make sure GPU is quiescent before handling ↵Maarten Lankhorst1-2/+8
assertions, v2. Typically PSR enables in around 136 ms, but on some tests the we have to explicitly make sure that the gpu is idle before rendering. Otherwise, sometimes we wait for the background flusher to finish, which will take at least a second longer, and causes the wait for PSR to timeout. On kms_frontbuffer_tracking: Starting subtest: psr-2p-scndscrn-shrfb-plflip-blt psr_active(debugfs_fd, true) took 136ms psr_active(debugfs_fd, true) took 136ms psr_active(debugfs_fd, true) took 350ms psr_active(debugfs_fd, true) took 136ms psr_active(debugfs_fd, true) took 1598ms Changes since v1: - Do not call gem_quiescent_gpu on modesetfrombusy subtest, or we get a timeout. Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Cc: José Roberto de Souza <jose.souza@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108733 Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1
2018-12-14tests/perf: bump max number of block/poll interationsLionel Landwerlin1-14/+2
Those 2 tests fail regularly on HSW, probably because the OA period aligns slightly differently there because of the differnce in the timestamp frequency between HSW and other generation. Just bump the max number by 1 to fix the issue. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102252 Reviewed-by: Matthew Auld <matthew.auld@intel.com>
2018-12-13autoconf: Drop gtkdoc supportDaniel Vetter5-240/+0
It's a huge kludge (doesn't track dependencies correctly) and compared to the meson one, real slow. Throw it out. Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-12-13README: Use meson for building docsDaniel Vetter1-3/+8
Also simplify the instructions for meson 0.47+, where we track dependencies correctly. v2: Fix typo (Petri) Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-12-12runner: Produce json with results_version=10Petri Latvala10-10/+10
New piglit bumped its results_version to 10, making glxinfo and pals optional in practice, not just by accident. Unfortunately reading results with newer piglit attempts to convert the results to version 10, reading glxinfo and pals, and thus fails. In a hilarious summary: A commit to piglit making glxinfo optional makes it mandatory for us. v2: json unit tests confirmed to be working... Reported-by: Andi Shyti <andi.shyti@intel.com> Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: Andi Shyti <andi.shyti@intel.com> Tested-by: Andi Shyti <andi.shyti@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2018-12-12runner: Handle escaped characters from kmsgPetri Latvala13-2/+158
Characters in kernel logs, when read from /dev/kmsg, are escaped as \xNN if they are not between 32 and 127 of if they are "\". Decode what we can when creating results.json. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2018-12-11Allow a full modeset in kms_properties atomic caseStanislav Lisovskiy1-1/+1
Otherwise we are getting EINVAL as drm requires it at some point. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108642 Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-12-10lib/kms: Enable outputs by default in igt_require_displayDaniel Vetter3-4/+5
More testing, automatically when using the high-level kms helpers! Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-12-10gitlab-CI: Force a UTF-8 localDaniel Vetter1-0/+1
python is brittle otherwise and loves to just blow up. Especially when you have commits with non-ASCII characters, which gitlab CI injects into the docker env. Strangely we've only seen this go boom on the ninja test target in the arm64 cross-compile. For paranoia roll it out everywhere. v2: gitlab-ci has global variables (Petri) Cc: Petri Latvala <petri.latvala@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-12-05igt/pm_rpm: Show the contents of i915_runtime_pm_status on setupChris Wilson1-0/+14
To try and help debug situations where the driver has leaked a runtime reference before executing the pm_rpm tests, show the contents of i915_runtime_pm_status at startup, which will include all currently held wakerefs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
2018-12-05gitlab-ci: Always set PKG_CONFIG_PATHDaniel Vetter1-1/+3
meson gets grumpy if that changes between invocations. I'm not entirely clear on why this happens with the interim runner from gnome folks, but it does. We do still run the exact same image, with the exact same meson version. But someone the old runner didn't complain, while the new one does. Note that the jobs still fail because the interim runner is dead slow (10x-100x slower to run the library tests) and times out after 30s on tests that take 1s max. Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-12-04igt/pm_rpm: Ignore modesets for basic tests with no KMSChris Wilson1-3/+8
If KMS is not available, we cannot simply turn on an output and expect that to wake the device up. As such we have to ignore that part of the basic subtest and simply proclaim victory if the device is able to sleep! v2: Mention that we can test wakeup via nop execbuf in future. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
2018-12-04tests/kms_rotation_crc: static before constDaniel Vetter1-3/+3
My gcc is unhappy otherwise: [191/829] Compiling C object 'tests/te...otation_crc@exe/kms_rotation_crc.c.o'. ../tests/kms_rotation_crc.c: In function ‘test_multi_plane_rotation’: ../tests/kms_rotation_crc.c:497:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static struct { ^~~~~ ../tests/kms_rotation_crc.c:524:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static uint32_t formatlist[] = {DRM_FORMAT_RGB565, ^~~~~ Fixes commit 14c1b132c8f829637c55fb071a9a2e5ce00e7ed8 Author: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Date: Fri Nov 30 15:34:36 2018 +0200 tests/kms_rotation_crc: Add multi plane tests v2: Trim extra space while at it (Petri). Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-12-04include/drm-uapi: bump headersLukasz Kalamarz13-61/+1245
Taken from drm-next : commit 1ec28f8b8ada4e4f77d1af006a3a474f4f83b8e3 Merge: 61647c77cb15 2e6e902d1850 Author: Dave Airlie <airlied@redhat.com> Date: Thu Nov 29 10:34:03 2018 +1000 Merge v4.20-rc4 into drm-next Generated by 'make headers_install' Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz@intel.com>
2018-12-04tests/kms_rotation_crc: Add multi plane testsJuha-Pekka Heikkila1-0/+246
Add three new tests which try primary and sprite planes next to each other with different plane formats, rotations and tiling modes. multiplane-rotation subtest run test through with both planes fully visible. multiplane-rotation-cropping-top will crop primary plane to left/top corner and sprite plane to right/top corner while running rotation tests. multiplane-rotation-cropping-bottom will crop primary plane to left/bottom corner and sprite plane to right/bottom corner while running rotation tests. v2 (Nautiyal, Ankit K): Use rectangular figures instead of square figures and fix associated code to perform correctly. Adjust plane positions according to screen size to avoid putting planes outside screen. v3 (Nautiyal, Ankit K): Minor detail fix. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
2018-12-04tests/kms_plane: add source clamping testJuha-Pekka Heikkila1-3/+54
Add test which create fb bigger than plane and clamp fb from all sides. v2 (Maarten Lankhorst): Fix typo, create different color border around clamped fb where during test border should stay outside visible area. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-12-03chamelium: Fix analog bridge detection memory leakPaul Kocialkowski1-4/+6
The connector and EDID blob retrieved when checking for analog bridges need to be freed before returning from the associated function. Fixes: f8d6afa67 ("tests/chamelium: Detect analog bridges and handle EDID accordingly") Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
2018-11-29gitlab-CI: Keep build artifacts when arm64-test failsDaniel Vetter1-1/+7
There's something very funky going on with the occasional commit consistently failing, e.g. https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/jobs/51208 We need to catch it to understand what happens. v2: Also dump the environment (Petri) Cc: Petri Latvala <petri.latvala@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-27lib/igt_kms: Fill the plane format/mod information for pre-blobifier driversVille Syrjälä1-1/+21
For drivers that don't support the IN_FORMATS blob we should just consult the format list returned by getplane. Since we can't know which modifiers are supported we'll assume linear-only. Obviously that may not work for every driver out there, but not much more we can do unless we start to actually probing with addfb. Cc: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
2018-11-27v3d_*: Add new tests for the V3D UABI.Eric Anholt9-4/+256
These are basic non-rendering tests of the UABI. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Petri Latvala <petri.latvala@intel.com>
2018-11-27lib: Show stacktrace when terminated by runnerChris Wilson2-10/+25
The igt_runner sends a SIGTERM to ask the test to cleanly exit upon an external timeout. It is useful to know what the code was doing when the timeout occurred, just in case it was unexpectedly stuck. However, since we use SIGTERM internally to marshal helper processes, we want to keep SIGTERM quiet, and so opt to use SIGQUIT for the timeout request instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2018-11-27runner: Flip kill argsChris Wilson1-1/+1
int kill(pid_t pid, int sig)! Fixes: a6b514d242bd ("runner: Be patient for processes to die") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2018-11-27Revert "runner: Treat dmesg warnings as pure warnings"Chris Wilson1-5/+12
Accidentally pushed, believing this was the kill(child, 0) switcheroo. This reverts commit 0be3f3e7c1613dcaf27267fce778025ea46a36c1. Acked-by: Petri Latvala <petri.latvala@intel.com>
2018-11-27runner: Treat dmesg warnings as pure warningsChris Wilson1-12/+5
I have whinged on for ages about the dmesg-warnings being an expected part of kernel testing (where else is the kernel meant to log its errors?) and should be treated the same as our stderr for the test. That is if a test fails, it fails and does not need to be conflated with whether or not there was a dmesg warning (just as the test saying why it failed on stderr does not need flagging), and that a passing test with a dmesg warning is simply a warn. The effect is that we simply remove the "dmesg-" flagging from results names, as the err/dmesg output is simply collated for the error report already. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Martin Peres <martin.peres@linux.intel.com>
2018-11-27runner: Use %lx for printing unsigned longsPetri Latvala1-1/+1
../runner/executor.c:555:54: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] fprintf(stderr, "Child refuses to die, tainted %x. Aborting.\n", ~^ Fixes: a6b514d242bd ("runner: Be patient for processes to die") Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-11-27runner: Be patient for processes to dieChris Wilson1-14/+35
Some machines are very slow and some processes hog a lot of resources and so take much longer than a mere 2s to be terminated. Be patient. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108073 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2018-11-27gitlab-CI: Enable arm64 test targetDaniel Vetter2-2/+2
Our gitlab no supports binfmt-misc running of forgein binaries: https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/91 Only thing missing is that we also need to install qemu-user-static, since binfmt-misc wants to run that binary from our namespace. Big kudos to Daniel for setting this up. Example run on my stuff branch: https://gitlab.freedesktop.org/danvet/igt-gpu-tools/-/jobs/50307 Cc: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Sean Paul <sean@poorly.run> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-27tests/gem_ctx_param: Missing igt_fixtureDaniel Vetter1-6/+6
It's not cool to run an ioctl outside of igt_fixture. Reported-by: Petri Latvala <petri.latvala@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-27lib/kms: warn if we commit without outputsDaniel Vetter1-4/+4
With the high-level helpers requiring outputs there's not point in silently ignoring issues anymore. Complain about that if it ever happens. This reverts commit 212b71372bfbb73663d872df31118d6b396ada4f Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Sep 14 21:03:38 2018 +0100 lib/kms: Skip no-op display updates which created an in my opinion serious API issue by silently dropping possible errors on the floor. Instead of silently second guess what the test might have wanted to do in the absence of display outputs it's much better to be explicit, and enforce that. v2: Improve commit message. v3: Switch to an assert and update comments, to make it clear this is igt_display api abuse (Arek). Cc: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> (v2) Acked-By: Antonio Argenziano <antonio.argenziano@intel.com> Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-27lib/kms: Drop igt_display_initDaniel Vetter2-10/+5
If you need the high-level functions, then you probably need a full display. Unexport the non-requiring version, and adjust the documentation. This also gives us proper docs for the recently added igt_display_require. Cc: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-By: Antonio Argenziano <antonio.argenziano@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-27tests: Use igt_display_requireDaniel Vetter11-16/+17
Remaining tests that have been overlooked and don't need any invasive changes to limit the skipping to only the relevant parts. v2: [A rebase gone wrong] v3: Move the misplaced hunk to the right patch (Antonio). v4: Rebase, kms_content_protection is new. v5: Rebase - need to adjust kms_lease.c too. Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> (v3) Cc: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Acked-By: Antonio Argenziano <antonio.argenziano@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-27tests/debugfs: use igt_display_requireDaniel Vetter1-14/+28
Need to extract into a test subgroup to make sure we only skip the tests that need display support. v2: Chris pointed out that "read-all-entries" was the original non-kms tests, and we don't want to skip that if there's no output. Make a seperate test for this. Also, that kind of where libraries magically second-guess what the test might have wanted when it supplies an invalid request is exactly why I want to fix the igt_display_init API regression. v3: Actually squash in the hunk that was supposed to do v2 into this patch (Antonio). Cc: Antonio Argenziano <antonio.argenziano@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-By: Antonio Argenziano <antonio.argenziano@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-26v3d: Add a helper libraryEric Anholt6-0/+183
Just a few little ioctl wrappers that v3d tests will use. v2: Move the struct above the prototypes. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Petri Latvala <petri.latvala@intel.com> (v1)
2018-11-26v3d: Import the V3D DRM UAPI header.Eric Anholt1-0/+204
Copied from make headers_install at drm-misc-next 783195ec1cad ("drm/syncobj: disable the timeline UAPI for now v2") Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Petri Latvala <petri.latvala@intel.com>
2018-11-26tools/registers: Add icelake register fileKarthik B S2-0/+231
Added an icelake register spec file and a register file that contains additional registers corresponding to icelake. The icelake spec file uses the skylake file together with the newly added register file for ICL register definitions. v2: Changed the commit message. (Uma) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-11-26tests: close(fd) without igt_fixture considered harmfulDaniel Vetter3-3/+6
Some tests assume that close on an unopened fd is fine, except it's not just unopened but actually stack garbage. There's a good chance we end up running close(0), which wreaks the testcase enumeration. Fix this. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Not sure there's a better way to catch this than git grep plus lots of manual auditing ... The unit tests only catch it by accident (x86 works fine, I hit it in one testcase only cross-building to aarch64). v2: Note that gem_pread_after_blit uses heap memory, so is actually guaranteed to run close(0). Noticed by Jani. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-23igt/gem_exec_capture: Capture many, many objectsChris Wilson4-5/+354
Exercise O(N^2) behaviour in reading the error state, and push it to the extreme. Reported-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
2018-11-22tests/sw_sync: use igt_fork_helperDaniel Vetter1-36/+18
I'll need to wrap a bit of magic around all the fork() calls in our tests. Simplest way to get there is to roll out the existing helpers, which even saves a bit of boilerplate code. Cc: Robert Foss <robert.foss@collabora.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-21gitlab-ci: Depend docker images jobs on .gitlab-ci.yaml tooDaniel Vetter1-0/+3
Otherwise it's really hard to get these jobs to run when you need them too because you changed something with the build instructions. Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>