search for: failed2

Displaying 20 results from an estimated 46 matches for "failed2".

Did you mean: failed
2019 Sep 17
1
[RFC PATCH 1/2] mdev: device id support
...BLE_H */ > diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c > index ac5c8c17b1ff..71a4469be85d 100644 > --- a/samples/vfio-mdev/mbochs.c > +++ b/samples/vfio-mdev/mbochs.c > @@ -1468,7 +1468,7 @@ static int __init mbochs_dev_init(void) > if (ret) > goto failed2; > > - ret = mdev_register_device(&mbochs_dev, &mdev_fops); > + ret = mdev_register_vfio_device(&mbochs_dev, &mdev_fops); > if (ret) > goto failed3; > > diff --git a/samples/vfio-mdev/mdpy.c b/samples/vfio-mdev/mdpy.c > index cc86bf6566e4..d3029dd27d91...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...;args[vfid] = kmalloc(VF_PARAM_LEN, GFP_KERNEL); + if (!pf->iov->args[vfid]) + return -ENOMEM; + + strcpy(pf->iov->args[vfid], param); + err = notify_phyfn(pf, PCI_IOV_VF_ENA, vfid); + if (err) + goto failed1; + + vf = iov_alloc_virtfn(pf, vfid); + if (!vf) { + err = -ENOMEM; + goto failed2; + } + + return 0; + +failed2: + notify_phyfn(pf, PCI_IOV_VF_DIS, vfid); +failed1: + kfree(pf->iov->args[vfid]); + pf->iov->args[vfid] = NULL; + + return err; +} + +static int iov_remove_virtfn(struct pci_dev *pf, int vfid) +{ + u8 bus, devfn; + struct pci_dev *vf; + + vfid_to_bdf(pf, v...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...;args[vfid] = kmalloc(VF_PARAM_LEN, GFP_KERNEL); + if (!pf->iov->args[vfid]) + return -ENOMEM; + + strcpy(pf->iov->args[vfid], param); + err = notify_phyfn(pf, PCI_IOV_VF_ENA, vfid); + if (err) + goto failed1; + + vf = iov_alloc_virtfn(pf, vfid); + if (!vf) { + err = -ENOMEM; + goto failed2; + } + + return 0; + +failed2: + notify_phyfn(pf, PCI_IOV_VF_DIS, vfid); +failed1: + kfree(pf->iov->args[vfid]); + pf->iov->args[vfid] = NULL; + + return err; +} + +static int iov_remove_virtfn(struct pci_dev *pf, int vfid) +{ + u8 bus, devfn; + struct pci_dev *vf; + + vfid_to_bdf(pf, v...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...;args[vfid] = kmalloc(VF_PARAM_LEN, GFP_KERNEL); + if (!pf->iov->args[vfid]) + return -ENOMEM; + + strcpy(pf->iov->args[vfid], param); + err = notify_phyfn(pf, PCI_IOV_VF_ENA, vfid); + if (err) + goto failed1; + + vf = iov_alloc_virtfn(pf, vfid); + if (!vf) { + err = -ENOMEM; + goto failed2; + } + + return 0; + +failed2: + notify_phyfn(pf, PCI_IOV_VF_DIS, vfid); +failed1: + kfree(pf->iov->args[vfid]); + pf->iov->args[vfid] = NULL; + + return err; +} + +static int iov_remove_virtfn(struct pci_dev *pf, int vfid) +{ + u8 bus, devfn; + struct pci_dev *vf; + + vfid_to_bdf(pf, v...
2019 Sep 12
0
[RFC PATCH 1/2] mdev: device id support
...+}; + #endif /* LINUX_MOD_DEVICETABLE_H */ diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c index ac5c8c17b1ff..71a4469be85d 100644 --- a/samples/vfio-mdev/mbochs.c +++ b/samples/vfio-mdev/mbochs.c @@ -1468,7 +1468,7 @@ static int __init mbochs_dev_init(void) if (ret) goto failed2; - ret = mdev_register_device(&mbochs_dev, &mdev_fops); + ret = mdev_register_vfio_device(&mbochs_dev, &mdev_fops); if (ret) goto failed3; diff --git a/samples/vfio-mdev/mdpy.c b/samples/vfio-mdev/mdpy.c index cc86bf6566e4..d3029dd27d91 100644 --- a/samples/vfio-mdev/mdpy.c...
2019 Sep 23
0
[PATCH 1/6] mdev: class id support
...+}; + #endif /* LINUX_MOD_DEVICETABLE_H */ diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c index ac5c8c17b1ff..71a4469be85d 100644 --- a/samples/vfio-mdev/mbochs.c +++ b/samples/vfio-mdev/mbochs.c @@ -1468,7 +1468,7 @@ static int __init mbochs_dev_init(void) if (ret) goto failed2; - ret = mdev_register_device(&mbochs_dev, &mdev_fops); + ret = mdev_register_vfio_device(&mbochs_dev, &mdev_fops); if (ret) goto failed3; diff --git a/samples/vfio-mdev/mdpy.c b/samples/vfio-mdev/mdpy.c index cc86bf6566e4..d3029dd27d91 100644 --- a/samples/vfio-mdev/mdpy.c...
2019 Sep 24
0
[PATCH 1/6] mdev: class id support
...a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c index >> ac5c8c17b1ff..71a4469be85d 100644 >> --- a/samples/vfio-mdev/mbochs.c >> +++ b/samples/vfio-mdev/mbochs.c >> @@ -1468,7 +1468,7 @@ static int __init mbochs_dev_init(void) >> if (ret) >> goto failed2; >> >> - ret = mdev_register_device(&mbochs_dev, &mdev_fops); >> + ret = mdev_register_vfio_device(&mbochs_dev, &mdev_fops); >> if (ret) >> goto failed3; >> >> diff --git a/samples/vfio-mdev/mdpy.c b/samples/vfio-mdev/mdpy.c index >&...
2019 Sep 23
1
[PATCH 1/6] mdev: class id support
...BLE_H */ > diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c > index ac5c8c17b1ff..71a4469be85d 100644 > --- a/samples/vfio-mdev/mbochs.c > +++ b/samples/vfio-mdev/mbochs.c > @@ -1468,7 +1468,7 @@ static int __init mbochs_dev_init(void) > if (ret) > goto failed2; > > - ret = mdev_register_device(&mbochs_dev, &mdev_fops); > + ret = mdev_register_vfio_device(&mbochs_dev, &mdev_fops); > if (ret) > goto failed3; > > diff --git a/samples/vfio-mdev/mdpy.c b/samples/vfio-mdev/mdpy.c > index cc86bf6566e4..d3029dd27d...
2019 Sep 10
1
[RFC PATCH 4/4] docs: Sample driver to demonstrate how to implement virtio-mdev framework
...ss); > + goto failed1; > + } > + > + mvnet_dev.dev.class = mvnet_dev.vd_class; > + mvnet_dev.dev.release = mvnet_device_release; > + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); > + > + ret = device_register(&mvnet_dev.dev); > + if (ret) > + goto failed2; > + > + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); > + if (ret) > + goto failed3; > + > + mutex_init(&mdev_list_lock); > + INIT_LIST_HEAD(&mdev_devices_list); > + > + goto all_done; > + > +failed3: > + > + device_unregister(&...
2019 Nov 05
0
[PATCH V8 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework
...class\n"); + ret = PTR_ERR(mvnet_dev.vd_class); + goto failed1; + } + + mvnet_dev.dev.class = mvnet_dev.vd_class; + mvnet_dev.dev.release = mvnet_device_release; + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); + + ret = device_register(&mvnet_dev.dev); + if (ret) + goto failed2; + + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); + if (ret) + goto failed3; + + mutex_init(&mdev_list_lock); + INIT_LIST_HEAD(&mdev_devices_list); + + goto all_done; + +failed3: + + device_unregister(&mvnet_dev.dev); +failed2: + class_destroy(mvnet_dev.vd_class); +...
2019 Sep 10
0
[RFC PATCH 4/4] docs: Sample driver to demonstrate how to implement virtio-mdev framework
...class\n"); + ret = PTR_ERR(mvnet_dev.vd_class); + goto failed1; + } + + mvnet_dev.dev.class = mvnet_dev.vd_class; + mvnet_dev.dev.release = mvnet_device_release; + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); + + ret = device_register(&mvnet_dev.dev); + if (ret) + goto failed2; + + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); + if (ret) + goto failed3; + + mutex_init(&mdev_list_lock); + INIT_LIST_HEAD(&mdev_devices_list); + + goto all_done; + +failed3: + + device_unregister(&mvnet_dev.dev); +failed2: + class_destroy(mvnet_dev.vd_class); +...
2019 Oct 30
0
[PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework
...class\n"); + ret = PTR_ERR(mvnet_dev.vd_class); + goto failed1; + } + + mvnet_dev.dev.class = mvnet_dev.vd_class; + mvnet_dev.dev.release = mvnet_device_release; + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); + + ret = device_register(&mvnet_dev.dev); + if (ret) + goto failed2; + + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); + if (ret) + goto failed3; + + mutex_init(&mdev_list_lock); + INIT_LIST_HEAD(&mdev_devices_list); + + goto all_done; + +failed3: + + device_unregister(&mvnet_dev.dev); +failed2: + class_destroy(mvnet_dev.vd_class); +...
2019 Nov 07
0
[PATCH V11 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework
...class\n"); + ret = PTR_ERR(mvnet_dev.vd_class); + goto failed1; + } + + mvnet_dev.dev.class = mvnet_dev.vd_class; + mvnet_dev.dev.release = mvnet_device_release; + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); + + ret = device_register(&mvnet_dev.dev); + if (ret) + goto failed2; + + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); + if (ret) + goto failed3; + + mutex_init(&mdev_list_lock); + INIT_LIST_HEAD(&mdev_devices_list); + + goto all_done; + +failed3: + + device_unregister(&mvnet_dev.dev); +failed2: + class_destroy(mvnet_dev.vd_class); +...
2019 Nov 06
0
[PATCH V9 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework
...class\n"); + ret = PTR_ERR(mvnet_dev.vd_class); + goto failed1; + } + + mvnet_dev.dev.class = mvnet_dev.vd_class; + mvnet_dev.dev.release = mvnet_device_release; + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); + + ret = device_register(&mvnet_dev.dev); + if (ret) + goto failed2; + + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); + if (ret) + goto failed3; + + mutex_init(&mdev_list_lock); + INIT_LIST_HEAD(&mdev_devices_list); + + goto all_done; + +failed3: + + device_unregister(&mvnet_dev.dev); +failed2: + class_destroy(mvnet_dev.vd_class); +...
2019 Nov 06
0
[PATCH V10 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework
...class\n"); + ret = PTR_ERR(mvnet_dev.vd_class); + goto failed1; + } + + mvnet_dev.dev.class = mvnet_dev.vd_class; + mvnet_dev.dev.release = mvnet_device_release; + dev_set_name(&mvnet_dev.dev, "%s", MVNET_NAME); + + ret = device_register(&mvnet_dev.dev); + if (ret) + goto failed2; + + ret = mdev_register_device(&mvnet_dev.dev, &mdev_fops); + if (ret) + goto failed3; + + mutex_init(&mdev_list_lock); + INIT_LIST_HEAD(&mdev_devices_list); + + goto all_done; + +failed3: + + device_unregister(&mvnet_dev.dev); +failed2: + class_destroy(mvnet_dev.vd_class); +...
2019 Sep 12
9
[RFC PATCH 0/2] Mdev: support mutiple kinds of devices
Hi all: During the development of virtio-mdev[1]. I find that mdev needs to be extended to support devices other than vfio mdev device. So this series tries to extend the mdev to be able to differ from different devices by: - device id and matching for mdev bus - device speicfic callbacks and move vfio callbacks there Sent for early reivew, compile test only! Thanks [1]
2019 Sep 12
9
[RFC PATCH 0/2] Mdev: support mutiple kinds of devices
Hi all: During the development of virtio-mdev[1]. I find that mdev needs to be extended to support devices other than vfio mdev device. So this series tries to extend the mdev to be able to differ from different devices by: - device id and matching for mdev bus - device speicfic callbacks and move vfio callbacks there Sent for early reivew, compile test only! Thanks [1]
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...t virtfn_slot *vslot; + + slot = kzalloc(sizeof(*slot), GFP_KERNEL); + if (!slot) + return rc; + + slot->info = kzalloc(sizeof(*slot->info), GFP_KERNEL); + if (!slot->info) + goto failed1; + + slot->info->param = kzalloc(PCI_IOV_PARAM_LEN, GFP_KERNEL); + if (!slot->info) + goto failed2; + + vslot = kzalloc(sizeof(*vslot), GFP_KERNEL); + if (!vslot) + goto failed3; + + slot->name = vslot->name; + sprintf(slot->name, "%s-iov-%04x", pci_name(dev), id); + slot->ops = &virtfn_slot_ops; + slot->release = &remove_slot; + slot->private = vslot; + vslo...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...t virtfn_slot *vslot; + + slot = kzalloc(sizeof(*slot), GFP_KERNEL); + if (!slot) + return rc; + + slot->info = kzalloc(sizeof(*slot->info), GFP_KERNEL); + if (!slot->info) + goto failed1; + + slot->info->param = kzalloc(PCI_IOV_PARAM_LEN, GFP_KERNEL); + if (!slot->info) + goto failed2; + + vslot = kzalloc(sizeof(*vslot), GFP_KERNEL); + if (!vslot) + goto failed3; + + slot->name = vslot->name; + sprintf(slot->name, "%s-iov-%04x", pci_name(dev), id); + slot->ops = &virtfn_slot_ops; + slot->release = &remove_slot; + slot->private = vslot; + vslo...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
...t virtfn_slot *vslot; + + slot = kzalloc(sizeof(*slot), GFP_KERNEL); + if (!slot) + return rc; + + slot->info = kzalloc(sizeof(*slot->info), GFP_KERNEL); + if (!slot->info) + goto failed1; + + slot->info->param = kzalloc(PCI_IOV_PARAM_LEN, GFP_KERNEL); + if (!slot->info) + goto failed2; + + vslot = kzalloc(sizeof(*vslot), GFP_KERNEL); + if (!vslot) + goto failed3; + + slot->name = vslot->name; + sprintf(slot->name, "%s-iov-%04x", pci_name(dev), id); + slot->ops = &virtfn_slot_ops; + slot->release = &remove_slot; + slot->private = vslot; + vslo...