@@ -213,7 +213,7 @@ static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915,
213
213
goto out_import ;
214
214
}
215
215
216
- st = dma_buf_map_attachment (import_attach , DMA_BIDIRECTIONAL );
216
+ st = dma_buf_map_attachment_unlocked (import_attach , DMA_BIDIRECTIONAL );
217
217
if (IS_ERR (st )) {
218
218
err = PTR_ERR (st );
219
219
goto out_detach ;
@@ -226,7 +226,7 @@ static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915,
226
226
timeout = - ETIME ;
227
227
}
228
228
err = timeout > 0 ? 0 : timeout ;
229
- dma_buf_unmap_attachment (import_attach , st , DMA_BIDIRECTIONAL );
229
+ dma_buf_unmap_attachment_unlocked (import_attach , st , DMA_BIDIRECTIONAL );
230
230
out_detach :
231
231
dma_buf_detach (dmabuf , import_attach );
232
232
out_import :
@@ -296,7 +296,7 @@ static int igt_dmabuf_import(void *arg)
296
296
goto out_obj ;
297
297
}
298
298
299
- err = dma_buf_vmap (dmabuf , & map );
299
+ err = dma_buf_vmap_unlocked (dmabuf , & map );
300
300
dma_map = err ? NULL : map .vaddr ;
301
301
if (!dma_map ) {
302
302
pr_err ("dma_buf_vmap failed\n" );
@@ -337,7 +337,7 @@ static int igt_dmabuf_import(void *arg)
337
337
338
338
err = 0 ;
339
339
out_dma_map :
340
- dma_buf_vunmap (dmabuf , & map );
340
+ dma_buf_vunmap_unlocked (dmabuf , & map );
341
341
out_obj :
342
342
i915_gem_object_put (obj );
343
343
out_dmabuf :
@@ -358,7 +358,7 @@ static int igt_dmabuf_import_ownership(void *arg)
358
358
if (IS_ERR (dmabuf ))
359
359
return PTR_ERR (dmabuf );
360
360
361
- err = dma_buf_vmap (dmabuf , & map );
361
+ err = dma_buf_vmap_unlocked (dmabuf , & map );
362
362
ptr = err ? NULL : map .vaddr ;
363
363
if (!ptr ) {
364
364
pr_err ("dma_buf_vmap failed\n" );
@@ -367,7 +367,7 @@ static int igt_dmabuf_import_ownership(void *arg)
367
367
}
368
368
369
369
memset (ptr , 0xc5 , PAGE_SIZE );
370
- dma_buf_vunmap (dmabuf , & map );
370
+ dma_buf_vunmap_unlocked (dmabuf , & map );
371
371
372
372
obj = to_intel_bo (i915_gem_prime_import (& i915 -> drm , dmabuf ));
373
373
if (IS_ERR (obj )) {
@@ -418,7 +418,7 @@ static int igt_dmabuf_export_vmap(void *arg)
418
418
}
419
419
i915_gem_object_put (obj );
420
420
421
- err = dma_buf_vmap (dmabuf , & map );
421
+ err = dma_buf_vmap_unlocked (dmabuf , & map );
422
422
ptr = err ? NULL : map .vaddr ;
423
423
if (!ptr ) {
424
424
pr_err ("dma_buf_vmap failed\n" );
@@ -435,7 +435,7 @@ static int igt_dmabuf_export_vmap(void *arg)
435
435
memset (ptr , 0xc5 , dmabuf -> size );
436
436
437
437
err = 0 ;
438
- dma_buf_vunmap (dmabuf , & map );
438
+ dma_buf_vunmap_unlocked (dmabuf , & map );
439
439
out :
440
440
dma_buf_put (dmabuf );
441
441
return err ;
0 commit comments