summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-07-23automake: Don't include Android Makefiles in the release tarballAndreas Boll1-2/+0
Currently only some Android Makefiles are included in the release tarball. To be more consistent one could either add the remaining files or don't ship Android Makefiles altogether. According to Emil the Android folk doesn't use our release tarballs. Thus it makes sense to remove those files from distribution which also means less work for maintenance in the future. Suggested-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-07-20tests/drmdevice: be move verbose when using open()Emil Velikov1-2/+7
Print out the node we're attempting to open and a message if/why we fail to do so. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-07-20tests/drmdevice: print out the full 'bus' and 'dev' stringsEmil Velikov1-2/+2
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-07-06Android: strip out header files from sources listRob Herring3-3/+3
AOSP master now errors if LOCAL_SRC_FILES contains headers, so filter out header files from the source lists. Signed-off-by: Rob Herring <robh@kernel.org>
2016-06-02amdgpu: fix fence status queryChristian König1-0/+6
Not initializing the ip instance leads to sporadic fails in the tests. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2016-05-13tests/amdgpu: adapt to new polaris10/11 uvd fwSonny Jiang1-6/+42
Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Sonny Jiang <sonny.jiang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-05-13tests/amdgpu: add interface to adapt firmware requirementLeo Liu1-2/+5
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-05-13tests/amdgpu: expand write/copy tests to computeAlex Deucher1-7/+34
Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-05-13tests/amdgpu: expand write/copy tests to computeAlex Deucher1-3/+6
Uses same packets as gfx. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-04-12tests/kms-steal-crtc: Use correct includesDaniel Vetter1-0/+1
It was relying on drm_fourcc.h providing <stdint.h>, which is silly. Fix it. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2016-04-07tests: Fix spelling mistakesEric Engestrom1-3/+3
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-03-28proptest: print signed values correctlyEmil Velikov1-0/+2
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-03-28modetest: print signed values correctlyGustavo Padovan1-0/+2
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-03-28tests: add virtio_gpu to the driver listGustavo Padovan1-0/+1
modetest was failing to work with driver because it wasn't in the module list. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-02-18amdgpu/tests: fix tests for asics with one VCE instanceSonny Jiang1-8/+12
Reviewed-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Sonny Jiang <sonny.jiang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: add a test for cp dma copyAlex Deucher1-0/+18
Use the CP to copy data between buffers Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: make amdgpu_command_submission_sdma_copy_linear genericAlex Deucher1-10/+17
So it can be shared for CP tests. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: add a test for cp dma fillAlex Deucher1-0/+18
Use the CP to fill to memory. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: make amdgpu_command_submission_sdma_const_fill genericAlex Deucher1-8/+16
So it can be shared for CP tests. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: add a test for cp write dataAlex Deucher1-0/+125
Use the CP to write data to memory. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: make amdgpu_command_submission_sdma_write_linear genericAlex Deucher1-9/+18
So it can be shared for CP tests. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-04tests/amdgpu: make amdgpu_sdma_test_exec_cs() generic (v2)Alex Deucher1-23/+28
Share with upcoming CP tests. v2: drop unnecessary forward declaration Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-02-03util: Add support for vc4.Eric Anholt1-0/+1
This lets allows using modetest for overlay plane testing. Signed-off-by: Eric Anholt <eric@anholt.net>
2016-01-27tests/kmstest: inverse the order of LDADD librariesEmil Velikov1-2/+2
The utils library depends on libdrm. Flip the order, orderwise we might error during link stage like below: CC main.o CCLD kmstest /usr/bin/ld: ../../tests/util/.libs/libutil.a(libutil_la-kms.o): undefined reference to symbol 'drmOpen' Reported-by: Tom Stellard <thomas.stellard@amd.com> Tested-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-26tests: Include poll.h rather than sys/poll.hKylie McClain2-2/+2
sys/poll.h is a non-standard location of the poll.h header, and is incorrect on non-glibc libcs. poll.h, however, is defined in SUS (v2) and is more portable. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93764 http://pubs.opengroup.org/onlinepubs/007908799/xsh/poll.h.html Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-26tests: Include sys/select.hKhem Raj4-0/+12
Used in compliance with POSIX 2001/2008 Fixes errors e.g. error: implicit declaration of function 'select' and helps with missing definitions of FD_* defines v2: conditionally include sys/select.h, include in every test where needed. Signed-off-by: Khem Raj <raj.khem@gmail.com> Reviewed-by: Thierry Reding <thierry.reding@gmail.com> (v1) Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-26tests: util: Fixup util_open() parameter orderThierry Reding3-3/+3
util_open() takes a device parameter, followed by a module parameter. The existing tests used the drmOpen() function, which uses a different ordering of the parameters, and the old ordering was accidentally kept during the conversion. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-26tests: add fsl-dcu-drm to modulesStefan Agner1-0/+1
Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-26kmstest: Use util_open()Stefan Agner2-17/+32
Use the new util_open() helper instead of open-coding the method for finding a usable device. While at it, make the command-line interface more consistent with that of modetest by adding the -D and -M options. Signed-off-by: Stefan Agner <stefan@agner.ch> v2: correctly use util_open() - swap device, module Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-20tests/amdgpu: add semaphore testChunming Zhou1-0/+133
Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2015-12-18tests: remove missleading commentsStefan Agner1-14/+1
The comment has been copied from modetest and is not applicable for vbltest. Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2015-12-18vbltest: Use util_open()Thierry Reding2-21/+20
Use the new util_open() helper instead of open-coding the method for finding a usable device. While at it, this adds -D and -M command-line options to vbltest to make its usage more consistent with its siblings modetest and proptest. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18proptest: Use util_open()Thierry Reding1-22/+38
Use the new util_open() helper instead of open-coding the method for finding a usable device. While at it, make the command-line interface more consistent with that of modetest by adding the -D and -M options. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18modetest: Use util_open()Thierry Reding1-24/+3
Use the new util_open() helper instead of open-coding the method for finding a usable device. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests: Add helper to open a device/moduleThierry Reding2-0/+57
The new function util_open() encapsulates the standard method employed by tests to open a device or module. There is a verbatim copy of this in almost all test programs, with slight variations in the list of modules. Moving this code into a common helper allows code reuse and makes tests more consistent. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests: kms: Implement universal planes testThierry Reding2-2/+365
This small program allows universal planes to be tested. Currently this isn't very flexible because it allows only the first plane of a given type to be tested on the first CRTC. However it should be simple to extend this with some additional command-line arguments. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests: kms: Implement CRTC stealing testThierry Reding2-0/+172
This test program sets a mode and framebuffer on a connector and cycles through all CRTCs, moving the connector to each of them in turn. This is useful to verify that CRTC stealing is properly handled in the DRM core and drivers. Signed-off-by: Thierry Reding <treding@nvidia.com>
2015-12-18tests: Add libkms-test libraryThierry Reding8-1/+794
This library contains abstractions for KMS that help remove the need for a lot of boilerplate in KMS test programs. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18proptest: Add Android supportThierry Reding3-2/+19
Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests: Move name tables to libutilThierry Reding5-101/+165
These tables are duplicated in several places, so move them into libutil so that they can be shared. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests: Split helpers into libraryThierry Reding21-990/+1221
Some of the helpers, such as the pattern drawing helpers or the format lookup helpers, have potential to be reused. Move them into a separate library to make it easier to share them. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests/exynos: add test for g2d_moveTobias Jakobi1-0/+132
To check if g2d_move() works properly we create a small checkerboard pattern in the center of the screen and then shift this pattern around with g2d_move(). The pattern should be properly preserved by the operation (but not the surrounding area). Tested-by: Hyungwon Hwang <human.hwang@samsung.com> Reviewed-by: Hyungwon Hwang <human.hwang@samsung.com> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> [Emil Velikov: add g2d_move to the symbol check] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-12-18tests/exynos: use XRGB8888 for framebufferTobias Jakobi1-1/+1
This matches the G2D color mode that is used in the entire code. The previous (incorrect) RGBA8888 would only work since the Exynos mixer did its configuration based on the bpp, and not based on the actual pixelformat. Reviewed-by: Hyungwon Hwang <human.hwang@samsung.com> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
2015-12-18tests/exynos: add fimg2d event testTobias Jakobi2-2/+335
This tests async processing of G2D jobs. A separate thread is spawned to monitor the DRM fd for events and check whether a G2D job was completed. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
2015-12-18tests/exynos: add fimg2d performance analysisTobias Jakobi2-2/+344
Currently only fast solid color clear performance is measured. A large buffer is allocated and solid color clear operations are executed on it with randomly chosen properties (position and size of the region, clear color). Execution time is measured and output together with the amount of pixels processed. The 'simple' variant only executes one G2D command buffer at a time, while the 'multi' variant executes multiple ones. This can be used to measure setup/exec overhead. The test also serves a stability check. If clocks/voltages are too high or low respectively, the test quickly reveals this. Tested-by: Hyungwon Hwang <human.hwang@samsung.com> Reviewed-by: Hyungwon Hwang <human.hwang@samsung.com> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
2015-09-21tests/drmdevice: add drm{Get,Free}Device() exampleEmil Velikov1-2/+21
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
2015-09-21tests/drmdevice: add new 'test'Emil Velikov2-0/+94
A simple example of how to use/what is the new drm{Get,Free}Devices() interface. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
2015-09-12Include <alloca.h> when needed before calling allocaAlan Coopersmith1-0/+3
Fixes "error: implicit declaration of function 'alloca'" failures when building on Solaris Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-09-09tests: Add -lm to LDADD for dristatMichel Dänzer1-0/+2
Fixes build failure due to unresolved log2. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-09-04tests/amdgpu: ensure tests work by using c99 initializersEmil Velikov1-8/+24
In the latest version of CUnit the fourth parameter of the CU_SuiteInfo struct is pSetUpFunc rather than *pTests. Seems like the CUnit ABI broke at some point, so let's the the robust thing and use c99 designated initializers to correctly populate the struct(s). Cc: Leo Liu <leo.liu@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>