mesa-drm/tests
Aaron Liu 38c44cccdc tests/amdgpu: add atomic dma command to verify the secure buffer (v2)
DMA's atomic behavir is unlike GFX,If the comparing data is not
equal to destination data,
For GFX, loop again till gfx timeout(system hang).
For DMA, loop again till timer expired and then send interrupt.
So testcase can't use interrupt mechanism.
We take another way to verify. When the comparing data is not
equal to destination data, overwrite the source data to the destination
buffer. Otherwise, original destination data unchanged.
So if the bo_cpu data is overwritten, the result is passed.

Steps:
1. use linear write packet to write 0xdeadbeaf to secure buffer,
2. use atmoic packet and ATOMIC_CMPSWAP_RTN_32 opcode to compare
the cmp_data(0xdeadbeaf) to the written data which has been encrypted.

v2: add the case of (dest_data != cmp_data).

Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-10-15 13:46:34 -04:00
..
amdgpu tests/amdgpu: add atomic dma command to verify the secure buffer (v2) 2020-10-15 13:46:34 -04:00
etnaviv Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
exynos Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
kms tests: Only copy con->modes[0] if it exists 2020-02-27 12:21:09 +01:00
kmstest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
modeprint Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
modetest modetest: Add a new "-r" option to set a default mode 2020-05-19 21:09:35 +01:00
nouveau tests/nouveau/threaded: adapt ioctl signature for FreeBSD 2020-04-21 19:26:54 +02:00
proptest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
radeon Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
tegra Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
ttmtest fix various typos 2019-04-17 18:23:25 +01:00
util Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
vbltest meson: always define whether headers exist 2020-01-23 17:00:12 +00:00
Android.mk android: simplify the including rule of subdirs 2015-03-20 17:07:21 +00:00
drmdevice.c tests: skip drmdevice test if the machine doesn't have any drm device 2018-11-11 18:39:57 +00:00
drmsl.c drmsltest: Check expected neighbours 2017-08-21 13:05:13 +01:00
hash.c tests/hash: return non-zero on failure 2015-04-05 15:33:06 +01:00
meson.build tests: install drmdevice 2020-04-21 18:50:23 +01:00