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>
main
Aaron Liu 2021-07-22 17:01:00 +08:00
parent 87a68fe9e4
commit 4ac7d6bf5d
1 changed files with 2 additions and 2 deletions

View File

@ -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.
*/