diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-22 19:12:21 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-10 09:10:20 -0400 |
commit | 4be6bfe2af829efa6da91ca33f9f2fcb3e37bc89 (patch) | |
tree | 83a0a5322d2ca80c894dc14b0ed6cbd848a339d5 | |
parent | 934f585e928e250b9428fccdcb7c1e13a6c24e76 (diff) |
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>
-rw-r--r-- | arch/x86/pci/xen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 4a9be6ddf054..82c62d689da8 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c | |||
@@ -299,7 +299,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | |||
299 | 299 | ||
300 | pci_read_config_dword(dev, pos + PCI_MSIX_TABLE, | 300 | pci_read_config_dword(dev, pos + PCI_MSIX_TABLE, |
301 | &table_offset); | 301 | &table_offset); |
302 | bir = (u8)(table_offset & PCI_MSIX_FLAGS_BIRMASK); | 302 | bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR); |
303 | 303 | ||
304 | map_irq.table_base = pci_resource_start(dev, bir); | 304 | map_irq.table_base = pci_resource_start(dev, bir); |
305 | map_irq.entry_nr = msidesc->msi_attrib.entry_nr; | 305 | map_irq.entry_nr = msidesc->msi_attrib.entry_nr; |