File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ static int prime_map_pages_locked(struct ivpu_bo *bo)
42
42
struct ivpu_device * vdev = ivpu_bo_to_vdev (bo );
43
43
struct sg_table * sgt ;
44
44
45
- WARN_ON (!bo -> base .import_attach );
46
-
47
- sgt = dma_buf_map_attachment (bo -> base .import_attach , DMA_BIDIRECTIONAL );
45
+ sgt = dma_buf_map_attachment_unlocked (bo -> base .import_attach , DMA_BIDIRECTIONAL );
48
46
if (IS_ERR (sgt )) {
49
47
ivpu_err (vdev , "Failed to map attachment: %ld\n" , PTR_ERR (sgt ));
50
48
return PTR_ERR (sgt );
@@ -56,9 +54,7 @@ static int prime_map_pages_locked(struct ivpu_bo *bo)
56
54
57
55
static void prime_unmap_pages_locked (struct ivpu_bo * bo )
58
56
{
59
- WARN_ON (!bo -> base .import_attach );
60
-
61
- dma_buf_unmap_attachment (bo -> base .import_attach , bo -> sgt , DMA_BIDIRECTIONAL );
57
+ dma_buf_unmap_attachment_unlocked (bo -> base .import_attach , bo -> sgt , DMA_BIDIRECTIONAL );
62
58
bo -> sgt = NULL ;
63
59
}
64
60
You can’t perform that action at this time.
0 commit comments