tests/amdgpu: Secure bounce test (v4)
authorLuben Tuikov <luben.tuikov@amd.com>
Thu, 6 Feb 2020 00:40:46 +0000 (19:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Oct 2020 17:47:00 +0000 (13:47 -0400)
commit253e0383a38b689bd5170862dfec1e8ab83639f4
tree799c4317be4305481d04856ff749a23e78ae32eb
parent18a0291273ad8eca67830a941748fd511fe484be
tests/amdgpu: Secure bounce test (v4)

Implement secure bounce test. Steps implemented
as outlined by Christian K.

v2: Remove gpu_info; add comment describing
    the purpose and steps of the test.
v3: Parameterize "secure" in amdgpu_bo_lcopy() and
    amdgpu_bo_move(). Set them both to 0.
    Allocate buffer Bob to be non-TMZ.
v4: Fix an off-by-one bug which was causing
    the test to segfault.

Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/amdgpu_test.h
tests/amdgpu/basic_tests.c
tests/amdgpu/security_tests.c