I think now I have an answer to my question.
I will back come in a couple of weeks with a generic dmabuf allocator. The feature set of this should be: - allow to have per device specificone allocator - ioctl for buffer allocation and exporting dmabuf file descriptor on /dev/foo - generic API to be able to call buffer securing module which is platform specific. - ioctl and kernel API to set/get dmabuf secure status
Sumit had already done a draft of this kind of dmabuf allocator with his cenalloc [1] I think I will start from that.
Benjamin
[1] http://git.linaro.org/people/sumit.semwal/linux-3.x.git on cenalloc_wip branch.