mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-28 12:10:13 +01:00
tests/amdgpu: add secure buffer allocation test for system memory
This patch is to add secure buffer allocation test for system memory. Acked-by: Huang Rui <ray.huang@amd.com> Acked-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2c0e4991d7
commit
e63b775e5a
1 changed files with 9 additions and 0 deletions
|
|
@ -93,4 +93,13 @@ static void amdgpu_security_alloc_buf_test(void)
|
|||
|
||||
r = gpu_mem_free(bo, va_handle, bo_mc, 4096);
|
||||
CU_ASSERT_EQUAL(r, 0);
|
||||
|
||||
/* Test secure buffer allocation in system memory */
|
||||
bo = gpu_mem_alloc(device_handle, 4096, 4096,
|
||||
AMDGPU_GEM_DOMAIN_GTT,
|
||||
AMDGPU_GEM_CREATE_ENCRYPTED,
|
||||
&bo_mc, &va_handle);
|
||||
|
||||
r = gpu_mem_free(bo, va_handle, bo_mc, 4096);
|
||||
CU_ASSERT_EQUAL(r, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue