Lines Matching refs:ibs_request
75 struct amdgpu_cs_request *ibs_request);
852 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_command_submission_gfx_separate_ibs() local
901 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_command_submission_gfx_separate_ibs()
902 ibs_request.number_of_ibs = 2; in amdgpu_command_submission_gfx_separate_ibs()
903 ibs_request.ibs = ib_info; in amdgpu_command_submission_gfx_separate_ibs()
904 ibs_request.resources = bo_list; in amdgpu_command_submission_gfx_separate_ibs()
905 ibs_request.fence_info.handle = NULL; in amdgpu_command_submission_gfx_separate_ibs()
907 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); in amdgpu_command_submission_gfx_separate_ibs()
914 fence_status.fence = ibs_request.seq_no; in amdgpu_command_submission_gfx_separate_ibs()
943 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_command_submission_gfx_shared_ib() local
985 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_command_submission_gfx_shared_ib()
986 ibs_request.number_of_ibs = 2; in amdgpu_command_submission_gfx_shared_ib()
987 ibs_request.ibs = ib_info; in amdgpu_command_submission_gfx_shared_ib()
988 ibs_request.resources = bo_list; in amdgpu_command_submission_gfx_shared_ib()
989 ibs_request.fence_info.handle = NULL; in amdgpu_command_submission_gfx_shared_ib()
991 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_command_submission_gfx_shared_ib()
998 fence_status.fence = ibs_request.seq_no; in amdgpu_command_submission_gfx_shared_ib()
1040 struct amdgpu_cs_request *ibs_request; in amdgpu_bo_eviction_test() local
1054 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_bo_eviction_test()
1055 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_bo_eviction_test()
1147 ib_info, ibs_request); in amdgpu_bo_eviction_test()
1171 free(ibs_request); in amdgpu_bo_eviction_test()
1202 struct amdgpu_cs_request ibs_request[2] = {0}; in amdgpu_semaphore_test() local
1251 ibs_request[0].ip_type = AMDGPU_HW_IP_DMA; in amdgpu_semaphore_test()
1252 ibs_request[0].number_of_ibs = 1; in amdgpu_semaphore_test()
1253 ibs_request[0].ibs = &ib_info[0]; in amdgpu_semaphore_test()
1254 ibs_request[0].resources = bo_list[0]; in amdgpu_semaphore_test()
1255 ibs_request[0].fence_info.handle = NULL; in amdgpu_semaphore_test()
1256 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request[0], 1); in amdgpu_semaphore_test()
1268 ibs_request[1].ip_type = gc_ip_type; in amdgpu_semaphore_test()
1269 ibs_request[1].number_of_ibs = 1; in amdgpu_semaphore_test()
1270 ibs_request[1].ibs = &ib_info[1]; in amdgpu_semaphore_test()
1271 ibs_request[1].resources = bo_list[1]; in amdgpu_semaphore_test()
1272 ibs_request[1].fence_info.handle = NULL; in amdgpu_semaphore_test()
1274 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request[1], 1); in amdgpu_semaphore_test()
1280 fence_status.fence = ibs_request[1].seq_no; in amdgpu_semaphore_test()
1292 ibs_request[0].ip_type = gc_ip_type; in amdgpu_semaphore_test()
1293 ibs_request[0].number_of_ibs = 1; in amdgpu_semaphore_test()
1294 ibs_request[0].ibs = &ib_info[0]; in amdgpu_semaphore_test()
1295 ibs_request[0].resources = bo_list[0]; in amdgpu_semaphore_test()
1296 ibs_request[0].fence_info.handle = NULL; in amdgpu_semaphore_test()
1297 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request[0], 1); in amdgpu_semaphore_test()
1309 ibs_request[1].ip_type = gc_ip_type; in amdgpu_semaphore_test()
1310 ibs_request[1].number_of_ibs = 1; in amdgpu_semaphore_test()
1311 ibs_request[1].ibs = &ib_info[1]; in amdgpu_semaphore_test()
1312 ibs_request[1].resources = bo_list[1]; in amdgpu_semaphore_test()
1313 ibs_request[1].fence_info.handle = NULL; in amdgpu_semaphore_test()
1314 r = amdgpu_cs_submit(context_handle[1], 0,&ibs_request[1], 1); in amdgpu_semaphore_test()
1321 fence_status.fence = ibs_request[1].seq_no; in amdgpu_semaphore_test()
1349 struct amdgpu_cs_request ibs_request; in amdgpu_command_submission_compute_nop() local
1384 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_command_submission_compute_nop()
1385 ibs_request.ip_type = AMDGPU_HW_IP_COMPUTE; in amdgpu_command_submission_compute_nop()
1386 ibs_request.ring = instance; in amdgpu_command_submission_compute_nop()
1387 ibs_request.number_of_ibs = 1; in amdgpu_command_submission_compute_nop()
1388 ibs_request.ibs = &ib_info; in amdgpu_command_submission_compute_nop()
1389 ibs_request.resources = bo_list; in amdgpu_command_submission_compute_nop()
1390 ibs_request.fence_info.handle = NULL; in amdgpu_command_submission_compute_nop()
1393 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); in amdgpu_command_submission_compute_nop()
1400 fence_status.fence = ibs_request.seq_no; in amdgpu_command_submission_compute_nop()
1458 struct amdgpu_cs_request *ibs_request, in amdgpu_test_exec_cs_helper_raw() argument
1475 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_test_exec_cs_helper_raw()
1494 ibs_request->ip_type = ip_type; in amdgpu_test_exec_cs_helper_raw()
1495 ibs_request->ring = instance; in amdgpu_test_exec_cs_helper_raw()
1496 ibs_request->number_of_ibs = 1; in amdgpu_test_exec_cs_helper_raw()
1497 ibs_request->ibs = ib_info; in amdgpu_test_exec_cs_helper_raw()
1498 ibs_request->fence_info.handle = NULL; in amdgpu_test_exec_cs_helper_raw()
1504 NULL, &ibs_request->resources); in amdgpu_test_exec_cs_helper_raw()
1507 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_test_exec_cs_helper_raw()
1510 r = amdgpu_cs_submit(context_handle, 0, ibs_request, 1); in amdgpu_test_exec_cs_helper_raw()
1513 r = amdgpu_bo_list_destroy(ibs_request->resources); in amdgpu_test_exec_cs_helper_raw()
1518 fence_status.ring = ibs_request->ring; in amdgpu_test_exec_cs_helper_raw()
1520 fence_status.fence = ibs_request->seq_no; in amdgpu_test_exec_cs_helper_raw()
1540 struct amdgpu_cs_request *ibs_request) in amdgpu_test_exec_cs_helper() argument
1545 ibs_request, false); in amdgpu_test_exec_cs_helper()
1560 struct amdgpu_cs_request *ibs_request; in amdgpu_command_submission_write_linear_helper_with_secure() local
1575 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_command_submission_write_linear_helper_with_secure()
1576 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_command_submission_write_linear_helper_with_secure()
1639 ibs_request, secure); in amdgpu_command_submission_write_linear_helper_with_secure()
1669 ibs_request, true); in amdgpu_command_submission_write_linear_helper_with_secure()
1693 ibs_request, true); in amdgpu_command_submission_write_linear_helper_with_secure()
1726 ibs_request, true); in amdgpu_command_submission_write_linear_helper_with_secure()
1739 free(ibs_request); in amdgpu_command_submission_write_linear_helper_with_secure()
1769 struct amdgpu_cs_request *ibs_request; in amdgpu_command_submission_const_fill_helper() local
1783 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_command_submission_const_fill_helper()
1784 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_command_submission_const_fill_helper()
1863 ib_info, ibs_request); in amdgpu_command_submission_const_fill_helper()
1879 free(ibs_request); in amdgpu_command_submission_const_fill_helper()
1902 struct amdgpu_cs_request *ibs_request; in amdgpu_command_submission_copy_linear_helper() local
1916 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_command_submission_copy_linear_helper()
1917 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_command_submission_copy_linear_helper()
2017 ib_info, ibs_request); in amdgpu_command_submission_copy_linear_helper()
2037 free(ibs_request); in amdgpu_command_submission_copy_linear_helper()
2064 struct amdgpu_cs_request ibs_request[2] = {0}; in amdgpu_command_submission_multi_fence_wait_all() local
2115 ibs_request[i].ip_type = AMDGPU_HW_IP_GFX; in amdgpu_command_submission_multi_fence_wait_all()
2116 ibs_request[i].number_of_ibs = 2; in amdgpu_command_submission_multi_fence_wait_all()
2117 ibs_request[i].ibs = ib_info; in amdgpu_command_submission_multi_fence_wait_all()
2118 ibs_request[i].resources = bo_list; in amdgpu_command_submission_multi_fence_wait_all()
2119 ibs_request[i].fence_info.handle = NULL; in amdgpu_command_submission_multi_fence_wait_all()
2122 r = amdgpu_cs_submit(context_handle, 0,ibs_request, ib_cs_num); in amdgpu_command_submission_multi_fence_wait_all()
2129 fence_status[i].fence = ibs_request[i].seq_no; in amdgpu_command_submission_multi_fence_wait_all()
2169 struct amdgpu_cs_request *ibs_request; in amdgpu_userptr_test() local
2179 ibs_request = calloc(1, sizeof(*ibs_request)); in amdgpu_userptr_test()
2180 CU_ASSERT_NOT_EQUAL(ibs_request, NULL); in amdgpu_userptr_test()
2231 ib_info, ibs_request); in amdgpu_userptr_test()
2236 free(ibs_request); in amdgpu_userptr_test()
2260 struct amdgpu_cs_request ibs_request; in amdgpu_sync_dependency_test() local
2381 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_sync_dependency_test()
2382 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_sync_dependency_test()
2383 ibs_request.ring = 0; in amdgpu_sync_dependency_test()
2384 ibs_request.number_of_ibs = 1; in amdgpu_sync_dependency_test()
2385 ibs_request.ibs = &ib_info; in amdgpu_sync_dependency_test()
2386 ibs_request.resources = bo_list; in amdgpu_sync_dependency_test()
2387 ibs_request.fence_info.handle = NULL; in amdgpu_sync_dependency_test()
2389 r = amdgpu_cs_submit(context_handle[1], 0,&ibs_request, 1); in amdgpu_sync_dependency_test()
2391 seq_no = ibs_request.seq_no; in amdgpu_sync_dependency_test()
2410 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_sync_dependency_test()
2411 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_sync_dependency_test()
2412 ibs_request.ring = 0; in amdgpu_sync_dependency_test()
2413 ibs_request.number_of_ibs = 1; in amdgpu_sync_dependency_test()
2414 ibs_request.ibs = &ib_info; in amdgpu_sync_dependency_test()
2415 ibs_request.resources = bo_list; in amdgpu_sync_dependency_test()
2416 ibs_request.fence_info.handle = NULL; in amdgpu_sync_dependency_test()
2418 ibs_request.number_of_dependencies = 1; in amdgpu_sync_dependency_test()
2420 ibs_request.dependencies = calloc(1, sizeof(*ibs_request.dependencies)); in amdgpu_sync_dependency_test()
2421 ibs_request.dependencies[0].context = context_handle[1]; in amdgpu_sync_dependency_test()
2422 ibs_request.dependencies[0].ip_instance = 0; in amdgpu_sync_dependency_test()
2423 ibs_request.dependencies[0].ring = 0; in amdgpu_sync_dependency_test()
2424 ibs_request.dependencies[0].fence = seq_no; in amdgpu_sync_dependency_test()
2427 r = amdgpu_cs_submit(context_handle[0], 0,&ibs_request, 1); in amdgpu_sync_dependency_test()
2436 fence_status.fence = ibs_request.seq_no; in amdgpu_sync_dependency_test()
2457 free(ibs_request.dependencies); in amdgpu_sync_dependency_test()
2651 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_memset_dispatch_test() local
2735 ibs_request.ip_type = ip_type; in amdgpu_memset_dispatch_test()
2736 ibs_request.ring = ring; in amdgpu_memset_dispatch_test()
2737 ibs_request.resources = bo_list; in amdgpu_memset_dispatch_test()
2738 ibs_request.number_of_ibs = 1; in amdgpu_memset_dispatch_test()
2739 ibs_request.ibs = &ib_info; in amdgpu_memset_dispatch_test()
2740 ibs_request.fence_info.handle = NULL; in amdgpu_memset_dispatch_test()
2743 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_memset_dispatch_test()
2753 fence_status.fence = ibs_request.seq_no; in amdgpu_memset_dispatch_test()
2799 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_memcpy_dispatch_test() local
2897 ibs_request.ip_type = ip_type; in amdgpu_memcpy_dispatch_test()
2898 ibs_request.ring = ring; in amdgpu_memcpy_dispatch_test()
2899 ibs_request.resources = bo_list; in amdgpu_memcpy_dispatch_test()
2900 ibs_request.number_of_ibs = 1; in amdgpu_memcpy_dispatch_test()
2901 ibs_request.ibs = &ib_info; in amdgpu_memcpy_dispatch_test()
2902 ibs_request.fence_info.handle = NULL; in amdgpu_memcpy_dispatch_test()
2903 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_memcpy_dispatch_test()
2910 fence_status.fence = ibs_request.seq_no; in amdgpu_memcpy_dispatch_test()
3036 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_memcpy_dispatch_hang_slow_test() local
3136 ibs_request.ip_type = ip_type; in amdgpu_memcpy_dispatch_hang_slow_test()
3137 ibs_request.ring = ring; in amdgpu_memcpy_dispatch_hang_slow_test()
3138 ibs_request.resources = bo_list; in amdgpu_memcpy_dispatch_hang_slow_test()
3139 ibs_request.number_of_ibs = 1; in amdgpu_memcpy_dispatch_hang_slow_test()
3140 ibs_request.ibs = &ib_info; in amdgpu_memcpy_dispatch_hang_slow_test()
3141 ibs_request.fence_info.handle = NULL; in amdgpu_memcpy_dispatch_hang_slow_test()
3142 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_memcpy_dispatch_hang_slow_test()
3149 fence_status.fence = ibs_request.seq_no; in amdgpu_memcpy_dispatch_hang_slow_test()
3735 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_memset_draw() local
3790 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_memset_draw()
3791 ibs_request.ring = ring_id; in amdgpu_memset_draw()
3792 ibs_request.resources = bo_list; in amdgpu_memset_draw()
3793 ibs_request.number_of_ibs = 1; in amdgpu_memset_draw()
3794 ibs_request.ibs = &ib_info; in amdgpu_memset_draw()
3795 ibs_request.fence_info.handle = NULL; in amdgpu_memset_draw()
3798 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_memset_draw()
3808 fence_status.fence = ibs_request.seq_no; in amdgpu_memset_draw()
3892 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_memcpy_draw() local
3979 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_memcpy_draw()
3980 ibs_request.ring = ring; in amdgpu_memcpy_draw()
3981 ibs_request.resources = bo_list; in amdgpu_memcpy_draw()
3982 ibs_request.number_of_ibs = 1; in amdgpu_memcpy_draw()
3983 ibs_request.ibs = &ib_info; in amdgpu_memcpy_draw()
3984 ibs_request.fence_info.handle = NULL; in amdgpu_memcpy_draw()
3985 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_memcpy_draw()
3992 fence_status.fence = ibs_request.seq_no; in amdgpu_memcpy_draw()
4115 struct amdgpu_cs_request ibs_request = {0}; in amdgpu_memcpy_draw_hang_slow_test() local
4223 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_memcpy_draw_hang_slow_test()
4224 ibs_request.ring = ring; in amdgpu_memcpy_draw_hang_slow_test()
4225 ibs_request.resources = bo_list; in amdgpu_memcpy_draw_hang_slow_test()
4226 ibs_request.number_of_ibs = 1; in amdgpu_memcpy_draw_hang_slow_test()
4227 ibs_request.ibs = &ib_info; in amdgpu_memcpy_draw_hang_slow_test()
4228 ibs_request.fence_info.handle = NULL; in amdgpu_memcpy_draw_hang_slow_test()
4229 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in amdgpu_memcpy_draw_hang_slow_test()
4236 fence_status.fence = ibs_request.seq_no; in amdgpu_memcpy_draw_hang_slow_test()