dma-buf: Document DMA_BUF_IOCTL_SYNC (v3)
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 17 Jun 2021 19:42:58 +0000 (14:42 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Jun 2021 19:46:37 +0000 (21:46 +0200)
commit51f52547df700819db0d0e2b17b677cb209212b4
treeddef6a516dbfc701c9f9835cf696a5ec2b3f6f15
parentd35c97f606a1398b58e14e7cb8a7c67f7817be2a
dma-buf: Document DMA_BUF_IOCTL_SYNC (v3)

This adds a new "DMA Buffer ioctls" section to the dma-buf docs and adds
documentation for DMA_BUF_IOCTL_SYNC.

v2 (Daniel Vetter):
 - Fix a couple typos
 - Add commentary about synchronization with other devices
 - Use item list format for describing flags

v3 (Pekka Paalanen):
 - Clarify stalling requirements.
 - Be more clear that that DMA_BUF_IOCTL_SYNC with SINC_END has to be
   called before more GPU work happens.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210617194258.579011-1-jason@jlekstrand.net
Documentation/driver-api/dma-buf.rst
include/uapi/linux/dma-buf.h