summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests/amdgpu/vcn: fix drm test failureRuijing Dong2023-05-111-19/+28
| | | | | | | | | 1. fixed an issue that drm test vcn3/4 encoding test could cause VCN engine stuck. 2. adding missing or errous encoding ib package members. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
* tests/amdgpu/vcn: change vbv_buffer name to inputRuijing Dong2023-05-111-11/+11
| | | | | | | | It is input buffer instead of vbv_buffer. Correct its name. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
* tests/amdgpu: Allow to exclude a test or a suite of testsLuben Tuikov2023-03-241-35/+152
| | | | | | | | | | | | | | | | Add the command line argument -e s[.t] to exclude (disable) suite s, or to exclude suite s test t. This is useful for instance to run the Basic Suite, but disable the GPU reset test, on the command line, like this: amdgpu_tests -s 1 -e 1.13 This option can be specified more than once on the command line, in order to exclude more than one suite and/or suite and test combination from being run. Cc: Alex Deucher <Alexander.Deucher@amd.com> Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* tests/amdgpu: Add all 9 options to the help outputLuben Tuikov2023-03-241-8/+10
| | | | | | | | | | Add -s and -t to the help output, as well as sort the options output alphabetically. v1: Fix a spelling in the subject of this commit. Cc: Alex Deucher <Alexander.Deucher@amd.com> Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* tests/amdgpu: Fix Usage stringLuben Tuikov2023-03-241-2/+2
| | | | | | | | Fix the Usage: string on -h (help) in amdgpu_tests.c, so brackets match, and remove mismatched angle brackets. Cc: Alex Deucher <Alexander.Deucher@amd.com> Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* test/amdgpu/hotunplug: add apu check for hotplug testjie zhang2023-03-171-0/+4
| | | | | | | For apu, it is integrated with cpu. So hotplug test should be unnecessary for it. Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com> Reviewed-by: Flora Cui <flora.cui@amd.com>
* tests/util: Add vkms driverYi Xie2023-02-101-0/+1
| | | | | | | | Add an entry for the "vkms" driver, so that the test utilities work with the vkms driver without passing the -M argument. Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Yi Xie <yixie@google.com>
* tests/amdgpu/jpeg: enable unit test for jpeg 4Saleemkhan Jamadar2022-11-111-1/+1
| | | | | | | Enable decode unit test for jpeg4. Signed-off-by: Saleemkhan Jamadar <saleemkhan.jamadar@amd.com> Reviewed-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
* tests/amdgpu: use AMDGPU_TIMEOUT_INFINITE to query fenceLang Yu2022-11-091-2/+2
| | | | | | We need to wait longer when running on emulator. Signed-off-by: Lang Yu <Lang.Yu@amd.com>
* modetest: use dumb buffer helpersSimon Ser2022-11-021-21/+7
| | | | Signed-off-by: Simon Ser <contact@emersion.fr>
* modetest: use sized integers in struct boSimon Ser2022-11-021-3/+3
| | | | | | Use the same size types as the kernel. Signed-off-by: Simon Ser <contact@emersion.fr>
* modetest: drop unused offset field in struct boSimon Ser2022-11-021-1/+0
| | | | Signed-off-by: Simon Ser <contact@emersion.fr>
* tests/util: add imx-lcdif driverMarco Felsch2022-10-061-0/+1
| | | | | | | | This makes the test utilities work with the i.MX LCDIFv3 driver without the necessity of using the -M argument. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
* tests/modetest: use drmGetFormatName()Simon Ser2022-08-311-5/+3
| | | | | | Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-by: Eric Engestrom <eric@igalia.com>
* Remove unused 3rd parameter to open(2)Matthieu Herrb2022-08-231-1/+1
| | | | | | The 3rd parameter is only used with the O_CREAT flag Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
* tests/amdgpu: add sdma slow copy linear hang testLikun Gao2022-08-152-11/+53
| | | | | | | Issue slow copy linear for sdma to trigger SDMA hang test. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
* tests/amdgpu: add sdma corrupted header hang testLikun Gao2022-08-152-0/+127
| | | | | | | Issue corrupted header for sdma to trigger SDMA hang test. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
* tests/amdgpu: add dispatch/draw test for gfx11Flora Cui2022-08-153-2/+764
| | | | | Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
* tests/amdgpu: refactor dispatch/draw testFlora Cui2022-08-159-1852/+2393
| | | | | Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
* tests/amdgpu: skip gfx CE subtest in gfx11Hawking Zhang2022-08-151-0/+21
| | | | | | | CE is not available in gfx11 Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Likun Gao <Likun.Gao@amd.com>
* tests/util: Add simpledrm driverEric Curtin2022-07-221-0/+1
| | | | | | | | Add an entry for the "simpledrm" driver, so that the test utilities work with the simpledrm driver without passing the -M argument. Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Eric Curtin <ecurtin@redhat.com>
* tests/amdgpu/vcn: add unified queue support in vcn4Ruijing Dong2022-07-201-40/+153
| | | | | | | add unified queue headers on the existing tests. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
* tests/amdgpu: enable vcn swRing test for version 4 and laterJames Zhu2022-07-201-28/+174
| | | | | | | | Enable vcn decode software ring test for version 4 and later. Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
* tests: use drmModeGetConnectorTypeNameSimon Ser2022-07-025-31/+3
| | | | | | | Drop util_lookup_connector_type_name and use drmModeGetConnectorTypeName instead. Signed-off-by: Simon Ser <contact@emersion.fr>
* tests/amdgpu/vcn:vcn encoder unit testSaleemkhan Jamadar2022-06-112-13/+938
| | | | | | | | Add support for vcn encoder unit test Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Signed-off-by: Saleemkhan Jamadar <saleemkhan.jamadar@amd.com> Signed-off-by: Satyajit Sahu <satyajit.sahu@amd.com>
* tests/amdgpu: fix decode test failure on VCN2.5Sathishkumar S2022-06-111-1/+1
| | | | | | | For VCN2.5 wrong index was chosen, fix it. Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
* tests/amdgpu: use appropriate ring for different asicsGuchun Chen2022-05-261-2/+11
| | | | | | Use compute ring in case of no gfx ring. Signed-off-by: Guchun Chen <guchun.chen@amd.com>
* tests/modeprint: fix argument typeEleni Maria Stea2022-05-091-1/+1
| | | | | | | | Replaced the type PRId64 with PRIu64 in a printf as the argument was unsigned to fix the related compiler warning. Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com> Reviewed-by: Simon Ser <contact@emersion.fr>
* modeprint, modetest, proptest: cast __u64 to uint64_tEleni Maria Stea2022-05-093-3/+3
| | | | | | | | | | | | | | It seems that __u64 values are defined differently across systems. In glibc it's defined as unsigned long, in Linux kernel headers (int-ll64.h) as unsigned long long, and on FreeBSD as uint64_t so it matches glibc. A temporal solution is to cast all __u64 values to uint64_t to avoid warnings on Linux, but ideally we'd like a better fix in the future. See also: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/212 for discussion. Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com>
* libkms: Remove libkms completelyDaniel Stone2022-04-1514-1483/+9
| | | | | | | | | | | libkms was a very early attempt at a KMS management library, that only got as far as handling requests to create buffers. It has since been superseded by GBM in doing this, which everyone uses, unlike libkms which no-one uses. Remove it from the tree to avoid any confusion. Signed-off-by: Daniel Stone <daniels@collabora.com>
* tests/amdgpu: add dispatch test for gfx10Flora Cui2022-03-301-50/+163
| | | | Signed-off-by: Flora Cui <flora.cui@amd.com>
* tests/amdgpu: add draw test for gfx10Flora Cui2022-03-303-138/+451
| | | | Signed-off-by: Flora Cui <flora.cui@amd.com>
* tests/amdgpu: Add test suite CP DMALu Jiacheng2022-03-094-1/+561
|
* test/amdgpu: only disable deadlock tests on asics without GPU resetAlex Deucher2022-03-021-4/+6
| | | | | | | | Switch the logic to only disable the tests for asics which don't have GPU reset support. This way we don't need to update it every time we add a new asic which does support it. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu/hotunplu: Enable hotunplug tests.Andrey Grodzovsky2022-03-011-6/+4
| | | | | | | | I tested with latest amd-staging-drm-next and after minor fix for me all the testys pass. I bumped libdrm minor version for this. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
* tests: tegra: Add VIC flip testThierry Reding2022-02-232-0/+342
| | | | | | | | This test will attempt to use the VIC to blit one surface to another and perform a vertical flip. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC blit testThierry Reding2022-02-232-0/+342
| | | | | | | | This test will attempt to use the VIC to blit from one surface to another. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC clear testThierry Reding2022-02-232-0/+182
| | | | | | | This test will attempt to use VIC to clear a surface. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC 4.2 supportThierry Reding2022-02-234-0/+948
| | | | | | | | | | The Video Image Composer (VIC) 4.2 can be found on NVIDIA Tegra194 SoCs. It uses a different class (C5B6) that is slightly incompatible with the class found on earlier generations, although it is backwards compatible with the class implemented on Tegra186 (B1B6). Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC 4.1 supportThierry Reding2022-02-234-0/+723
| | | | | | | | | The Video Image Composer (VIC) 4.1 can be found on NVIDIA Tegra186 SoCs. It uses a different class (B1B6) that is slightly incompatible with the class found on earlier generations. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC 4.0 supportThierry Reding2022-02-234-0/+632
| | | | | | | | | The Video Image Composer (VIC) 4.0 can be found on NVIDIA Tegra210 SoCs. It uses a different class (B0B6) that is slightly incompatible with the class found on earlier generations. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC 3.0 supportThierry Reding2022-02-234-2/+905
| | | | | | | The Video Image Composer (VIC) 3.0 can be found on NVIDIA Tegra124 SoCs. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add VIC supportThierry Reding2022-02-234-0/+376
| | | | | | | | | | Implement a small abstraction interface to allow different versions of VIC to be used transparently. An implementation will be chosen based on the VIC version number reported by the DRM_TEGRA_IOCTL_OPEN_CHANNEL IOCTL. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add syncpoint timeout testThierry Reding2022-02-232-0/+172
| | | | | | | This test can be used to purposefully trigger a job timeout. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add syncpt-wait testThierry Reding2022-02-232-0/+160
| | | | | | | | | This is a very simple sanity test to check whether or not a syncpt can be incremented by a host1x client. This uses gr2d on Tegra20 through Tegra114 and VIC on Tegra124 and later. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add gr2d-fill testThierry Reding2022-02-235-0/+368
| | | | | | | | This test uses the IOCTLs for job submission and fences to fill a sub- region of the screen to a specific color using gr2d. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tests: tegra: Add helper library for testsThierry Reding2022-02-233-0/+327
| | | | | | | | This library provides helpers for common functionality needed by test programs. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tegra: Install tegra-openclose testThierry Reding2022-02-232-3/+6
| | | | | | | | Allow this simple test to be installed so that it can easily be run on a target device. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tegra: Make API more consistentThierry Reding2022-02-231-1/+1
| | | | | | | | | Most functions in libdrm_tegra take as first parameter the object that they operate on. Make the device and buffer object creation functions follow the same scheme. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* tegra: Indent according to .editorconfigThierry Reding2022-02-231-26/+26
| | | | | | | | Reindent the sources according to the settings found in the newly added .editorconfig. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>