]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9062d440c6177b247335cba95e882fe74b2c252e
tree1495450dd78e02d67ee084fa562dc2e9d37363a8
parentc1139baa757293d85c9609ddb632d0c25a5d4bc3
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