search for: find_vrh

Displaying 14 results from an estimated 14 matches for "find_vrh".

Did you mean: find_vrhs
2013 Feb 27
2
Wrappers for vringh (was Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings))
...re instantiated from remoteproc. But if we where to make wrappers, how about something like this? diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 29b9104..ca257d8 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -53,0 +54,8 @@ + * @find_vrh: find the host vrings and instantiate them + * vdev: the virtio_device + * nhvrs: the number of host vrings to find + * hvrs: on success, includes new host vrings + * callbacks: array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not n...
2013 Feb 27
2
Wrappers for vringh (was Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings))
...re instantiated from remoteproc. But if we where to make wrappers, how about something like this? diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 29b9104..ca257d8 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -53,0 +54,8 @@ + * @find_vrh: find the host vrings and instantiate them + * vdev: the virtio_device + * nhvrs: the number of host vrings to find + * hvrs: on success, includes new host vrings + * callbacks: array of driver callbacks, for each host vring + * include a NULL entry for vqs that do not n...
2013 Mar 05
2
[PATCH vringh] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. The functions find_vrhs() and del_vrhs() are added to struct virtio_config_ops to manage the host vrings. The function vringh_notify() is added so the guest can be kicked when buffers are added to the used-ring. This enables the virtio drivers to manage the virtio rings without knowledge of how the host vrings are manag...
2013 Mar 05
2
[PATCH vringh] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. The functions find_vrhs() and del_vrhs() are added to struct virtio_config_ops to manage the host vrings. The function vringh_notify() is added so the guest can be kicked when buffers are added to the used-ring. This enables the virtio drivers to manage the virtio rings without knowledge of how the host vrings are manag...
2013 Mar 08
1
[PATCHv2] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. A new struct vringh_config_ops with the functions find_vrhs() and del_vrhs() is added to the virtio_device struct. This enables virtio drivers to manage virtio host rings without detailed knowledge of how the vrings are created and deleted. The function vringh_notify() is added so vringh clients can notify the other side that buffers are added to the used...
2013 Mar 08
1
[PATCHv2] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. A new struct vringh_config_ops with the functions find_vrhs() and del_vrhs() is added to the virtio_device struct. This enables virtio drivers to manage virtio host rings without detailed knowledge of how the vrings are created and deleted. The function vringh_notify() is added so vringh clients can notify the other side that buffers are added to the used...
2013 Mar 22
2
[PATCH virtio-next 1/2] caif_virtio: Use vringh_notify_enable correctly
Check on the correct return value from vringh_notify_enable_kern(). It returns false if more packets are available, not true. Signed-off-by: Sjur Br?ndeland <sjur.brandeland at stericsson.com> --- Hi, This patch applies to Rusty's virtio-next branch. Thanks, Sjur drivers/net/caif/caif_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git
2013 Mar 22
2
[PATCH virtio-next 1/2] caif_virtio: Use vringh_notify_enable correctly
Check on the correct return value from vringh_notify_enable_kern(). It returns false if more packets are available, not true. Signed-off-by: Sjur Br?ndeland <sjur.brandeland at stericsson.com> --- Hi, This patch applies to Rusty's virtio-next branch. Thanks, Sjur drivers/net/caif/caif_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git
2013 Apr 09
1
[PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
...gt;vrh.vring.avail, + rvrh->vrh.vring.used); + if (err) { + dev_err(&rvdev->rproc->dev, + "vringh_init_kern failed\n"); + goto err; + } + + rvring->rvringh = rvrh; + return &rvrh->vrh; +err: + kfree(rvrh); + return ERR_PTR(err); +} + +static struct vringh *rp_find_vrh(struct virtio_device *vdev, + unsigned id, + vrh_callback_t callback) +{ + struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); + struct rproc *rproc = vdev_to_rproc(vdev); + struct device *dev = &rproc->dev; + struct rproc_vring *rvring; + struct vringh *vrh; + void *addr; + int len, size,...
2013 Apr 09
1
[PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
...gt;vrh.vring.avail, + rvrh->vrh.vring.used); + if (err) { + dev_err(&rvdev->rproc->dev, + "vringh_init_kern failed\n"); + goto err; + } + + rvring->rvringh = rvrh; + return &rvrh->vrh; +err: + kfree(rvrh); + return ERR_PTR(err); +} + +static struct vringh *rp_find_vrh(struct virtio_device *vdev, + unsigned id, + vrh_callback_t callback) +{ + struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); + struct rproc *rproc = vdev_to_rproc(vdev); + struct device *dev = &rproc->dev; + struct rproc_vring *rvring; + struct vringh *vrh; + void *addr; + int len, size,...
2013 Mar 15
2
[PATCH 0/2] remoteproc : support for host virtio
From: Erwan Yvin <erwan.yvin at stericsson.com> This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. with the vringh wrapper patch on top. They do not apply cleanly on top of the remoteproc virtio config patches from Sjur, but it merges fine. CAIF will use this new host virtio ring implementation. Ido,
2013 Mar 15
2
[PATCH 0/2] remoteproc : support for host virtio
From: Erwan Yvin <erwan.yvin at stericsson.com> This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. with the vringh wrapper patch on top. They do not apply cleanly on top of the remoteproc virtio config patches from Sjur, but it merges fine. CAIF will use this new host virtio ring implementation. Ido,
2013 Mar 15
4
[PATCHv3 vringh] caif_virtio: Introduce caif over virtio
...v_name, + cfv_netdev_setup); + if (!netdev) + return -ENOMEM; + + cfv = netdev_priv(netdev); + cfv->vdev = vdev; + cfv->ndev = netdev; + + spin_lock_init(&cfv->tx_lock); + + /* Get the RX virtio ring. This is a "host side vring". */ + err = vdev->vringh_config->find_vrhs(vdev, 1, &cfv->vr_rx, &vrh_cbs); + if (err) + goto err; + + /* Get the TX virtio ring. This is a "guest side vring". */ + err = vdev->config->find_vqs(vdev, 1, &cfv->vq_tx, &vq_cbs, &names); + if (err) + goto err; + + /* Get the CAIF configuration from v...
2013 Mar 15
4
[PATCHv3 vringh] caif_virtio: Introduce caif over virtio
...v_name, + cfv_netdev_setup); + if (!netdev) + return -ENOMEM; + + cfv = netdev_priv(netdev); + cfv->vdev = vdev; + cfv->ndev = netdev; + + spin_lock_init(&cfv->tx_lock); + + /* Get the RX virtio ring. This is a "host side vring". */ + err = vdev->vringh_config->find_vrhs(vdev, 1, &cfv->vr_rx, &vrh_cbs); + if (err) + goto err; + + /* Get the TX virtio ring. This is a "guest side vring". */ + err = vdev->config->find_vqs(vdev, 1, &cfv->vq_tx, &vq_cbs, &names); + if (err) + goto err; + + /* Get the CAIF configuration from v...