Re: [RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-08-12 Thread Megha Dey
On Sun, 2019-08-11 at 09:18 +0200, Thomas Gleixner wrote: > On Tue, 6 Aug 2019, Megha Dey wrote: > > > > > On Sat, 2019-06-29 at 10:08 +0200, Thomas Gleixner wrote: > > > > > > Megha, > > > > > > On Fri, 21 Jun 2019, Megha Dey wrote: > > > > > > > > > > > > +static int

Re: [RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-08-11 Thread Thomas Gleixner
On Tue, 6 Aug 2019, Megha Dey wrote: > On Sat, 2019-06-29 at 10:08 +0200, Thomas Gleixner wrote: > > Megha, > > > > On Fri, 21 Jun 2019, Megha Dey wrote: > > > > > > +static int free_msi_irqs_grp(struct pci_dev *dev, int group_id) > > > +{ > > > > > > + > > > + for_each_pci_msi_entry(entry,

Re: [RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-08-06 Thread Megha Dey
On Sat, 2019-06-29 at 10:08 +0200, Thomas Gleixner wrote: > Megha, > > On Fri, 21 Jun 2019, Megha Dey wrote: > > > > +static int free_msi_irqs_grp(struct pci_dev *dev, int group_id) > > +{ > > > > + > > + for_each_pci_msi_entry(entry, dev) { > > + if (entry->group_id == group_id &&

Re: [RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-06-29 Thread Thomas Gleixner
Megha, On Fri, 21 Jun 2019, Megha Dey wrote: > +static int free_msi_irqs_grp(struct pci_dev *dev, int group_id) > +{ > + > + for_each_pci_msi_entry(entry, dev) { > + if (entry->group_id == group_id && entry->irq) > + for (i = 0; i < entry->nvec_used; i++) > +

[RFC V1 RESEND 5/6] PCI/MSI: Free MSI-X resources by group

2019-06-21 Thread Megha Dey
Currently, the pci_free_irq_vectors() frees all the allocated resources associated with a PCIe device when the device is being shut down. With the introduction of dynamic allocation of MSI-X vectors by group ID, there should exist an API which can free the resources allocated only to a particular