tests/amdgpu: divide dispatch test into compute and gfx
PATCH 1/1 tests/amdgpu: divide dispatch test into compute and gfx
for better clarification
--- tests/amdgpu/basic_tests.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
tests/amdgpu/basic_tests.c +13 -3
@@ -55,7 +55,8 @@ static void amdgpu_userptr_test(void);static void amdgpu_semaphore_test (void );static void amdgpu_sync_dependency_test (void );static void amdgpu_bo_eviction_test (void ); -static void amdgpu_dispatch_test (void ); +static void amdgpu_compute_dispatch_test (void ); +static void amdgpu_gfx_dispatch_test (void );static void amdgpu_draw_test (void );static void amdgpu_gpu_reset_test (void );
@@ -79,7 +80,8 @@ CU_TestInfo basic_tests[] = { { "Command submission Test (SDMA)", amdgpu_command_submission_sdma }, { "SW semaphore Test", amdgpu_semaphore_test }, { "Sync dependency Test", amdgpu_sync_dependency_test }, - { "Dispatch Test", amdgpu_dispatch_test }, + { "Dispatch Test (Compute)", amdgpu_compute_dispatch_test }, + { "Dispatch Test (GFX)", amdgpu_gfx_dispatch_test }, { "Draw Test", amdgpu_draw_test }, { "GPU reset Test", amdgpu_gpu_reset_test }, CU_TEST_INFO_NULL,
@@ -2448,7 +2450,8 @@ static void amdgpu_memcpy_dispatch_test(amdgpu_device_handle device_handle, r =amdgpu_cs_ctx_free (context_handle);CU_ASSERT_EQUAL (r,0 ); } -static void amdgpu_dispatch_test (void ) + +static void amdgpu_compute_dispatch_test (void ) {int r;struct drm_amdgpu_info_hw_ip info;
@@ -2463,6 +2466,13 @@ static void amdgpu_dispatch_test(void)amdgpu_memset_dispatch_test (device_handle,AMDGPU_HW_IP_COMPUTE , ring_id);amdgpu_memcpy_dispatch_test (device_handle,AMDGPU_HW_IP_COMPUTE , ring_id); } +} + +static void amdgpu_gfx_dispatch_test (void ) +{ +int r; +struct drm_amdgpu_info_hw_ip info; +uint32_t ring_id; r =amdgpu_query_hw_ip_info (device_handle,AMDGPU_HW_IP_GFX ,0 , &info);CU_ASSERT_EQUAL (r,0 );
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1563782474-32675-1-git-send-email-le.ma-5C7GfCeVMHo@public.gmane.org
Patch is Reviewed-by: Flora Cui <[email protected]> Could you apply the similar change to draw test?
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Le Ma
Sent: Monday, July 22, 2019 4:01 PM
To: [email protected]
Cc: Ma, Le <[email protected]>; Cui, Flora <[email protected]>
Subject: [PATCH libdrm 1/1] tests/amdgpu: divide dispatch test into compute and gfx
for better clarification
--- tests/amdgpu/basic_tests.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
tests/amdgpu/basic_tests.c +12 -2
@@ -55,7 +55,8 @@ static void amdgpu_userptr_test(void); static void amdgpu_semaphore_test(void); static void amdgpu_sync_dependency_test(void); static void amdgpu_bo_eviction_test(void); -static void amdgpu_dispatch_test(void); +static void amdgpu_compute_dispatch_test (void ); +static void amdgpu_gfx_dispatch_test (void );static void amdgpu_draw_test (void );static void amdgpu_gpu_reset_test (void );
@@ -79,7 +80,8 @@ CU_TestInfo basic_tests[] = { { "Command submission Test (SDMA)", amdgpu_command_submission_sdma }, { "SW semaphore Test", amdgpu_semaphore_test }, { "Sync dependency Test", amdgpu_sync_dependency_test }, - { "Dispatch Test", amdgpu_dispatch_test }, + { "Dispatch Test (Compute)", amdgpu_compute_dispatch_test }, + { "Dispatch Test (GFX)", amdgpu_gfx_dispatch_test }, { "Draw Test", amdgpu_draw_test }, { "GPU reset Test", amdgpu_gpu_reset_test }, CU_TEST_INFO_NULL,
@@ -2448,7 +2450,8 @@ static void amdgpu_memcpy_dispatch_test(amdgpu_device_handle device_handle, r =amdgpu_cs_ctx_free (context_handle);CU_ASSERT_EQUAL (r,0 ); } -static void amdgpu_dispatch_test (void ) + +static void amdgpu_compute_dispatch_test (void ) {int r;struct drm_amdgpu_info_hw_ip info;
@@ -2463,6 +2466,13 @@ static void amdgpu_dispatch_test(void)amdgpu_memset_dispatch_test (device_handle,AMDGPU_HW_IP_COMPUTE , ring_id);amdgpu_memcpy_dispatch_test (device_handle,AMDGPU_HW_IP_COMPUTE , ring_id); } +} + +static void amdgpu_gfx_dispatch_test (void ) { +int r; +struct drm_amdgpu_info_hw_ip info; +uint32_t ring_id; r =amdgpu_query_hw_ip_info (device_handle,AMDGPU_HW_IP_GFX ,0 , &info);CU_ASSERT_EQUAL (r,0 );
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): MN2PR12MB3312F3AD6E32FE6E9587C238FAC40-rweVpJHSKToE250A+C2e2AdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Thanks Flora. No need change for draw test since it only runs gfx ring test.
Regards,
Ma Le
-----Original Message-----
From: Cui, Flora <[email protected]>
Sent: Monday, July 22, 2019 4:07 PM
To: Ma, Le <[email protected]>; [email protected]
Cc: Ma, Le <[email protected]>
Subject: RE: [PATCH libdrm 1/1] tests/amdgpu: divide dispatch test into compute and gfx
Patch is Reviewed-by: Flora Cui <[email protected]> Could you apply the similar change to draw test?
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Le Ma
Sent: Monday, July 22, 2019 4:01 PM
To: [email protected]
Cc: Ma, Le <[email protected]>; Cui, Flora <[email protected]>
Subject: [PATCH libdrm 1/1] tests/amdgpu: divide dispatch test into compute and gfx
for better clarification
--- tests/amdgpu/basic_tests.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
tests/amdgpu/basic_tests.c +12 -2
@@ -55,7 +55,8 @@ static void amdgpu_userptr_test(void); static void amdgpu_semaphore_test(void); static void amdgpu_sync_dependency_test(void); static void amdgpu_bo_eviction_test(void); -static void amdgpu_dispatch_test(void); +static void amdgpu_compute_dispatch_test (void ); +static void amdgpu_gfx_dispatch_test (void );static void amdgpu_draw_test (void );static void amdgpu_gpu_reset_test (void );
@@ -79,7 +80,8 @@ CU_TestInfo basic_tests[] = { { "Command submission Test (SDMA)", amdgpu_command_submission_sdma }, { "SW semaphore Test", amdgpu_semaphore_test }, { "Sync dependency Test", amdgpu_sync_dependency_test }, - { "Dispatch Test", amdgpu_dispatch_test }, + { "Dispatch Test (Compute)", amdgpu_compute_dispatch_test }, + { "Dispatch Test (GFX)", amdgpu_gfx_dispatch_test }, { "Draw Test", amdgpu_draw_test }, { "GPU reset Test", amdgpu_gpu_reset_test }, CU_TEST_INFO_NULL,
@@ -2448,7 +2450,8 @@ static void amdgpu_memcpy_dispatch_test(amdgpu_device_handle device_handle, r =amdgpu_cs_ctx_free (context_handle);CU_ASSERT_EQUAL (r,0 ); } -static void amdgpu_dispatch_test (void ) + +static void amdgpu_compute_dispatch_test (void ) {int r;struct drm_amdgpu_info_hw_ip info;
@@ -2463,6 +2466,13 @@ static void amdgpu_dispatch_test(void)amdgpu_memset_dispatch_test (device_handle,AMDGPU_HW_IP_COMPUTE , ring_id);amdgpu_memcpy_dispatch_test (device_handle,AMDGPU_HW_IP_COMPUTE , ring_id); } +} + +static void amdgpu_gfx_dispatch_test (void ) { +int r; +struct drm_amdgpu_info_hw_ip info; +uint32_t ring_id; r =amdgpu_query_hw_ip_info (device_handle,AMDGPU_HW_IP_GFX ,0 , &info);CU_ASSERT_EQUAL (r,0 );
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx