Skip to content

Commit b064f70

Browse files
committed
dpdk: update WC patch for vfio for ubuntu lts
VFIO-PCI driver does not support write combine. To activate this feature, the patch that checks if PCI BAR is prefetchable must be added. ubuntu 24.04 LTS keeps getting kernel updates which caused problem when applying ENA vfio patch.
1 parent be7fbb3 commit b064f70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

userspace/dpdk/enav2-vfio-patch/patches/linux-6.8-vfio-wc.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff --git a/drivers/vfio/pci/vfio_pci_core.c b/drivers/vfio/pci/vfio_pci_core.c
22
index 1cbc990d42e0..0af050fa7ac2 100644
33
--- a/drivers/vfio/pci/vfio_pci_core.c
44
+++ b/drivers/vfio/pci/vfio_pci_core.c
5-
@@ -1745,7 +1745,12 @@ int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma
5+
+@@ -1765,7 +1765,12 @@ int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma^
66
if (ret)
77
return ret;
88

@@ -16,7 +16,7 @@ index 1cbc990d42e0..0af050fa7ac2 100644
1616
if (!vdev->barmap[index]) {
1717
pci_release_selected_regions(pdev, 1 << index);
1818
return -ENOMEM;
19-
@@ -1753,7 +1758,10 @@ int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma
19+
+@@ -1778,7 +1783,10 @@ int vfio_pci_core_mmap(struct vfio_device *core_vdev, struct vm_area_struct *vma
2020
}
2121

2222
vma->vm_private_data = vdev;

0 commit comments

Comments
 (0)