1
0
Fork 0

MLK-23754-2 remoteproc: virtio: support sharing vdev buffer

Support sharing vdev buffer between multiple vdevs.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Peng Fan 2020-03-28 21:05:32 +08:00
parent 9dd2c00461
commit 9f11c0b019
1 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,8 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, int id)
/* Try to find dedicated vdev buffer carveout */
mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", rvdev->index);
if (!mem)
mem = rproc_find_carveout_by_name(rproc, "vdevbuffer");
if (mem) {
phys_addr_t pa;