On 2019-02-01 9:44 a.m., Joerg Roedel wrote: > On Thu, Jan 31, 2019 at 11:56:48AM -0700, Logan Gunthorpe wrote: >> @@ -394,6 +402,10 @@ static int set_msi_sid(struct irte *irte, struct >> pci_dev *dev) >> set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16, >> PCI_DEVID(PCI_BUS_NUM(data.alias), >> dev->bus->number)); >> + else if (data.count >= 2 && data.busmatch_count == data.count) >> + set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16, >> + PCI_DEVID(dev->bus->number, >> + dev->bus->number)); > > The dev->bus->number argument for the devfn parameter of PCI_DEVID is > not needed, right? Oh, yes. I think you are right. > Also, this requires at least a comment to document that special case. I'll add a comment for v2. Thanks for the review! Logan _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
- [PATCH 9/9] NTB: Add MSI interrupt support to ntb_transpor... Logan Gunthorpe
- [PATCH 6/9] NTB: Introduce MSI library Logan Gunthorpe
- [PATCH 4/9] NTB: Introduce functions to calculate multi-po... Logan Gunthorpe
- [PATCH 5/9] NTB: Rename ntb.c to support multiple source f... Logan Gunthorpe
- [PATCH 2/9] PCI/MSI: Support allocating virtual MSI interr... Logan Gunthorpe
- Re: [PATCH 2/9] PCI/MSI: Support allocating virtual M... Bjorn Helgaas
- Re: [PATCH 2/9] PCI/MSI: Support allocating virtu... Logan Gunthorpe
- Re: [PATCH 2/9] PCI/MSI: Support allocating v... Bjorn Helgaas
- [PATCH 1/9] iommu/vt-d: Allow interrupts from the entire b... Logan Gunthorpe
- Re: [PATCH 1/9] iommu/vt-d: Allow interrupts from the... Joerg Roedel
- Re: [PATCH 1/9] iommu/vt-d: Allow interrupts from... Logan Gunthorpe
- Re: [PATCH 1/9] iommu/vt-d: Allow interrupts ... Jacob Pan
- Re: [PATCH 1/9] iommu/vt-d: Allow interru... Logan Gunthorpe
- Re: [PATCH 1/9] iommu/vt-d: Allow in... Jacob Pan
- Re: [PATCH 0/9] Support using MSI interrupts in ntb_transp... Dave Jiang
- Re: [PATCH 0/9] Support using MSI interrupts in ntb_t... Logan Gunthorpe
- Re: [PATCH 0/9] Support using MSI interrupts in n... Dave Jiang
- Re: [PATCH 0/9] Support using MSI interrupts ... Logan Gunthorpe
- Re: [PATCH 0/9] Support using MSI interru... Dave Jiang
- Re: [PATCH 0/9] Support using MSI in... Logan Gunthorpe
- Re: [PATCH 0/9] Support using MS... Dave Jiang
