diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-02-01 16:23:39 -0500 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 15:52:53 -0400 |
commit | 2930353f9f2b9e4629e935acd970cb73c1171229 (patch) | |
tree | 907563f0245bd488935cbd922f665759e4ccd68a /drivers/block/nvme.c | |
parent | f64d3365a3e5cb46e69db7e2c82a7cb9a5bed1b8 (diff) |
NVMe: Allow queues to be allocated above 4GB
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>
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r-- | drivers/block/nvme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 128fd70031a9..46f872021369 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -1110,7 +1110,8 @@ static int __devinit nvme_probe(struct pci_dev *pdev, | |||
1110 | INIT_LIST_HEAD(&dev->namespaces); | 1110 | INIT_LIST_HEAD(&dev->namespaces); |
1111 | dev->pci_dev = pdev; | 1111 | dev->pci_dev = pdev; |
1112 | pci_set_drvdata(pdev, dev); | 1112 | pci_set_drvdata(pdev, dev); |
1113 | dma_set_mask(&dev->pci_dev->dev, DMA_BIT_MASK(64)); | 1113 | dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); |
1114 | dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64)); | ||
1114 | nvme_set_instance(dev); | 1115 | nvme_set_instance(dev); |
1115 | dev->entry[0].vector = pdev->irq; | 1116 | dev->entry[0].vector = pdev->irq; |
1116 | 1117 | ||