Displaying 20 results from an estimated 30 matches for "rproc_virtio_find_vqs".
2013 Jan 18
0
[RFC] remoteproc: Add support for host-side (reversed) vrings
...irtio-config. So the virtio drivers must call functions exported
from remoteproc for handling the host-side virtio rings.
The functions rproc_virtio_get_vringh(), rproc_virtio_del_vringh(),
rproc_virtio_kick_vringh() are added to remoteproc_virtio.c. The
existing functions rproc_vq_interrupt() and rproc_virtio_find_vqs()
are updated to handle the new vhost rings.
Signed-off-by: Sjur Br?ndeland <sjur.brandeland at stericsson.com>
---
drivers/remoteproc/remoteproc_virtio.c | 116 ++++++++++++++++++++++++++++++--
include/linux/remoteproc.h | 14 ++++
2 files changed, 124 insertions(+), 6 delet...
2013 Jan 18
0
[RFC] remoteproc: Add support for host-side (reversed) vrings
...irtio-config. So the virtio drivers must call functions exported
from remoteproc for handling the host-side virtio rings.
The functions rproc_virtio_get_vringh(), rproc_virtio_del_vringh(),
rproc_virtio_kick_vringh() are added to remoteproc_virtio.c. The
existing functions rproc_vq_interrupt() and rproc_virtio_find_vqs()
are updated to handle the new vhost rings.
Signed-off-by: Sjur Br?ndeland <sjur.brandeland at stericsson.com>
---
drivers/remoteproc/remoteproc_virtio.c | 116 ++++++++++++++++++++++++++++++--
include/linux/remoteproc.h | 14 ++++
2 files changed, 124 insertions(+), 6 delet...
2017 Mar 29
0
[vhost:linux-next 6/19] drivers//remoteproc/remoteproc_virtio.c:106:7: error: too few arguments to function 'vring_new_virtqueue'
...:93:19: note: declared here
struct virtqueue *vring_new_virtqueue(unsigned int index,
^
drivers//remoteproc/remoteproc_virtio.c: At top level:
>> drivers//remoteproc/remoteproc_virtio.c:264:2: warning: initialization from incompatible pointer type
.find_vqs = rproc_virtio_find_vqs,
^
drivers//remoteproc/remoteproc_virtio.c:264:2: warning: (near initialization for 'rproc_virtio_config_ops.find_vqs')
vim +/vring_new_virtqueue +106 drivers//remoteproc/remoteproc_virtio.c
7a1869416 drivers/remoteproc/remoteproc_virtio.c Ohad Ben-Cohen 2012-02-13 100 id,...
2017 Mar 29
0
[vhost:linux-next 6/19] drivers//remoteproc/remoteproc_virtio.c:106:7: error: too few arguments to function 'vring_new_virtqueue'
...:93:19: note: declared here
struct virtqueue *vring_new_virtqueue(unsigned int index,
^
drivers//remoteproc/remoteproc_virtio.c: At top level:
>> drivers//remoteproc/remoteproc_virtio.c:264:2: warning: initialization from incompatible pointer type
.find_vqs = rproc_virtio_find_vqs,
^
drivers//remoteproc/remoteproc_virtio.c:264:2: warning: (near initialization for 'rproc_virtio_config_ops.find_vqs')
vim +/vring_new_virtqueue +106 drivers//remoteproc/remoteproc_virtio.c
7a1869416 drivers/remoteproc/remoteproc_virtio.c Ohad Ben-Cohen 2012-02-13 100 id,...
2017 Mar 29
0
[vhost:linux-next 6/19] drivers/remoteproc/remoteproc_virtio.c:107:27: error: passing argument 8 of 'vring_new_virtqueue' from incompatible pointer type
...ing_new_virtqueue(unsigned int index,
^~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c: At top level:
>> drivers/remoteproc/remoteproc_virtio.c:264:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.find_vqs = rproc_virtio_find_vqs,
^~~~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c:264:14: note: (near initialization for 'rproc_virtio_config_ops.find_vqs')
cc1: some warnings being treated as errors
vim +/vring_new_virtqueue +107 drivers/remoteproc/remoteproc_virtio.c
7a1869416 driver...
2017 Mar 29
0
[vhost:linux-next 6/19] drivers/remoteproc/remoteproc_virtio.c:107:27: error: passing argument 8 of 'vring_new_virtqueue' from incompatible pointer type
...ing_new_virtqueue(unsigned int index,
^~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c: At top level:
>> drivers/remoteproc/remoteproc_virtio.c:264:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.find_vqs = rproc_virtio_find_vqs,
^~~~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c:264:14: note: (near initialization for 'rproc_virtio_config_ops.find_vqs')
cc1: some warnings being treated as errors
vim +/vring_new_virtqueue +107 drivers/remoteproc/remoteproc_virtio.c
7a1869416 driver...
2017 Mar 30
0
[vhost:linux-next 6/19] drivers/remoteproc/remoteproc_virtio.c:148:9: error: 'ctx' undeclared
...save the attached .config to linux build tree
make ARCH=x86_64
Note: the vhost/linux-next HEAD d01047cb281d27bcedbf705089bdd38d86d20b01 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/remoteproc/remoteproc_virtio.c: In function 'rproc_virtio_find_vqs':
>> drivers/remoteproc/remoteproc_virtio.c:148:9: error: 'ctx' undeclared (first use in this function)
ctx ? ctx[i] : false);
^~~
drivers/remoteproc/remoteproc_virtio.c:148:9: note: each undeclared identifier is reported only once for each function it a...
2017 Mar 30
0
[vhost:linux-next 6/19] drivers/remoteproc/remoteproc_virtio.c:148:9: error: 'ctx' undeclared
...save the attached .config to linux build tree
make ARCH=x86_64
Note: the vhost/linux-next HEAD d01047cb281d27bcedbf705089bdd38d86d20b01 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/remoteproc/remoteproc_virtio.c: In function 'rproc_virtio_find_vqs':
>> drivers/remoteproc/remoteproc_virtio.c:148:9: error: 'ctx' undeclared (first use in this function)
ctx ? ctx[i] : false);
^~~
drivers/remoteproc/remoteproc_virtio.c:148:9: note: each undeclared identifier is reported only once for each function it a...
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,
2018 Dec 28
0
[PATCH v1 2/2] virtio: don't allocate vqs when names[i] = NULL
...if (IS_ERR(vqs[i])) {
err = PTR_ERR(vqs[i]);
diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
index 183fc42..2d7cd344 100644
--- a/drivers/remoteproc/remoteproc_virtio.c
+++ b/drivers/remoteproc/remoteproc_virtio.c
@@ -153,10 +153,15 @@ static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
const bool * ctx,
struct irq_affinity *desc)
{
- int i, ret;
+ int i, ret, queue_idx = 0;
for (i = 0; i < nvqs; ++i) {
- vqs[i] = rp_find_vq(vdev, i, callbacks[i], names[i],
+ if (!names[i]) {
+ vqs[i] = NULL;
+ continue;
+ }...
2015 Dec 17
1
[PATCH] virtio: make find_vqs() checkpatch.pl-friendly
...-git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
index e1a1023..e44872f 100644
--- a/drivers/remoteproc/remoteproc_virtio.c
+++ b/drivers/remoteproc/remoteproc_virtio.c
@@ -147,7 +147,7 @@ static void rproc_virtio_del_vqs(struct virtio_device *vdev)
static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
struct virtqueue *vqs[],
vq_callback_t *callbacks[],
- const char *names[])
+ const char * const names[])
{
struct rproc *rproc = vdev_to_rproc(vdev);
int i, ret;
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/driv...
2015 Dec 17
1
[PATCH] virtio: make find_vqs() checkpatch.pl-friendly
...-git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
index e1a1023..e44872f 100644
--- a/drivers/remoteproc/remoteproc_virtio.c
+++ b/drivers/remoteproc/remoteproc_virtio.c
@@ -147,7 +147,7 @@ static void rproc_virtio_del_vqs(struct virtio_device *vdev)
static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
struct virtqueue *vqs[],
vq_callback_t *callbacks[],
- const char *names[])
+ const char * const names[])
{
struct rproc *rproc = vdev_to_rproc(vdev);
int i, ret;
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/driv...
2017 Mar 30
0
[vhost:linux-next 6/19] drivers/remoteproc/remoteproc_virtio.c:106:33: sparse: not enough arguments for function vring_new_virtqueue
...ue *vring_new_virtqueue(unsigned int index,
^~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c: At top level:
drivers/remoteproc/remoteproc_virtio.c:264:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.find_vqs = rproc_virtio_find_vqs,
^~~~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c:264:14: note: (near initialization for 'rproc_virtio_config_ops.find_vqs')
cc1: some warnings being treated as errors
vim +106 drivers/remoteproc/remoteproc_virtio.c
6457f126c drivers/remoteproc/remotepro...
2017 Mar 30
0
[vhost:linux-next 6/19] drivers/remoteproc/remoteproc_virtio.c:106:33: sparse: not enough arguments for function vring_new_virtqueue
...ue *vring_new_virtqueue(unsigned int index,
^~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c: At top level:
drivers/remoteproc/remoteproc_virtio.c:264:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.find_vqs = rproc_virtio_find_vqs,
^~~~~~~~~~~~~~~~~~~~~
drivers/remoteproc/remoteproc_virtio.c:264:14: note: (near initialization for 'rproc_virtio_config_ops.find_vqs')
cc1: some warnings being treated as errors
vim +106 drivers/remoteproc/remoteproc_virtio.c
6457f126c drivers/remoteproc/remotepro...
2013 Feb 12
3
[PATCHv2 vringh 0/3] Introduce CAIF Virtio driver
From: Sjur Br?ndeland <sjur.brandeland 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.
Changes since V1:
- Use the new iov helper functions, and simplify iov handling.
However this triggers compile warnings, as it takes struct iov
while kernel api uses struct kiov
- Introduced
2013 Feb 12
3
[PATCHv2 vringh 0/3] Introduce CAIF Virtio driver
From: Sjur Br?ndeland <sjur.brandeland 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.
Changes since V1:
- Use the new iov helper functions, and simplify iov handling.
However this triggers compile warnings, as it takes struct iov
while kernel api uses struct kiov
- Introduced
2013 Feb 10
3
[PATCH vringh 0/2] Introduce CAIF Virtio driver
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com>
This patch-set introduces the CAIF Virtio Link layer driver.
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.
Regards,
Sjur
cc: Rusty Russell <rusty at rustcorp.com.au>
cc: Ohad Ben-Cohen <ohad at wizery.com>
cc: David S. Miller
2013 Feb 10
3
[PATCH vringh 0/2] Introduce CAIF Virtio driver
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com>
This patch-set introduces the CAIF Virtio Link layer driver.
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.
Regards,
Sjur
cc: Rusty Russell <rusty at rustcorp.com.au>
cc: Ohad Ben-Cohen <ohad at wizery.com>
cc: David S. Miller
2017 Jan 27
0
[PATCH 5/9] virtio: allow drivers to request IRQ affinity when creating VQs
...-git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
index 364411f..0142cc3 100644
--- a/drivers/remoteproc/remoteproc_virtio.c
+++ b/drivers/remoteproc/remoteproc_virtio.c
@@ -137,7 +137,8 @@ static void rproc_virtio_del_vqs(struct virtio_device *vdev)
static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
struct virtqueue *vqs[],
vq_callback_t *callbacks[],
- const char * const names[])
+ const char * const names[],
+ struct irq_affinity *desc)
{
int i, ret;
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virti...