linux/drivers/dma-buf/heaps
Dmitry Osipenko 30b5144ca4 dma-buf/heaps: Don't assert held reservation lock for dma-buf mmapping
Don't assert held dma-buf reservation lock on memory mapping of exported
buffer.

We're going to change dma-buf mmap() locking policy such that exporters
will have to handle the lock. The previous locking policy caused deadlock
problem for DRM drivers in a case of self-imported dma-bufs once these
drivers are moved to use reservation lock universally. The problem
solved by moving the lock down to exporters. This patch prepares dma-buf
heaps for the locking policy update.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230529223935.2672495-3-dmitry.osipenko@collabora.com
2023-06-21 20:22:20 +03:00
..
cma_heap.c dma-buf/heaps: Don't assert held reservation lock for dma-buf mmapping 2023-06-21 20:22:20 +03:00
Kconfig dma-buf: heaps: Add CMA heap to dmabuf heaps 2019-12-11 11:13:37 +05:30
Makefile dma-buf: heaps: Remove heap-helpers code 2020-11-22 22:03:03 +05:30
system_heap.c dma-buf/heaps: Don't assert held reservation lock for dma-buf mmapping 2023-06-21 20:22:20 +03:00