NVMe: Allow queues to be allocated above 4GB
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 1 Feb 2011 21:23:39 +0000 (16:23 -0500)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:52:53 +0000 (15:52 -0400)
Need to call dma_set_coherent_mask() to allow queues to be allocated
above 4GB.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c

index 128fd70031a9d1c44d9e13d1efa34233728eae95..46f87202136953cab4f002070ed410fbc4ae47d9 100644 (file)
@@ -1110,7 +1110,8 @@ static int __devinit nvme_probe(struct pci_dev *pdev,
        INIT_LIST_HEAD(&dev->namespaces);
        dev->pci_dev = pdev;
        pci_set_drvdata(pdev, dev);
-       dma_set_mask(&dev->pci_dev->dev, DMA_BIT_MASK(64));
+       dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
+       dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64));
        nvme_set_instance(dev);
        dev->entry[0].vector = pdev->irq;