nvme-pci: don't fall back to a 32-bit DMA mask
authorChristoph Hellwig <hch@lst.de>
Fri, 28 Jun 2019 07:17:48 +0000 (09:17 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Jul 2019 20:44:44 +0000 (13:44 -0700)
Since Linux 5.0 drivers can safely set the largest DMA mask supported
by the device, and don't need fallbacks to work around the dma mapping
implementations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/pci.c

index f50013369cc5d4a1d7530f91962306a9dbe00fce..49c1fc9907a641f4db305e142d8706c89f3b5cbc 100644 (file)
@@ -2289,8 +2289,7 @@ static int nvme_pci_enable(struct nvme_dev *dev)
 
        pci_set_master(pdev);
 
-       if (dma_set_mask_and_coherent(dev->dev, DMA_BIT_MASK(64)) &&
-           dma_set_mask_and_coherent(dev->dev, DMA_BIT_MASK(32)))
+       if (dma_set_mask_and_coherent(dev->dev, DMA_BIT_MASK(64)))
                goto disable;
 
        if (readl(dev->bar + NVME_REG_CSTS) == -1) {