mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 00:10:11 +01:00
tests/amdgpu: add test to submit a sdma command with secure context
This patch add test to submit a sdma command with secure context. Acked-by: Huang Rui <ray.huang@amd.com> Acked-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Aaron Liu <aaron.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
38c44cccdc
commit
238acd6f3d
1 changed files with 10 additions and 0 deletions
|
|
@ -33,6 +33,8 @@ static uint32_t minor_version;
|
|||
|
||||
static void amdgpu_security_alloc_buf_test(void);
|
||||
static void amdgpu_security_gfx_submission_test(void);
|
||||
static void amdgpu_security_sdma_submission_test(void);
|
||||
|
||||
|
||||
CU_BOOL suite_security_tests_enable(void)
|
||||
{
|
||||
|
|
@ -77,6 +79,7 @@ int suite_security_tests_clean(void)
|
|||
CU_TestInfo security_tests[] = {
|
||||
{ "allocate secure buffer test", amdgpu_security_alloc_buf_test },
|
||||
{ "graphics secure command submission", amdgpu_security_gfx_submission_test },
|
||||
{ "sdma secure command submission", amdgpu_security_sdma_submission_test },
|
||||
CU_TEST_INFO_NULL,
|
||||
};
|
||||
|
||||
|
|
@ -122,3 +125,10 @@ static void amdgpu_security_gfx_submission_test(void)
|
|||
AMDGPU_HW_IP_GFX,
|
||||
true);
|
||||
}
|
||||
|
||||
static void amdgpu_security_sdma_submission_test(void)
|
||||
{
|
||||
amdgpu_command_submission_write_linear_helper_with_secure(device_handle,
|
||||
AMDGPU_HW_IP_DMA,
|
||||
true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue