]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68a751a09702088893ec5c2b05a57528a2cf2a87
tree6e68e3ed2fecc9c456c55b150f34aef1058aba3f
parent90a11dfb7f764346022f2be7a9dc7cbb7f767899
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