From: Aaron Liu Date: Thu, 22 Jul 2021 09:01:00 +0000 (+0800) Subject: test/amdgpu: Bob to Alice copy should be TMZ in secure bounce test X-Git-Tag: libdrm-2.4.108~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ac7d6bf5dd1d7aae893fafee98a309d357e5bd6;p=platform%2Fupstream%2Flibdrm.git 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 Reviewed-by: Luben Tuikov --- diff --git a/tests/amdgpu/security_tests.c b/tests/amdgpu/security_tests.c index c7548da..280e862 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. */