Skip to content

Commit 8b0baa8

Browse files
committed
drm/omapdrm: Prepare to dynamic dma-buf locking specification
Prepare OMAP DRM driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f2d8e15 commit 8b0baa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev,
125125

126126
get_dma_buf(dma_buf);
127127

128-
sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE);
128+
sgt = dma_buf_map_attachment_unlocked(attach, DMA_TO_DEVICE);
129129
if (IS_ERR(sgt)) {
130130
ret = PTR_ERR(sgt);
131131
goto fail_detach;
@@ -142,7 +142,7 @@ struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev,
142142
return obj;
143143

144144
fail_unmap:
145-
dma_buf_unmap_attachment(attach, sgt, DMA_TO_DEVICE);
145+
dma_buf_unmap_attachment_unlocked(attach, sgt, DMA_TO_DEVICE);
146146
fail_detach:
147147
dma_buf_detach(dma_buf, attach);
148148
dma_buf_put(dma_buf);

0 commit comments

Comments
 (0)