summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2018-12-04tests/kms_rotation_crc: Add multi plane testsJuha-Pekka Heikkila
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 Heikkila
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 Kocialkowski
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-27v3d_*: Add new tests for the V3D UABI.Eric Anholt
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-27tests/gem_ctx_param: Missing igt_fixtureDaniel Vetter
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-27tests: Use igt_display_requireDaniel Vetter
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 Vetter
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-26tests: close(fd) without igt_fixture considered harmfulDaniel Vetter
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 Wilson
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 Vetter
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-20lib/batchbuffer: Set bpp in igt_buf.Maarten Lankhorst
We want to allow bpp = 8 or 16, so make sure we set the bpp in igt_buf. This way we can extend rendercopy to support other values for bpp. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> [mlankhorst: Fix double ;; (Ville] Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-11-20tests/perf: buffer-fill: drop load helper usageLionel Landwerlin
It makes the tests more reliable because the expected number of reports is more acurate (given that we'll have almost no context-switch reports). Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
2018-11-19tests/i915/gem_render_tiled_blits: Make sure igt_buf is initially zero'dMaarten Lankhorst
gen8_bind_buf looks at buf->aux.stride/offset, which is not set by the test. When I added the bpp field, it was enough to make the test fail, fix this by making sure that the buf is initially zero'd explicitly, which fixes the test to run reliably 100% of the time. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> #irc
2018-11-16kms_content_protection: Fix log bug on 32-bit platforms.Eric Anholt
long is different between 32 and 64 and should basically never be used. Fixes compiler warning about passing the wrong type. v2: Use the PRId64 macros instead of long long. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-11-16tests: Move drv_ tests to i915 directoryArkadiusz Hiler
The drv_ tests are i915 specific, so let's move them to i915 directory and change the binary prefix to i915_. Additionally, while we at moving stuff around, let's rename module_reload to module_load and do the following cleanup with the subtests: basic-reload -> reload basic-no-display -> reload-no-display basic-reload-inject -> reload-with-fault-injection Cc: Martin Peres <martin.peres@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Martin Peres <martin.peres@linux.intel.com>
2018-11-08tests/i915/query: more accurate available/fused topology printoutLionel Landwerlin
Make availability of all elements more visible for debug purposes. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2018-11-08tests/kms_lease: improve the unleased_connector/crtc testsDaniel Vetter
We need to use raw ioctl since using the igt_kms library is fairly brittle against changes in the library. This fixes the last subtest failure due to the rebasing onto latest kernel and igt. Note that the revoke test doesn't have such a problem, because the igt library has been initialized when everything was still there. Hence we will never blow up in the library after the revoke happened. Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-08tests/kms_lease|sequence: Make sure we're masterDaniel Vetter
Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-08tests/kms_lease: improve lease_get subtestDaniel Vetter
Again it failed to fill in the pad field. It also had the wrong assumptions about planes being included. Plus again add a bunch more paranoid checks. And make sure the primary plane is included, too. Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-08tests/kms_lease: improve lesssee_list subtestsDaniel Vetter
It failed to clear the pad, which made me realize that it's missing a few paranoid checks. Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-08tests/kms_lease: Adjsut to universal_planes uapi changesDaniel Vetter
We need to also ask for a plane when universal planes is enabled, which the igt_display library does by default. Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-08tests/kms_lease: use interactive debug helpersDaniel Vetter
Much faster, since when not enabled they proceed right away. Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-11-08tests/kms_lease: add tests for lease ioctls [v2]Keith Packard
Validate that the leasing API creates leases that allow access to a subset of the available resources and that lease revocation works. v2: from Dave Airlie <airlied@redhat.com> * Update ioctl numbers to latest proposed values. * Fix commit message * Add tests for get_lease and list_lessees v3: - Rebase - drop the get_driving_output test, that's already taken care of by the for_each_valid_output loop. Signed-off-by: Keith Packard <keithp@keithp.com> (v2) Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-08tests/kms_sequence: Add tests for new CRTC get/queue sequence ioctls [v2]Keith Packard
These ioctls replace drmWaitVBlank and add ns time resolution and 64-bit sequence numbers to comply with the Vulkan API specifications. The tests were derived from the existing kms_vblank tests with the 'wait' variant elided as the new API doesn't provide a mechanism for blocking in the kernel. v2: from Dave Airlie <airlied@redhat.com> * Add local definitions of new ioctls to avoid requiring latest libdrm. * Remove FIRST_PIXEL_OUT as that has been removed from the proposed kernel patches. v3: - Rebase - drop the export of igt_output_get_driving_pipe, the tests do full modesets already. Signed-off-by: Keith Packard <keithp@keithp.com> (v2) Reviewed-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-11-07tests/kms_frontbuffer_tracking: Really do not skip on 4k displays, v2.Maarten Lankhorst
The previous fixes to kms_frontbuffer_tracking fixed the sharedfb tests, but the stridechange test still creates its own fb. Use the existing 'big' fb to force a stride change, without ending up with an excessive stride. Changes since v1: - Use the big fb used by the shrfb tests. It already exists and has the right dimensions, so why not? Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-11-06tests/kms_atomic_transition: Do not timeout when number of sprites is huge, v5.Maarten Lankhorst
We mostly care about the plane type, because sometimes the driver may do silly things when only a cursor is enabled for example, so we reduce the number of tests. This puts an upper bound on the number of plane combinations being tested, which is nice for gen11. Changes since v1: - Make 2 groups for overlay planes, and randomly put planes in either group. Changes since v2: - Include igt_rand.h to compiler error. Changes since v3: - Fix logical error resulting in crash. Changes since v4: - Fix logical error harder. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v3
2018-11-06tests/kms_properties: Fix compiler warningPetri Latvala
../tests/kms_properties.c:113:11: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Fixes: 7983e19ed62e ("tests/kms_properties: Add functional test for "max bpc" property") Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-11-05tests/tools_test: Find the tool binaries also from bindirPetri Latvala
Also print what directory gets used. v2: Use PATH_MAX Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2018-11-02tests/kms_properties: Add functional test for "max bpc" propertyRadhakrishna Sripada
Test the values in the range advertised by the "max bpc" property. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-11-02tests/kms_properties: Add additional prperty test infrastructureRadhakrishna Sripada
We currently test the existimg properties by setting them with default value. Add infrastructure to perform additional test on a desired property. v2: Fix the strcmp logic Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-10-31igt/gem_ppgtt: Unroll 32b memsetChris Wilson
Manually unroll the 32b memset in create_bo() to set a cacheline at a time, for a 2x speed improve of the whole test. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
2018-10-30igt/gem_tiled_fence_blits: Remember to mark up fence blitsChris Wilson
Older platforms require fence registers to perform blits, and so userspace is expected to mark up the objects to request fences be assigned. Fixes: ff2db94acb53 ("igt/gem_tiled_fence_blits: Remove libdrm_intel dependence") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108591 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-10-29tests/kms_content_protection: restore for real before failingDaniel Vetter
Nothing happens if you don't commit ... v2: rebased!? Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108550 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108549 Cc: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Ramalingam C <ramalingam.c@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-10-26kms_plane_alpha_blend: Start CRC after enabling display.Maarten Lankhorst
This will fix the -EIO from trying to start CRC on a disabled pipe. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108146 Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2018-10-26igt/gem_tiled_fence_blits: Remove libdrm_intel dependenceChris Wilson
Modernise the test to use igt's ioctl library as opposed to the antiquated libdrm_intel. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2018-10-25tests/kms_content_protection: Avoid dmesg falloutDaniel Vetter
Subsequent tests have become really unhappy. Paper over this for now. If this doesn't work, then I think we need to revert. v2: Use Ram's suggestion for comment. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108550 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108549 Cc: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Ramalingam C <ramalingam.c@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-10-25kms_content_protection: Add Content Protection testRamalingam C
Pretty simple test: - picks the hdcp capable output with suitable pipe and apply modeset. - checks the connected sink's hdcp capability through debugfs - apply a FB and wait for the flip completion. - clears the content protection property - verifies that it clears - sets the content protection property to desired - verifies that it transitions to enabled - incase of timeout three reattempts are implemented - clear the content protection property and modeset on the crtc Above steps are repeated on all HDCP capable connectors for both legacy and atomic subtests. v2: dynamic subtests are dropped [Daniel] v3: debugfs is used to detect the sink's hdcp capability [Daniel] data structure is made as global variable. v4: debugfs file from connector's debugfs dir is used [Daniel] v5: i915_debugfs_connector_dir() usage is modified [Chris] Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-10-24tests/kms_rotation_crc: Don't leave crc runningJuha-Pekka Heikkila
Leaving crc running nobody reading it may fail tests randomly with dmesg comment "*ERROR* Overflow of CRC buffer, userspace reads too slow." v2 (Maarten Lankhorst): Don't change clean up code but just add flag for starting crc and stop it at end of test. bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105748 Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-10-23tests: Introduce i915 directoryArkadiusz Hiler
We can already move all the tests with distinct prefixes: gem_, gen3_ and i915_. pm_ and drv_ tests will follow in batches, so we can do the adjustments in the reporting/filtering layer of the CI system. v2: Fix test-list.txt generation with meson v3: Fix docs build (Petri) Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Martin Peres <martin.peres@linux.intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Tested-by: Petri Latvala <petri.latvala@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-10-17tests/kms_selftest: Integrate kernel selftest test-drm_modesetDeepak Rawat
Call kernel selftest module test-drm_modeset for testing KMS. v2: - Add test alphabetically. - Add test to meson build. v3: Rename to kms_selftest. Signed-off-by: Deepak Rawat <drawat@vmware.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2018-10-16tests: Skip testdisplay when KMS is disabledJosé Roberto de Souza
This test should be skiped when KMS is disabled. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-10-16tests/kms_ccs: Avoid using plane sizes which exceed hw capabilityJuha-Pekka Heikkila
Max sprite plane width at 2000 to avoid going over hw watermark limits. v2: (Ville Syrjälä) comment on source added plane width limitation. bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105458 Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-10-16tests/kms_frontbuffer_tracking: Do not skip on 4k displays.Maarten Lankhorst
On 4k displays the horizontal resolution is 3840, which when you add 500 gives a stride of 17408 (3840 + 500 + 12 (tile alignment)). Decrease the extra offset to 248, so we end up at exactly 16384, which is the maximum supported stride for FBC. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-10-15tests/perf: adapt report timing delta acceptance for ICLLionel Landwerlin
The behavior of the OA unit is a tiny bit different on ICL. It appears to be a bit sloppier on the timings of its OA reports (missing the deadline by one period quite often). Let's add an acceptance delta. v2: Use larger acceptance delta only on ICL (José) Tweak indentation (José) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
2018-10-10tests: Add chamelium formats subtests to vc4 test listsMaxime Ripard
Now that we have support for the format sub-tests, enable them in the vc4 chamelium test lists. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Acked-by: Eric Anholt <eric@anholt.net>
2018-10-08chamelium: Add format subtestsMaxime Ripard
Now that we have everything in place, we can add the support for the subtests testing the output of planes setup with formats other than XR24. Since YUV will be a bit trickier to handle, start with various common RGB formats. Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
2018-10-08chamelium: Add format supportMaxime Ripard
In order to introduce CRC subtests for DRM formats, we need to take an intermediate step. The current code will generate a pattern in XR24, and will try to compare the CRC returned by the Chamelium for each frames. This CRC is computed on an XR24 format as well, so it works. However, as soon as we will start implementing other formats, if we just change the format of the pattern, the raw content of the buffer, and therefore the CRC's won't match anymore. In order to address that, we will need an intermediate step, and we will now still create the XR24 pattern, and compute its CRC, then convert it to the format we want to test, and finally retrieve the CRC from the Chamelium to compare it with the one from the XR24 pattern. The current code is converted to the new prototype that will take the fourcc of the format to test, even though we're still using XR24 everywhere for now. Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
2018-10-08chamelium: Change our pattern for a custom one if neededMaxime Ripard
The current pattern being used is the one generated through the igt_create_color_pattern_fb. However, in order to deal with multiple formats and the upsampling / downsampling issues that might arise from converting back and forth between formats, we will need to have a pattern with quite precise color values, and without any shades or gradient of colors. Let's create a function that will generate that pattern in the chamelium code if we need to convert the framebuffer to a smaller depth, and use the current pattern otherwise. The easiest way to do that will be to only use values that would have the same part on the common most significant bits (5, to deal with most formats) and have the same bit repeated on the least significant bits that are going to be dropped and / or padded when converting between formats. Pixman will fill the lowest bits with 1, and our hardware (this has been tested on a Raspberry Pi's VC4) is able to support that, so the easiest is to just use all 1's for our components in order to still be able to compute the CRCs. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2018-10-08chamelium: Split CRC test function in twoMaxime Ripard
We have two use cases in our current sub-test suites: the tests that test all the modes exposed by the driver, and the ones just picking up one. Instead of having to deal with this two cases in the same function as it is currently done, move the part that test a single mode into a separate function, and just call it for every mode that we want to test if needs be. This will result in a simpler function that will be easier to extend to support formats. Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
2018-10-08tests: kms_plane: Disable XBGR8888Maxime Ripard
For some reason, the XBGR8888 CRC check will fail in the kms_plane tests. Since that format will be enabled and checked by that test in the next commit, make sure we don't introduce a regression for no particular reason. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Martin Peres <martin.peres@linux.intel.com>