Kconfig

DMABUF options

CONFIG_SYNC_FILE Explicit Synchronization Framework

On

The Sync File Framework adds explicit synchronization via userspace. It enables send/receive 'struct dma_fence' objects to/from userspace via Sync File fds for synchronization between drivers via userspace components. It has been ported from Android.

The first and main user for this is graphics in which a fence is associated with a buffer. When a job is submitted to the GPU a fence is attached to the buffer and is transferred via userspace, using Sync Files fds, to the DRM driver for example. More details at Documentation/driver-api/sync_file.rst.

Default
  • n

If SYNC_FILE

CONFIG_SW_SYNC Sync File Validation Framework

On

A sync object driver that uses a 32bit counter to coordinate synchronization. Useful when there is no hardware primitive backing the synchronization.

WARNING: improper use of this can result in deadlocking kernel drivers from userspace. Intended for test and debug only.

CONFIG_DMABUF_DEBUG DMA-BUF debug checks

On

This option enables additional checks for DMA-BUF importers and exporters. Specifically it validates that importers do not peek at the underlying struct page when they import a buffer.

CONFIG_DMABUF_HEAPS DMA-BUF Userland Memory Heaps

On

Choose this option to enable the DMA-BUF userland memory heaps. This options creates per heap chardevs in /dev/dma_heap/ which allows userspace to allocate dma-bufs that can be shared between drivers.

Includedrivers/dma-buf/heaps/Kconfig Open file
End of DMABUF options