• Home
  • Raw
  • Download

Lines Matching refs:device_handle

44 static  amdgpu_device_handle device_handle;  variable
595 &minor_version, &device_handle); in suite_basic_tests_init()
605 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in suite_basic_tests_init()
616 int r = amdgpu_device_deinitialize(device_handle); in suite_basic_tests_clean()
630 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_query_info_test()
633 r = amdgpu_query_firmware_version(device_handle, AMDGPU_INFO_FW_VCE, 0, in amdgpu_query_info_test()
653 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_gfx_separate_ibs()
656 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_gfx_separate_ibs()
662 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_gfx_separate_ibs()
668 r = amdgpu_get_bo_list(device_handle, ib_result_handle, in amdgpu_command_submission_gfx_separate_ibs()
744 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_gfx_shared_ib()
747 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_gfx_shared_ib()
753 r = amdgpu_get_bo_list(device_handle, ib_result_handle, NULL, in amdgpu_command_submission_gfx_shared_ib()
849 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_bo_eviction_test()
856 r = amdgpu_query_heap_info(device_handle, AMDGPU_GEM_DOMAIN_VRAM, in amdgpu_bo_eviction_test()
860 r = amdgpu_bo_alloc_wrap(device_handle, vram_info.max_allocation, 4096, in amdgpu_bo_eviction_test()
863 r = amdgpu_bo_alloc_wrap(device_handle, vram_info.max_allocation, 4096, in amdgpu_bo_eviction_test()
867 r = amdgpu_query_heap_info(device_handle, AMDGPU_GEM_DOMAIN_GTT, in amdgpu_bo_eviction_test()
871 r = amdgpu_bo_alloc_wrap(device_handle, gtt_info.max_allocation, 4096, in amdgpu_bo_eviction_test()
874 r = amdgpu_bo_alloc_wrap(device_handle, gtt_info.max_allocation, 4096, in amdgpu_bo_eviction_test()
885 r = amdgpu_bo_alloc_and_map(device_handle, in amdgpu_bo_eviction_test()
897 r = amdgpu_bo_alloc_and_map(device_handle, in amdgpu_bo_eviction_test()
1015 r = amdgpu_cs_ctx_create(device_handle, &context_handle[i]); in amdgpu_semaphore_test()
1018 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_semaphore_test()
1024 r = amdgpu_get_bo_list(device_handle, ib_result_handle[i], in amdgpu_semaphore_test()
1143 r = amdgpu_query_hw_ip_info(device_handle, AMDGPU_HW_IP_COMPUTE, 0, &info); in amdgpu_command_submission_compute_nop()
1146 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_compute_nop()
1150 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_compute_nop()
1156 r = amdgpu_get_bo_list(device_handle, ib_result_handle, NULL, in amdgpu_command_submission_compute_nop()
1260 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_test_exec_cs_helper()
1282 r = amdgpu_bo_list_create(device_handle, res_cnt+1, all_res, in amdgpu_test_exec_cs_helper()
1339 r = amdgpu_query_hw_ip_info(device_handle, ip_type, 0, &hw_ip_info); in amdgpu_command_submission_write_linear_helper()
1342 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_write_linear_helper()
1353 r = amdgpu_bo_alloc_and_map(device_handle, in amdgpu_command_submission_write_linear_helper()
1452 r = amdgpu_query_hw_ip_info(device_handle, ip_type, 0, &hw_ip_info); in amdgpu_command_submission_const_fill_helper()
1455 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_const_fill_helper()
1466 r = amdgpu_bo_alloc_and_map(device_handle, in amdgpu_command_submission_const_fill_helper()
1585 r = amdgpu_query_hw_ip_info(device_handle, ip_type, 0, &hw_ip_info); in amdgpu_command_submission_copy_linear_helper()
1588 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_copy_linear_helper()
1601 r = amdgpu_bo_alloc_and_map(device_handle, in amdgpu_command_submission_copy_linear_helper()
1613 r = amdgpu_bo_alloc_and_map(device_handle, in amdgpu_command_submission_copy_linear_helper()
1740 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_multi_fence_wait_all()
1743 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_multi_fence_wait_all()
1749 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_multi_fence_wait_all()
1755 r = amdgpu_get_bo_list(device_handle, ib_result_handle, in amdgpu_command_submission_multi_fence_wait_all()
1848 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_userptr_test()
1855 r = amdgpu_create_bo_from_user_mem(device_handle, in amdgpu_userptr_test()
1859 r = amdgpu_va_range_alloc(device_handle, in amdgpu_userptr_test()
1936 r = amdgpu_cs_ctx_create(device_handle, &context_handle[0]); in amdgpu_sync_dependency_test()
1938 r = amdgpu_cs_ctx_create(device_handle, &context_handle[1]); in amdgpu_sync_dependency_test()
1941 r = amdgpu_bo_alloc_and_map(device_handle, 8192, 4096, in amdgpu_sync_dependency_test()
1947 r = amdgpu_get_bo_list(device_handle, ib_result_handle, NULL, in amdgpu_sync_dependency_test()
2252 static void amdgpu_memset_dispatch_test(amdgpu_device_handle device_handle, in amdgpu_memset_dispatch_test() argument
2273 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_memset_dispatch_test()
2276 r = amdgpu_bo_alloc_and_map(device_handle, bo_cmd_size, 4096, in amdgpu_memset_dispatch_test()
2283 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memset_dispatch_test()
2293 r = amdgpu_bo_alloc_and_map(device_handle, bo_dst_size, 4096, in amdgpu_memset_dispatch_test()
2343 r = amdgpu_bo_list_create(device_handle, 3, resources, NULL, &bo_list); in amdgpu_memset_dispatch_test()
2394 static void amdgpu_memcpy_dispatch_test(amdgpu_device_handle device_handle, in amdgpu_memcpy_dispatch_test() argument
2418 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_memcpy_dispatch_test()
2421 r = amdgpu_bo_alloc_and_map(device_handle, bo_cmd_size, 4096, in amdgpu_memcpy_dispatch_test()
2428 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memcpy_dispatch_test()
2439 r = amdgpu_bo_alloc_and_map(device_handle, bo_dst_size, 4096, in amdgpu_memcpy_dispatch_test()
2445 r = amdgpu_bo_alloc_and_map(device_handle, bo_dst_size, 4096, in amdgpu_memcpy_dispatch_test()
2498 r = amdgpu_bo_list_create(device_handle, 4, resources, NULL, &bo_list); in amdgpu_memcpy_dispatch_test()
2563 r = amdgpu_query_hw_ip_info(device_handle, AMDGPU_HW_IP_COMPUTE, 0, &info); in amdgpu_compute_dispatch_test()
2569 amdgpu_memset_dispatch_test(device_handle, AMDGPU_HW_IP_COMPUTE, ring_id); in amdgpu_compute_dispatch_test()
2570 amdgpu_memcpy_dispatch_test(device_handle, AMDGPU_HW_IP_COMPUTE, ring_id, 0); in amdgpu_compute_dispatch_test()
2580 r = amdgpu_query_hw_ip_info(device_handle, AMDGPU_HW_IP_GFX, 0, &info); in amdgpu_gfx_dispatch_test()
2586 amdgpu_memset_dispatch_test(device_handle, AMDGPU_HW_IP_GFX, ring_id); in amdgpu_gfx_dispatch_test()
2587 amdgpu_memcpy_dispatch_test(device_handle, AMDGPU_HW_IP_GFX, ring_id, 0); in amdgpu_gfx_dispatch_test()
2591 void amdgpu_dispatch_hang_helper(amdgpu_device_handle device_handle, uint32_t ip_type) in amdgpu_dispatch_hang_helper() argument
2597 r = amdgpu_query_hw_ip_info(device_handle, ip_type, 0, &info); in amdgpu_dispatch_hang_helper()
2603 amdgpu_memcpy_dispatch_test(device_handle, ip_type, ring_id, 0); in amdgpu_dispatch_hang_helper()
2604 amdgpu_memcpy_dispatch_test(device_handle, ip_type, ring_id, 1); in amdgpu_dispatch_hang_helper()
2605 amdgpu_memcpy_dispatch_test(device_handle, ip_type, ring_id, 0); in amdgpu_dispatch_hang_helper()
2609 static void amdgpu_memcpy_dispatch_hang_slow_test(amdgpu_device_handle device_handle, in amdgpu_memcpy_dispatch_hang_slow_test() argument
2631 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_memcpy_dispatch_hang_slow_test()
2634 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_memcpy_dispatch_hang_slow_test()
2637 r = amdgpu_bo_alloc_and_map(device_handle, bo_cmd_size, 4096, in amdgpu_memcpy_dispatch_hang_slow_test()
2644 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memcpy_dispatch_hang_slow_test()
2654 r = amdgpu_bo_alloc_and_map(device_handle, bo_dst_size, 4096, in amdgpu_memcpy_dispatch_hang_slow_test()
2660 r = amdgpu_bo_alloc_and_map(device_handle, bo_dst_size, 4096, in amdgpu_memcpy_dispatch_hang_slow_test()
2713 r = amdgpu_bo_list_create(device_handle, 4, resources, NULL, &bo_list); in amdgpu_memcpy_dispatch_hang_slow_test()
2760 void amdgpu_dispatch_hang_slow_helper(amdgpu_device_handle device_handle, uint32_t ip_type) in amdgpu_dispatch_hang_slow_helper() argument
2766 r = amdgpu_query_hw_ip_info(device_handle, ip_type, 0, &info); in amdgpu_dispatch_hang_slow_helper()
2772 amdgpu_memcpy_dispatch_test(device_handle, ip_type, ring_id, 0); in amdgpu_dispatch_hang_slow_helper()
2773 amdgpu_memcpy_dispatch_hang_slow_test(device_handle, ip_type, ring_id); in amdgpu_dispatch_hang_slow_helper()
2774 amdgpu_memcpy_dispatch_test(device_handle, ip_type, ring_id, 0); in amdgpu_dispatch_hang_slow_helper()
3136 void amdgpu_memset_draw(amdgpu_device_handle device_handle, in amdgpu_memset_draw() argument
3158 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_memset_draw()
3161 r = amdgpu_bo_alloc_and_map(device_handle, bo_cmd_size, 4096, in amdgpu_memset_draw()
3168 r = amdgpu_bo_alloc_and_map(device_handle, bo_dst_size, 4096, in amdgpu_memset_draw()
3201 r = amdgpu_bo_list_create(device_handle, 4, resources, NULL, &bo_list); in amdgpu_memset_draw()
3249 static void amdgpu_memset_draw_test(amdgpu_device_handle device_handle, in amdgpu_memset_draw_test() argument
3260 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memset_draw_test()
3267 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memset_draw_test()
3280 amdgpu_memset_draw(device_handle, bo_shader_ps, bo_shader_vs, in amdgpu_memset_draw_test()
3290 static void amdgpu_memcpy_draw(amdgpu_device_handle device_handle, in amdgpu_memcpy_draw() argument
3314 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_memcpy_draw()
3317 r = amdgpu_bo_alloc_and_map(device_handle, bo_cmd_size, 4096, in amdgpu_memcpy_draw()
3324 r = amdgpu_bo_alloc_and_map(device_handle, bo_size, 4096, in amdgpu_memcpy_draw()
3330 r = amdgpu_bo_alloc_and_map(device_handle, bo_size, 4096, in amdgpu_memcpy_draw()
3377 r = amdgpu_bo_list_create(device_handle, 5, resources, NULL, &bo_list); in amdgpu_memcpy_draw()
3432 void amdgpu_memcpy_draw_test(amdgpu_device_handle device_handle, uint32_t ring, in amdgpu_memcpy_draw_test() argument
3444 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memcpy_draw_test()
3451 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_size, 4096, in amdgpu_memcpy_draw_test()
3464 amdgpu_memcpy_draw(device_handle, bo_shader_ps, bo_shader_vs, in amdgpu_memcpy_draw_test()
3480 r = amdgpu_query_hw_ip_info(device_handle, AMDGPU_HW_IP_GFX, 0, &info); in amdgpu_draw_test()
3486 amdgpu_memset_draw_test(device_handle, ring_id); in amdgpu_draw_test()
3487 amdgpu_memcpy_draw_test(device_handle, ring_id, 0); in amdgpu_draw_test()
3491 void amdgpu_memcpy_draw_hang_slow_test(amdgpu_device_handle device_handle, uint32_t ring) in amdgpu_memcpy_draw_hang_slow_test() argument
3517 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_memcpy_draw_hang_slow_test()
3520 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_memcpy_draw_hang_slow_test()
3523 r = amdgpu_bo_alloc_and_map(device_handle, bo_cmd_size, 4096, in amdgpu_memcpy_draw_hang_slow_test()
3530 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_ps_size, 4096, in amdgpu_memcpy_draw_hang_slow_test()
3537 r = amdgpu_bo_alloc_and_map(device_handle, bo_shader_vs_size, 4096, in amdgpu_memcpy_draw_hang_slow_test()
3550 r = amdgpu_bo_alloc_and_map(device_handle, bo_size, 4096, in amdgpu_memcpy_draw_hang_slow_test()
3556 r = amdgpu_bo_alloc_and_map(device_handle, bo_size, 4096, in amdgpu_memcpy_draw_hang_slow_test()
3604 r = amdgpu_bo_list_create(device_handle, 5, resources, NULL, &bo_list); in amdgpu_memcpy_draw_hang_slow_test()
3662 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_gpu_reset_test()