summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-08-18build: make tests optionalSimon Zeni2-1/+10
Building the project as a meson subproject, meson inherits the warning level from the parent project. Making the tests optional bypasses that issue and reduces build time. Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca> Reviewed-by: Simon Ser <contact@emersion.fr>
2022-08-15tests/amdgpu: add sdma slow copy linear hang testLikun Gao2-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>
2022-08-15tests/amdgpu: add sdma corrupted header hang testLikun Gao2-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>
2022-08-15tests/amdgpu: add dispatch/draw test for gfx11Flora Cui3-2/+764
Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
2022-08-15tests/amdgpu: refactor dispatch/draw testFlora Cui9-1852/+2393
Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
2022-08-15tests/amdgpu: skip gfx CE subtest in gfx11Hawking Zhang1-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>
2022-08-03lib: sync i915_pciids.h with kernelMatt Roper1-14/+71
This synchronizes with kernel commit 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs") to bring in the missing PCI IDs for several recent platforms. These days adding PCI IDs to libdrm doesn't really matter for real-world system usage. However there are still a few driver testing situations where they're needed (such as the IGT dma-buf tests that still rely on libdrm's bufmgr code). At some point we should probably break that final IGT dependency on libdrm so that these PCI ID resyncs won't be necessary anymore, but that hasn't happened yet. References: https://gitlab.freedesktop.org/drm/intel/-/issues/5416 Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
2022-07-25build: set c_std to c11Stephan Lachnit1-1/+1
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
2022-07-22tests/util: Add simpledrm driverEric Curtin1-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>
2022-07-20tests/amdgpu/vcn: add unified queue support in vcn4Ruijing Dong1-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>
2022-07-20tests/amdgpu/vcn: align comments for AMDGPU_HW_IP_VCN_ENCRuijing Dong1-0/+4
From VCN4, AMDGPU_HW_IP_VCN_ENC is re-used to support both encoding and decoding jobs. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
2022-07-20tests/amdgpu: enable vcn swRing test for version 4 and laterJames Zhu1-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>
2022-07-18amdgpu: update marketing names for 22.20Alex Deucher1-0/+2
Add new marketing names. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-07-06build: bump version to 2.4.112libdrm-2.4.112Simon Ser1-1/+1
Signed-off-by: Simon Ser <contact@emersion.fr>
2022-07-02xf86drmMode: introduce drmModeConnectorGetPossibleCrtcsSimon Ser3-0/+37
Nowadays, users don't really care about encoders except for retrieving the list of CRTCs compatible with a connector. Introduce a new function so that users no longer need to deal with encoders. This is a re-do of [1], but with a slightly different API. Signed-off-by: Simon Ser <contact@emersion.fr> [1]: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/102
2022-07-02tests: use drmModeGetConnectorTypeNameSimon Ser5-31/+3
Drop util_lookup_connector_type_name and use drmModeGetConnectorTypeName instead. Signed-off-by: Simon Ser <contact@emersion.fr>
2022-07-02xf86drmMode: introduce drmModeGetConnectorTypeNameSimon Ser3-0/+63
User-space often needs to print the name of a connector type. When a new connector type is added, all user-space programs need to be updated to support the new connector type. Expose a function to get a connector type name in libdrm. The names are taken from the kernel [1]. [1]: https://cgit.freedesktop.org/drm/drm/tree/drivers/gpu/drm/drm_connector.c?h=4fc8cb47fcfdc93e274a1291757e478df4f9c39b#n83 Signed-off-by: Simon Ser <contact@emersion.fr>
2022-06-11tests/amdgpu/vcn:vcn encoder unit testSaleemkhan Jamadar2-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>
2022-06-11tests/amdgpu: fix decode test failure on VCN2.5Sathishkumar S1-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>
2022-06-09xf86drmMode: constify drmModeAtomicReq functionsSimon Ser2-8/+8
This acts as an additional ABI guarantee, and improves documentation for users. Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2022-06-08gen_table_fourcc: strip _MODIFIER suffix for INVALIDSimon Ser1-1/+1
This is the only modifier printed with a "_MODIFIER" suffix. It looks inconsistent when callers already print this word (e.g. "modifier: INVALID_MODIFIER"). Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Marius Vlad <marius.vlad@collabora.com>
2022-06-03build: bump version to 2.4.111libdrm-2.4.111Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2022-05-26tests/amdgpu: use appropriate ring for different asicsGuchun Chen1-2/+11
Use compute ring in case of no gfx ring. Signed-off-by: Guchun Chen <guchun.chen@amd.com>
2022-05-13amdgpu: add marketing names from 22.10Alex Deucher1-1/+12
Add new marketing names Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-05-09tests/modeprint: fix argument typeEleni Maria Stea1-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>
2022-05-09modeprint, modetest, proptest: cast __u64 to uint64_tEleni Maria Stea3-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>
2022-05-09xf86drm.c: fix C99 warningEleni Maria Stea1-1/+2
Moved declaration to the top to resolve C99 compliance warning. Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com> Reviewed-by: Simon Ser <contact@emersion.fr>
2022-05-03nouveau: add ioctl wrapper to check for dead channelsKarol Herbst3-0/+21
v2: explicitly set nr_push to 0 as well Signed-off-by: Karol Herbst <kherbst@redhat.com>
2022-04-21intel: Add support for RPLPTejas Upadhyay2-1/+11
Add RPLP platform support and PCIIDs Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com> Signed-off-by: Raviteja Goud Talla <ravitejax.goud.talla@intel.com>
2022-04-19man: Add formatting to drmModeGetConnector referenceMatt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-04-19man: Fix some typosMatt Turner2-2/+2
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-04-15libkms: Remove libkms completelyDaniel Stone32-3462/+10
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>
2022-03-30tests/amdgpu: add dispatch test for gfx10Flora Cui1-50/+163
Signed-off-by: Flora Cui <flora.cui@amd.com>
2022-03-30tests/amdgpu: add draw test for gfx10Flora Cui3-138/+451
Signed-off-by: Flora Cui <flora.cui@amd.com>
2022-03-09tests/amdgpu: Add test suite CP DMALu Jiacheng4-1/+561
2022-03-02amdgpu: add marketing names from 21.50Alex Deucher1-0/+6
Add new marketing names Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-03-02test/amdgpu: only disable deadlock tests on asics without GPU resetAlex Deucher1-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>
2022-03-01tests/amdgpu/hotunplu: Enable hotunplug tests.Andrey Grodzovsky1-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>
2022-02-23tests: tegra: Add VIC flip testThierry Reding2-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>
2022-02-23tests: tegra: Add VIC blit testThierry Reding2-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>
2022-02-23tests: tegra: Add VIC clear testThierry Reding2-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>
2022-02-23tests: tegra: Add VIC 4.2 supportThierry Reding4-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>
2022-02-23tests: tegra: Add VIC 4.1 supportThierry Reding4-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>
2022-02-23tests: tegra: Add VIC 4.0 supportThierry Reding4-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>
2022-02-23tests: tegra: Add VIC 3.0 supportThierry Reding5-2/+911
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>
2022-02-23tests: tegra: Add VIC supportThierry Reding4-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>
2022-02-23tests: tegra: Add syncpoint timeout testThierry Reding2-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>
2022-02-23tests: tegra: Add syncpt-wait testThierry Reding2-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>
2022-02-23tests: tegra: Add gr2d-fill testThierry Reding5-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>
2022-02-23tests: tegra: Add helper library for testsThierry Reding3-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>