remoteproc: create vdev subdevice with specific dma memory pool
authorLoic Pallardy <loic.pallardy@st.com>
Thu, 10 Jan 2019 13:50:49 +0000 (14:50 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 21 Feb 2019 05:15:35 +0000 (21:15 -0800)
commit086d08725d34c6b3333db710344ae9c4fdafb2d5
tree6e68e3ed2fecc9c456c55b150f34aef1058aba3f
parent621eafdb0f0dbb46b8ba9c12dbf566a49f07363d
remoteproc: create vdev subdevice with specific dma memory pool

This patch creates a dedicated vdev subdevice for each vdev declared
in firmware resource table and associates carveout named "vdev%dbuffer"
(with %d vdev index in resource table) if any as dma coherent memory pool.

Then vdev subdevice is used as parent for virtio device.

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