kernel: Update kernel 4.9 to version 4.9.237
[openwrt/staging/hauke.git] / target / linux / layerscape / patches-4.9 / 818-vfio-support-layerscape.patch
index 84eda53467bc645d09a65f89e48b180c2eae5077..1840e9e261d1260e0854717f07b7f74e2b36435a 100644 (file)
@@ -1086,7 +1086,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
  
  #define DRIVER_VERSION  "0.2"
  #define DRIVER_AUTHOR   "Alex Williamson <alex.williamson@redhat.com>"
-@@ -733,6 +735,27 @@ static void vfio_test_domain_fgsp(struct
+@@ -763,6 +765,27 @@ static void vfio_test_domain_fgsp(struct
        __free_pages(pages, order);
  }
  
@@ -1114,7 +1114,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
  static int vfio_iommu_type1_attach_group(void *iommu_data,
                                         struct iommu_group *iommu_group)
  {
-@@ -741,6 +764,8 @@ static int vfio_iommu_type1_attach_group
+@@ -771,6 +794,8 @@ static int vfio_iommu_type1_attach_group
        struct vfio_domain *domain, *d;
        struct bus_type *bus = NULL;
        int ret;
@@ -1123,7 +1123,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
  
        mutex_lock(&iommu->lock);
  
-@@ -787,11 +812,15 @@ static int vfio_iommu_type1_attach_group
+@@ -817,11 +842,15 @@ static int vfio_iommu_type1_attach_group
        if (ret)
                goto out_domain;
  
@@ -1141,7 +1141,7 @@ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
                pr_warn("%s: No interrupt remapping support.  Use the module param \"allow_unsafe_interrupts\" to enable VFIO IOMMU support on this platform\n",
                       __func__);
                ret = -EPERM;
-@@ -833,6 +862,12 @@ static int vfio_iommu_type1_attach_group
+@@ -863,6 +892,12 @@ static int vfio_iommu_type1_attach_group
        if (ret)
                goto out_detach;