aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* always define HAVE_CAIROEric Engestrom2018-01-291-2/+2
| | | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
* tests/etnaviv: drop unused `return 0`Eric Engestrom2018-01-291-3/+1
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/util: drop unused parametersEric Engestrom2018-01-291-3/+3
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/util: fix signed/unsigned comparisonsEric Engestrom2018-01-291-3/+2
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/amdgpu: drop unused variablesEric Engestrom2018-01-297-14/+7
| | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/amdgpu: add parentheses to make operation priority explicitEric Engestrom2018-01-291-1/+1
| | | | | | | | While at it, align with the other half on the next line. Cc: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* remove unnecessary double-semicolonEric Engestrom2018-01-292-2/+2
| | | | | | Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* amdgpu: Disable VM test suite by default for SI ASICsMichel Dänzer2018-01-263-1/+26
| | | | | | Hangs my Cape Verde. Acked-by: Christian König <christian.koenig@amd.com>
* amdgpu: Disable deadlock test suite by default for SI ASICsMichel Dänzer2018-01-261-1/+2
| | | | | | Hangs my Cape Verde. Acked-by: Christian König <christian.koenig@amd.com>
* amdgpu: Fix segfault in deadlock test.Andrey Grodzovsky2018-01-261-2/+2
| | | | | | | | If amdgpu_cs_query_fence_status terminates prematurely the BO sometimes is unmapped before helper thread writes a vlaue into it causing a segfault. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
* amdgpu: Update deadlock test to not assert on ECANCELEDAndrey Grodzovsky2018-01-261-2/+2
| | | | | | | | Kernel will abort jobs for guilty (causing GPU hang) context with -ECANCELED don't assert if that the case. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* modetest: Fix to check return value of asprintf()Seung-Woo Kim2018-01-251-1/+4
| | | | | | | | There is warning about ignoring return value of 'asprintf'. Fix to check return value of asprintf(). Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
* amdgpu: Symlink .editorconfig to tests/amdgpuMichel Dänzer2018-01-181-0/+1
| | | | | | | In order to use consistent editorconfig settings in both amdgpu directories. Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Don't dereference device_handle after amdgpu_device_deinitializeMichel Dänzer2018-01-161-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Fixes use after free: ==2537== Invalid read of size 4 ==2537== at 0x1162C9: suite_deadlock_tests_enable (deadlock_tests.c:101) ==2537== by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421) ==2537== by 0x10B157: main (amdgpu_test.c:560) ==2537== Address 0x5e44f24 is 452 bytes inside a block of size 1,016 free'd ==2537== at 0x4C2BE1B: free (vg_replace_malloc.c:530) ==2537== by 0x504CD8B: amdgpu_device_reference (amdgpu_device.c:164) ==2537== by 0x504CD8B: amdgpu_device_deinitialize (amdgpu_device.c:307) ==2537== by 0x1162BB: suite_deadlock_tests_enable (deadlock_tests.c:97) ==2537== by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421) ==2537== by 0x10B157: main (amdgpu_test.c:560) ==2537== Block was alloc'd at ==2537== at 0x4C2CC05: calloc (vg_replace_malloc.c:711) ==2537== by 0x504CA5E: amdgpu_device_initialize (amdgpu_device.c:212) ==2537== by 0x116298: suite_deadlock_tests_enable (deadlock_tests.c:93) ==2537== by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421) ==2537== by 0x10B157: main (amdgpu_test.c:560) Reviewed-by: Christian König <christian.koenig@amd.com>
* Add meson build systemDylan Baker2018-01-1214-0/+524
| | | | | | | | | | This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-and-tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
* tests/amdgpu: execute copy linear on all the available ringsHawking Zhang2018-01-121-96/+104
| | | | | | | Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: execute const fill on all the available ringsHawking Zhang2018-01-121-70/+77
| | | | | | | Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: execute write linear on all the available ringsHawking Zhang2018-01-121-53/+58
| | | | | | | Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* test/amdgpu: fix compiler warningsChristian König2018-01-091-4/+4
| | | | | | | SWAP_32() should mask first and then shift. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* tests/amdgpu: Add return CUE_SUCCESS to suite_vcn_tests_clean.Andrey Grodzovsky2017-12-151-0/+2
| | | | | | | | fixes: 806d0803600000faecb4025d8e9c7490cb097c25 (amdgpu: Use new suite/test disabling functionality.) bug: https://bugs.freedesktop.org/show_bug.cgi?id=104280 Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Remove dummy CU_ASSERT_EQUAL.Andrey Grodzovsky2017-12-121-2/+0
| | | | | | | Fixes test failure on rhel. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Qiang Yu <Qiang.Yu@amd.com>
* amdgpu: Add explicit dependency test.Andrey Grodzovsky2017-11-302-0/+282
| | | | | | | | | | | | | | | The test is as following: 1) Create context A & B 2) Send a command submission using context A which fires up a compute shader. 3) The shader wait a bit and then write a value to a memory location. 4) Send a command submission using context B which writes another value to the same memory location, but having an explicit dependency on the first command submission. 5) Wait with the CPU for both submissions to finish and inspect the written value. Test passes if the value seen in the memory location after both submissions is from command B. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* amdgpu: Dynamicly disable BO suite "Metadata" test.Andrey Grodzovsky2017-11-292-2/+3
| | | | | | | Disable the test instead of doing #ifdef 0 Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Switch amdgpu CS tests enabling to the new way.Andrey Grodzovsky2017-11-293-33/+38
| | | | | Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Disable deadlock test suite for Vega 10Andrey Grodzovsky2017-11-153-1/+25
| | | | | | | The test stalls the CP, until RCA is done the test is disabled to not disrupt regression testing. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
* amdgpu: Add memory over allocation test.Andrey Grodzovsky2017-11-141-0/+24
| | | | | | | | | | | | Allocates 1 TB of memory. Test is disabled by default since it's triggers OOM killer. v2: FIx the test to only alloc the BO and assert if return value not equal to -ENOMEM and remove test disable on start. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Move memory alloc tests in bo suite.Andrey Grodzovsky2017-11-132-49/+49
| | | | | Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Use new suite/test disabling functionality.Andrey Grodzovsky2017-11-136-134/+123
| | | | | | | | Switch from disabling tests during run to using the new disable API. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Add functions to disable suites and tests.Andrey Grodzovsky2017-11-132-18/+170
| | | | | | | | | | Suits are diasbled based on hooks they provide (e.g incompatible ASIC or missing blocks). Single tests are diasbled explicitly. Suit or test can be forced to execute even if disabled by adding -f flag after specifying suit [test] ids. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* exynos: change the license to X11/MITInki Dae2017-11-073-24/+51
| | | | | | | | | | | | | | | | | | | | | | Change GPL license of Exynos related code to X11/MIT. I'd like to keep a consistent license across all Exynos code because License checker notices two more licenses exist in libdrm. For the license change I need to get your agree - all committers. So please give me Acked-by if you agree with me. Signed-off-by: Inki Dae <inki.dae@samsung.com> Acked-by: Hyungwon Hwang <human.hwang@samsung.com> Acked-by: SooChan Lim <sc1.lim@samsung.com> Acked-by: Sangjin LEE <lsj119@samsung.com> Acked-by: Boram Park <boram1288.park@samsung.com> Acked-by: Seung-Woo Kim <sw0312.kim@samsung.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Acked-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Acked-by: Jan Vesely <jan.vesely@rutgers.edu>
* amdgpu: Fix wrappers for AMDGPU_VM IOCTL.Andrey Grodzovsky2017-11-031-2/+2
| | | | | | | | | Rmove amdgpu_context_handle from the interface and use amdgpu_device_handle instead. Uupdate VMID reservation test accordingly. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: Add VMID reservation per GPU context test.Andrey Grodzovsky2017-10-274-1/+175
| | | | | | | | | | | The test will Reserve a VMID, submit a command and unreserve the VMID. v2: Wrappers names were changed. Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* modetest: Allow full testing of primary planesVille Syrjälä2017-10-191-1/+2
| | | | | | | | Allow the user to override the default configuration set by setcrtc for the primary plane. On some hardware primary planes can be freely positioned/sized, and it'd be nice if we can actually test that feature. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
* modetest: Decode IN_FORMATS plane blob propertyKristian H. Kristensen2017-10-181-0/+86
| | | | | | | This teaches modetest about the new IN_FORMATS blob and decodes the blob to show supported formats and modifiers. Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
* tests/amdgpu: fix uvd enc data corruption issueJames Zhu2017-10-062-3/+5
| | | | | | | | | | In uvd encode parameter package, parameters input_pic_luma_pitch and input_pic_chroma_pitch should be picture width align with hardware alignment. The hardware alignment is 16 for amdgpu family earlier than AMDGPU_FAMILY_AI, and 256 for later than and including AMDGPU_FAMILY_AI. Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
* tests/amdgpu: add new uvd enc support checkJames Zhu2017-10-061-6/+21
| | | | | | | | Query hardware IP information to find out if there are uvd encode rings ready for use in kernel driver. Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
* amdgpu: Add deadlock detection test suit.Andrey Grodzovsky2017-10-044-2/+270
| | | | | | | | | | | | | | | | | | | Adding initial tests for locks detection when SW scheduler FIFO is full. The test works by submitting a batch of identical commands which make the CP stall waiting for condition to become true. The condition is later satisfied form a helper thread. Other events that happen during this time might create deadlock situations. One such example is GPU reset triggered by this stall when amdgpu_lockup_timeout != 0. v2: Increase the delay from 2 to 100 ms. Comment out the compute test until it's working. Typos fix. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: make userptr unit test more interestingChristian König2017-10-041-0/+8
| | | | | | | Do a fork() to force some MMU callbacks. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: add missing header to SOURCESAlex Deucher2017-08-311-1/+2
| | | | | | | | | Fixes the tarball generation. fixes: 9d133dd08720d80dfc8ce098bf0972 (tests/amdgpu: add uvd encode unit tests) bug: https://bugs.freedesktop.org/show_bug.cgi?id=102391 Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* drmsltest: Check expected neighboursJan Vesely2017-08-211-8/+20
| | | | | | Fixes: 7d8c9464081634f053e16e5eac9655a12fae1dc4 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* tests/amdgpu: add uvd encode unit testsBoyuan Zhang2017-08-166-1/+1050
| | | | | | Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Alex Deucher <alexander.deucher at amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* test/amdgpu: fix test failure for SIFlora Cui2017-08-043-124/+228
| | | | | | Signed-off-by: Flora Cui <Flora.Cui@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: bypass VCE tests on ravenHawking Zhang2017-08-041-0/+17
| | | | | | | | raven doesn't support VCE Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Xiaojie Yuan <Xiaojie.Yuan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: bypass UVD CS tests on ravenHawking Zhang2017-08-041-0/+17
| | | | | | | | raven doesn't support UVD decode Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Xiaojie Yuan <Xiaojie.Yuan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: s/uvd_messages.h/decode_messages.h/ in Makefile.amMichel Dänzer2017-06-121-1/+1
| | | | | | | | | Fixes make distcheck with amdgpu enabled. Fixes: ec65d1980912 ("tests/amdgpu: rename uvd messages to decode messages") Trivial.
* tests/amdgpu: Fix device_id optionTom St Denis2017-06-061-9/+9
| | | | | | | | | | The device_id option [-d] was badly broken. This commit fixes the width (was 8 is now 16 bits) as well as enables searches without specifying a bus id. It was also comparing "dev" from the bus field which is not the PCI device id. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
* tests/amdgpu: implement vcn dec unit testsLeo Liu2017-06-052-3/+166
| | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* tests/amdgpu: add vcn tests support and setsLeo Liu2017-06-054-1/+300
| | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* tests/amdgpu: move decode sum to commonLeo Liu2017-06-052-1/+3
| | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
* tests/amdgpu: separate decode messagesLeo Liu2017-06-052-1/+5
| | | | | | | AVC decode messages will be common with VCN decode Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>