misc: fastrpc: add mmap/unmap support
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Wed, 9 Oct 2019 14:41:19 +0000 (15:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 13:28:10 +0000 (15:28 +0200)
commit2419e55e532de14fdf336e09e453aa2831c73a25
tree7bbd53549d2375fe1471582abf10cd142d642eb1
parent689e3557a2d1245475bb6ecfccf4ca5ab03e3a74
misc: fastrpc: add mmap/unmap support

Support the allocation/deallocation of buffers mapped to the DSP.

When the memory mapped to the DSP at process creation is not enough,
the fastrpc library can extend it at runtime. This avoids having to do
large preallocations by default.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20191009144123.24583-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c
include/uapi/misc/fastrpc.h