Displaying 7 results from an estimated 7 matches for "vdpa_free_vq_irq".
2020 Jul 17
0
[PATCH V2 3/6] vDPA: implement IRQ offloading helpers in vDPA core
On 2020/7/16 ??7:23, Zhu Lingshan wrote:
> This commit implements IRQ offloading helpers
Let's say "vq irq allocate/free helpers" here.
> in vDPA core by
> introducing two couple of functions:
>
> vdpa_alloc_vq_irq() and vdpa_free_vq_irq(): request irq and free
> irq, will setup irq offloading.
>
> vdpa_setup_irq() and vdpa_unsetup_irq(): supportive functions,
> will call vhost_vdpa helpers.
>
> Signed-off-by: Zhu Lingshan <lingshan.zhu at intel.com>
> Suggested-by: Jason Wang <jasowang at redhat.com&g...
2020 Jul 13
0
[PATCH 4/7] vDPA: implement IRQ offloading helpers in vDPA core
On 2020/7/12 ??10:49, Zhu Lingshan wrote:
> This commit implements IRQ offloading helpers in vDPA core by
> introducing two couple of functions:
>
> vdpa_alloc_vq_irq() and vdpa_free_vq_irq(): request irq and free
> irq, will setup irq offloading if irq_bypass is enabled.
>
> vdpa_setup_irq() and vdpa_unsetup_irq(): supportive functions,
> will call vhost_vdpa helpers.
>
> Signed-off-by: Zhu Lingshan <lingshan.zhu at intel.com>
This patch should go before pat...
2020 Jul 15
2
[PATCH 6/7] ifcvf: replace irq_request/free with helpers in vDPA core.
...hw *vf = &adapter->vf;
>>> +??? struct vdpa_device *vdpa = &adapter->vdpa;
>>> ????? int i;
>>> ? ? ????? for (i = 0; i < queues; i++)
>>> -??????? devm_free_irq(&pdev->dev, vf->vring[i].irq, &vf->vring[i]);
>>> +??????? vdpa_free_vq_irq(&pdev->dev, vdpa, vf->vring[i].irq, i,
>>> &vf->vring[i]);
>>> ? ????? ifcvf_free_irq_vectors(pdev);
>>> ? }
>>> @@ -60,6 +61,7 @@ static int ifcvf_request_irq(struct ifcvf_adapter
>>> *adapter)
>>> ? {
>>> ????? stru...
2020 Jul 15
2
[PATCH 6/7] ifcvf: replace irq_request/free with helpers in vDPA core.
...hw *vf = &adapter->vf;
>>> +??? struct vdpa_device *vdpa = &adapter->vdpa;
>>> ????? int i;
>>> ? ? ????? for (i = 0; i < queues; i++)
>>> -??????? devm_free_irq(&pdev->dev, vf->vring[i].irq, &vf->vring[i]);
>>> +??????? vdpa_free_vq_irq(&pdev->dev, vdpa, vf->vring[i].irq, i,
>>> &vf->vring[i]);
>>> ? ????? ifcvf_free_irq_vectors(pdev);
>>> ? }
>>> @@ -60,6 +61,7 @@ static int ifcvf_request_irq(struct ifcvf_adapter
>>> *adapter)
>>> ? {
>>> ????? stru...
2020 Jul 13
0
[PATCH 6/7] ifcvf: replace irq_request/free with helpers in vDPA core.
...v *pdev = adapter->pdev;
> struct ifcvf_hw *vf = &adapter->vf;
> + struct vdpa_device *vdpa = &adapter->vdpa;
> int i;
>
>
> for (i = 0; i < queues; i++)
> - devm_free_irq(&pdev->dev, vf->vring[i].irq, &vf->vring[i]);
> + vdpa_free_vq_irq(&pdev->dev, vdpa, vf->vring[i].irq, i, &vf->vring[i]);
>
> ifcvf_free_irq_vectors(pdev);
> }
> @@ -60,6 +61,7 @@ static int ifcvf_request_irq(struct ifcvf_adapter *adapter)
> {
> struct pci_dev *pdev = adapter->pdev;
> struct ifcvf_hw *vf = &...
2020 Jul 15
0
[PATCH 6/7] ifcvf: replace irq_request/free with helpers in vDPA core.
...> > > +??? struct vdpa_device *vdpa = &adapter->vdpa;
> > > > ????? int i;
> > > > ? ? ????? for (i = 0; i < queues; i++)
> > > > -??????? devm_free_irq(&pdev->dev, vf->vring[i].irq, &vf->vring[i]);
> > > > +??????? vdpa_free_vq_irq(&pdev->dev, vdpa, vf->vring[i].irq, i,
> > > > &vf->vring[i]);
> > > > ? ????? ifcvf_free_irq_vectors(pdev);
> > > > ? }
> > > > @@ -60,6 +61,7 @@ static int ifcvf_request_irq(struct
> > > > ifcvf_adapter *adapter)
> &g...
2020 Jul 17
0
[PATCH V2 5/6] ifcvf: replace irq_request/free with vDPA helpers
...v *pdev = adapter->pdev;
> struct ifcvf_hw *vf = &adapter->vf;
> + struct vdpa_device *vdpa = &adapter->vdpa;
> int i;
>
>
> for (i = 0; i < queues; i++)
> - devm_free_irq(&pdev->dev, vf->vring[i].irq, &vf->vring[i]);
> + vdpa_free_vq_irq(&pdev->dev, vdpa, vf->vring[i].irq, i, &vf->vring[i]);
>
> ifcvf_free_irq_vectors(pdev);
> }
> @@ -60,6 +61,7 @@ static int ifcvf_request_irq(struct ifcvf_adapter *adapter)
> {
> struct pci_dev *pdev = adapter->pdev;
> struct ifcvf_hw *vf = &...