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.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -554,6 +554,7 @@ struct rproc_vdev { · 553 unmodified lines | ||
| 554 | 554 | struct kref refcount; |
| 555 | 555 | |
| 556 | 556 | struct rproc_subdev subdev; |
| 557 | + struct device dev; | |
| 557 | 558 | |
| 558 | 559 | unsigned int id; |
| 559 | 560 | struct list_head node; |