]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iommu/sva: Fix SVA handle sharing in multi device case
authorZhangfei Gao <zhangfei.gao@linaro.org>
Tue, 27 Feb 2024 06:48:21 +0000 (06:48 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 1 Mar 2024 12:53:58 +0000 (13:53 +0100)
commit6384c56c99d98c84afea5b9ec7029a6e153ae431
treea00eace3ed19343cb747fb86e4159eaf2fc348c5
parentd206a76d7d2726f3b096037f2079ce0bd3ba329b
iommu/sva: Fix SVA handle sharing in multi device case

iommu_sva_bind_device will directly goto out in multi-device
case when found existing domain, ignoring list_add handle,
which causes the handle to fail to be shared.

Fixes: 65d4418c5002 ("iommu/sva: Restore SVA handle sharing")
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240227064821.128-1-zhangfei.gao@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu-sva.c