Skip to content

Commit 322eaa0

Browse files
Govindarajulu Varadarajandavem330
authored andcommitted
enic: set DMA mask to 47 bit
In commit 624dbf5 ("driver/net: enic: Try DMA 64 first, then failover to DMA") DMA mask was changed from 40 bits to 64 bits. Hardware actually supports only 47 bits. Fixes: 624dbf5 ("driver/net: enic: Try DMA 64 first, then failover to DMA") Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent af8d3c7 commit 322eaa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/cisco/enic/enic_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,11 +2747,11 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
27472747
pci_set_master(pdev);
27482748

27492749
/* Query PCI controller on system for DMA addressing
2750-
* limitation for the device. Try 64-bit first, and
2750+
* limitation for the device. Try 47-bit first, and
27512751
* fail to 32-bit.
27522752
*/
27532753

2754-
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
2754+
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(47));
27552755
if (err) {
27562756
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
27572757
if (err) {
@@ -2765,10 +2765,10 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
27652765
goto err_out_release_regions;
27662766
}
27672767
} else {
2768-
err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
2768+
err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(47));
27692769
if (err) {
27702770
dev_err(dev, "Unable to obtain %u-bit DMA "
2771-
"for consistent allocations, aborting\n", 64);
2771+
"for consistent allocations, aborting\n", 47);
27722772
goto err_out_release_regions;
27732773
}
27742774
using_dac = 1;

0 commit comments

Comments
 (0)