Changes since v2: - Dropped buf_prepare/finish_for_cpu: buf_prepare/finish are already suitable for CPU access (but see discussion on dmabuf imports below) - Moved dma_map_sg to buf_init as suggested by Laurent and others. This made it possible to drop the whole 'new_cookies' handling that I had in v1. Much better this way. - Updated to latest linuxtv master. The patch series adds an allocation context to dma-sg and uses that to move dma_(un)map_sg into the vb2 framework, which is where it belongs. Some drivers needs to fixup the buffers before giving it back to userspace (or before handing it over to the kernel). Document that this can be done in buf_prepare and buf_finish. Note however that is does not work for DMABUF imports. This is a problem today as well. Pawel, I would like to discuss this on Wednesday in more detail. I don't entirely understand what is going on here or what the right solution is. DMABUF export support is added to dma-sg and vmalloc, so now all memory models support DMABUF importing and exporting. Reviews are very welcome. Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html