/third_party/libdrm/tests/amdgpu/ |
D | deadlock_tests.c | 243 struct amdgpu_cs_request ibs_request; in amdgpu_deadlock_helper() local 291 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_deadlock_helper() 292 ibs_request.ip_type = ip_type; in amdgpu_deadlock_helper() 293 ibs_request.ring = 0; in amdgpu_deadlock_helper() 294 ibs_request.number_of_ibs = 1; in amdgpu_deadlock_helper() 295 ibs_request.ibs = &ib_info; in amdgpu_deadlock_helper() 296 ibs_request.resources = bo_list; in amdgpu_deadlock_helper() 297 ibs_request.fence_info.handle = NULL; in amdgpu_deadlock_helper() 299 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); in amdgpu_deadlock_helper() 309 fence_status.fence = ibs_request.seq_no; in amdgpu_deadlock_helper() [all …]
|
D | basic_tests.c | 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 [all …]
|
D | hotunplug_tests.c | 195 struct amdgpu_cs_request ibs_request; in amdgpu_nop_cs() local 218 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_nop_cs() 219 ibs_request.ip_type = AMDGPU_HW_IP_GFX; in amdgpu_nop_cs() 220 ibs_request.ring = 0; in amdgpu_nop_cs() 221 ibs_request.number_of_ibs = 1; in amdgpu_nop_cs() 222 ibs_request.ibs = &ib_info; in amdgpu_nop_cs() 223 ibs_request.resources = bo_list; in amdgpu_nop_cs() 226 amdgpu_cs_submit(context, 0, &ibs_request, 1); in amdgpu_nop_cs() 228 amdgpu_cs_sync(context, AMDGPU_HW_IP_GFX, 0, ibs_request.seq_no); in amdgpu_nop_cs() 359 struct amdgpu_cs_request ibs_request; in amdgpu_hotunplug_with_exported_fence() local [all …]
|
D | amdgpu_stress.c | 185 struct amdgpu_cs_request ibs_request; in submit_ib() local 231 memset(&ibs_request, 0, sizeof(ibs_request)); in submit_ib() 232 ibs_request.ip_type = AMDGPU_HW_IP_DMA; in submit_ib() 233 ibs_request.ring = 0; in submit_ib() 234 ibs_request.number_of_ibs = 1; in submit_ib() 235 ibs_request.ibs = &ib_info; in submit_ib() 236 ibs_request.fence_info.handle = NULL; in submit_ib() 243 &ibs_request.resources); in submit_ib() 248 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit_ib() 253 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit_ib() [all …]
|
D | vm_tests.c | 102 struct amdgpu_cs_request ibs_request; in amdgpu_vmid_reserve_test() local 150 memset(&ibs_request, 0, sizeof(struct amdgpu_cs_request)); in amdgpu_vmid_reserve_test() 151 ibs_request.ip_type = gc_ip_type; in amdgpu_vmid_reserve_test() 152 ibs_request.ring = 0; in amdgpu_vmid_reserve_test() 153 ibs_request.number_of_ibs = 1; in amdgpu_vmid_reserve_test() 154 ibs_request.ibs = &ib_info; in amdgpu_vmid_reserve_test() 155 ibs_request.resources = bo_list; in amdgpu_vmid_reserve_test() 156 ibs_request.fence_info.handle = NULL; in amdgpu_vmid_reserve_test() 158 r = amdgpu_cs_submit(context_handle, 0,&ibs_request, 1); in amdgpu_vmid_reserve_test() 167 fence_status.fence = ibs_request.seq_no; in amdgpu_vmid_reserve_test()
|
D | vcn_tests.c | 194 struct amdgpu_cs_request ibs_request = {0}; in submit() local 203 ibs_request.ip_type = ip; in submit() 206 NULL, &ibs_request.resources); in submit() 210 ibs_request.number_of_ibs = 1; in submit() 211 ibs_request.ibs = &ib_info; in submit() 212 ibs_request.fence_info.handle = NULL; in submit() 214 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit() 218 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit() 224 fence_status.fence = ibs_request.seq_no; in submit()
|
D | cs_tests.c | 154 struct amdgpu_cs_request ibs_request = {0}; in submit() local 163 ibs_request.ip_type = ip; in submit() 166 NULL, &ibs_request.resources); in submit() 170 ibs_request.number_of_ibs = 1; in submit() 171 ibs_request.ibs = &ib_info; in submit() 172 ibs_request.fence_info.handle = NULL; in submit() 174 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit() 178 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit() 184 fence_status.fence = ibs_request.seq_no; in submit()
|
D | cp_dma_tests.c | 208 struct amdgpu_cs_request ibs_request = {0}; in submit_and_sync() local 218 NULL, &ibs_request.resources); in submit_and_sync() 232 ibs_request.ip_type = gc_ip_type; in submit_and_sync() 233 ibs_request.number_of_ibs = 1; in submit_and_sync() 234 ibs_request.ibs = &ib_info; in submit_and_sync() 235 ibs_request.fence_info.handle = NULL; in submit_and_sync() 237 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit_and_sync() 241 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit_and_sync() 247 fence_status.fence = ibs_request.seq_no; in submit_and_sync()
|
D | uvd_enc_tests.c | 155 struct amdgpu_cs_request ibs_request = {0}; in submit() local 164 ibs_request.ip_type = ip; in submit() 167 NULL, &ibs_request.resources); in submit() 171 ibs_request.number_of_ibs = 1; in submit() 172 ibs_request.ibs = &ib_info; in submit() 173 ibs_request.fence_info.handle = NULL; in submit() 175 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit() 179 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit() 185 fence_status.fence = ibs_request.seq_no; in submit()
|
D | jpeg_tests.c | 237 struct amdgpu_cs_request ibs_request = {0}; in submit() local 246 ibs_request.ip_type = ip; in submit() 249 &ibs_request.resources); in submit() 253 ibs_request.number_of_ibs = 1; in submit() 254 ibs_request.ibs = &ib_info; in submit() 255 ibs_request.fence_info.handle = NULL; in submit() 257 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit() 261 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit() 267 fence_status.fence = ibs_request.seq_no; in submit()
|
D | vce_tests.c | 199 struct amdgpu_cs_request ibs_request = {0}; in submit() local 208 ibs_request.ip_type = ip; in submit() 211 NULL, &ibs_request.resources); in submit() 215 ibs_request.number_of_ibs = 1; in submit() 216 ibs_request.ibs = &ib_info; in submit() 217 ibs_request.fence_info.handle = NULL; in submit() 219 r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); in submit() 223 r = amdgpu_bo_list_destroy(ibs_request.resources); in submit() 229 fence_status.fence = ibs_request.seq_no; in submit()
|
D | amdgpu_test.h | 540 struct amdgpu_cs_request *ibs_request,
|
/third_party/libdrm/amdgpu/ |
D | amdgpu_cs.c | 243 struct amdgpu_cs_request *ibs_request) in amdgpu_cs_submit_one() argument 257 if (ibs_request->ip_type >= AMDGPU_HW_IP_NUM) in amdgpu_cs_submit_one() 259 if (ibs_request->ring >= AMDGPU_CS_MAX_RINGS) in amdgpu_cs_submit_one() 261 if (ibs_request->number_of_ibs == 0) { in amdgpu_cs_submit_one() 262 ibs_request->seq_no = AMDGPU_NULL_SUBMIT_SEQ; in amdgpu_cs_submit_one() 265 user_fence = (ibs_request->fence_info.handle != NULL); in amdgpu_cs_submit_one() 267 size = ibs_request->number_of_ibs + (user_fence ? 2 : 1) + 1; in amdgpu_cs_submit_one() 271 size = ibs_request->number_of_ibs + (user_fence ? 1 : 0); in amdgpu_cs_submit_one() 275 if (ibs_request->resources) in amdgpu_cs_submit_one() 276 bo_list_handle = ibs_request->resources->handle; in amdgpu_cs_submit_one() [all …]
|
D | amdgpu.h | 1031 struct amdgpu_cs_request *ibs_request,
|