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
parent
9dd2c00461
commit
9f11c0b019
|
@ -336,6 +336,8 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, int id)
|
||||||
|
|
||||||
/* Try to find dedicated vdev buffer carveout */
|
/* Try to find dedicated vdev buffer carveout */
|
||||||
mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", rvdev->index);
|
mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", rvdev->index);
|
||||||
|
if (!mem)
|
||||||
|
mem = rproc_find_carveout_by_name(rproc, "vdevbuffer");
|
||||||
if (mem) {
|
if (mem) {
|
||||||
phys_addr_t pa;
|
phys_addr_t pa;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue