summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Liu <aaron.liu@amd.com>2021-07-22 17:01:00 +0800
committerAaron Liu <aaron.liu@amd.com>2021-07-23 10:24:22 +0800
commit4ac7d6bf5dd1d7aae893fafee98a309d357e5bd6 (patch)
tree662b1be14ca377943f7106925d34c47add177a2d
parent87a68fe9e49605d200ab2604e45b8a9d868d1922 (diff)
downloaddrm-4ac7d6bf5dd1d7aae893fafee98a309d357e5bd6.tar.gz
test/amdgpu: Bob to Alice copy should be TMZ in secure bounce test
SDMA copy from Alice to Bob is in TMZ mode. Therefore SDMA copy back from Bob to Alice should be in TMZ mode too. Signed-off-by: Aaron Liu <aaron.liu@amd.com> Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
-rw-r--r--tests/amdgpu/security_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/amdgpu/security_tests.c b/tests/amdgpu/security_tests.c
index c7548dac..280e862d 100644
--- a/tests/amdgpu/security_tests.c
+++ b/tests/amdgpu/security_tests.c
@@ -336,9 +336,9 @@ static void amdgpu_secure_bounce(void)
goto Out_free_all;
}
- /* sDMA clear copy from Bob to Alice.
+ /* sDMA TMZ copy from Bob to Alice.
*/
- amdgpu_bo_lcopy(&sb_ctx, &alice, &bob, SECURE_BUFFER_SIZE, 0);
+ amdgpu_bo_lcopy(&sb_ctx, &alice, &bob, SECURE_BUFFER_SIZE, 1);
/* Verify the contents of Alice.
*/