mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
f64d3365a3
commit
2930353f9f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue