Skip to content

Commit

Permalink
NVMe: Fix admin IRQ claim on real hardware
Browse files Browse the repository at this point in the history
The admin IRQ is supposed to use the pin-based (or single message MSI)
interrupt.  Accomplish this by filling in entry[0]'s vector with the
INTx irq number.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 8212346 commit 53c9577
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@ static int __devinit nvme_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, dev);
dma_set_mask(&dev->pci_dev->dev, DMA_BIT_MASK(64));
nvme_set_instance(dev);
dev->entry[0].vector = pdev->irq;

dev->bar = ioremap(pci_resource_start(pdev, 0), 8192);
if (!dev->bar) {
Expand Down

0 comments on commit 53c9577

Please sign in to comment.