[ 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
Note: The patch differs from the upstream commit: --- 1: 55c85fa7579dc ! 1: 5c6d205c63555 iommufd: Fail replace if device has not been attached @@ Commit message Reviewed-by: Kevin Tian kevin.tian@intel.com Signed-off-by: Yi Liu yi.l.liu@intel.com Signed-off-by: Jason Gunthorpe jgg@nvidia.com + (cherry picked from commit 55c85fa7579dc2e3f5399ef5bad67a44257c1a48) + Signed-off-by: Yi Liu yi.l.liu@intel.com
## drivers/iommu/iommufd/device.c ## @@ drivers/iommu/iommufd/device.c: iommufd_device_attach_reserved_iova(struct iommufd_device *idev, + return 0; + }
- /* The device attach/detach/replace helpers for attach_handle */ - ++/* The device attach/detach/replace helpers for attach_handle */ ++ +/* 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) + int iommufd_hw_pagetable_attach(struct iommufd_hw_pagetable *hwpt, + struct iommufd_device *idev) { @@ 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.12.y | Success | Success |