misc: fastrpc: Add support for dmabuf exporter
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 8 Feb 2019 17:11:27 +0000 (17:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 09:40:30 +0000 (10:40 +0100)
commit6cffd79504ce040f460831030d3069fa1c99bb71
tree39c7bc03d20f5efc6f1ad47844dc9683ee46c0d8
parentd73f71c7c6ee1583c08c214c8f7b20d841490b36
misc: fastrpc: Add support for dmabuf exporter

User process can involve dealing with big buffer sizes, and also passing
buffers from one compute context bank to other compute context bank for
complex dsp algorithms.

This patch adds support to fastrpc to make it a proper dmabuf exporter
to avoid making copies of buffers.

Co-developed-by: Thierry Escande <thierry.escande@linaro.org>
Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c
include/uapi/misc/fastrpc.h