A quick question: can dma_buf_unmap_attachment be called from interrupt context? It is the dmabuf equivalent to e.g. dma_sync_sg_for_cpu or dma_unmap_sg, and those can be called from interrupt context.
I cannot see anything specific about this in the sources or dma-buf-sharing.txt.
If it turns out that dma_buf_unmap_attachment can be called from atomic context, then that should be documented, I think.
Regards,
Hans
linaro-mm-sig@lists.linaro.org