remoteproc: add alloc ops in rproc_mem_entry struct
authorLoic Pallardy <loic.pallardy@st.com>
Fri, 27 Jul 2018 13:14:43 +0000 (15:14 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Oct 2018 05:39:12 +0000 (22:39 -0700)
commitd7c51706d0956472b7c0530b1bf8fba32d82ee6b
tree1495450dd78e02d67ee084fa562dc2e9d37363a8
parentb0019ccd7e90178929ce1afe944ab85d8a39d7a4
remoteproc: add alloc ops in rproc_mem_entry struct

Memory entry could be allocated in different ways (ioremap,
dma_alloc_coherent, internal RAM allocator...).
This patch introduces an alloc ops in rproc_mem_entry structure
to associate dedicated allocation mechanism to each memory entry
descriptor in order to do remote core agnostic from memory allocators.

The introduction of this ops allows to perform allocation of all registered
carveout at the same time, just before calling rproc_start().
It simplifies and makes uniform carveout management whatever origin.

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h