Skip to content

Commit 4be6bfe

Browse files
bjorn-helgaaskonradwilk
authored andcommitted
xen/pci: Use PCI_MSIX_TABLE_BIR, not PCI_MSIX_FLAGS_BIRMASK
PCI_MSIX_FLAGS_BIRMASK is mis-named because the BIR mask is in the Table Offset register, not the flags ("Message Control" per spec) register. Acked-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
1 parent 934f585 commit 4be6bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/pci/xen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
299299

300300
pci_read_config_dword(dev, pos + PCI_MSIX_TABLE,
301301
&table_offset);
302-
bir = (u8)(table_offset & PCI_MSIX_FLAGS_BIRMASK);
302+
bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR);
303303

304304
map_irq.table_base = pci_resource_start(dev, bir);
305305
map_irq.entry_nr = msidesc->msi_attrib.entry_nr;

0 commit comments

Comments
 (0)