Update igb_uio, sync from git://dpdk.org/dpdk-kmods.

This commit is contained in:
fengbojiang 2023-08-14 19:21:26 +08:00
parent fe40712835
commit 5ada33e91a
2 changed files with 5 additions and 11 deletions

View File

@ -1,7 +1,7 @@
KSRC ?= /lib/modules/`uname -r`/build
KSRC ?= /lib/modules/$(shell uname -r)/build
all:
make -C $(KSRC)/ M=$(PWD)
make -C $(KSRC)/ M=$(CURDIR)
clean:
make -C $(KSRC)/ M=$(PWD) clean
%:
make -C $(KSRC)/ M=$(CURDIR) $@

View File

@ -512,18 +512,12 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
goto fail_release_iomem;
/* set 64-bit DMA mask */
err = pci_set_dma_mask(dev, DMA_BIT_MASK(64));
err = dma_set_mask_and_coherent(&dev->dev, DMA_BIT_MASK(64));
if (err != 0) {
dev_err(&dev->dev, "Cannot set DMA mask\n");
goto fail_release_iomem;
}
err = pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64));
if (err != 0) {
dev_err(&dev->dev, "Cannot set consistent DMA mask\n");
goto fail_release_iomem;
}
/* fill uio infos */
udev->info.name = "igb_uio";
udev->info.version = "0.1";