[ Sasha's backport helper bot ]
Hi,
Summary of potential issues: ⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: 55c85fa7579dc2e3f5399ef5bad67a44257c1a48
Status in newer kernel trees: 6.14.y | Not found 6.13.y | Not found 6.12.y | Not found
Note: The patch differs from the upstream commit: --- 1: 55c85fa7579dc ! 1: 8310b5beec2ea iommufd: Fail replace if device has not been attached @@ Commit message Signed-off-by: Jason Gunthorpe jgg@nvidia.com
## drivers/iommu/iommufd/device.c ## -@@ drivers/iommu/iommufd/device.c: iommufd_device_attach_reserved_iova(struct iommufd_device *idev, - - /* The device attach/detach/replace helpers for attach_handle */ +@@ drivers/iommu/iommufd/device.c: iommufd_device_do_attach(struct iommufd_device *idev, + return NULL; + }
+/* Check if idev is attached to igroup->hwpt */ +static bool iommufd_device_is_attached(struct iommufd_device *idev) @@ drivers/iommu/iommufd/device.c: iommufd_device_attach_reserved_iova(struct iommu + return false; +} + - static int iommufd_hwpt_attach_device(struct iommufd_hw_pagetable *hwpt, - struct iommufd_device *idev) - { + static struct iommufd_hw_pagetable * + iommufd_device_do_replace(struct iommufd_device *idev, + struct iommufd_hw_pagetable *hwpt) @@ drivers/iommu/iommufd/device.c: iommufd_device_do_replace(struct iommufd_device *idev, goto err_unlock; } ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.6.y | Success | Success |