aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2025-08-14 16:47:16 +0000
committerJoerg Roedel <[email protected]>2025-08-22 06:43:23 +0000
commit72b6f7cd89cea8251979b65528d302f9c0ed37bf (patch)
tree54386f086e2a4d61ad495443b6ab1376f16282d5 /scripts/generate_rust_target.rs
parentiommu/arm-smmu-v3: Fix smmu_domain->nr_ats_masters decrement (diff)
downloadkernel-72b6f7cd89cea8251979b65528d302f9c0ed37bf.tar.gz
kernel-72b6f7cd89cea8251979b65528d302f9c0ed37bf.zip
iommu/virtio: Make instance lookup robust
Much like arm-smmu in commit 7d835134d4e1 ("iommu/arm-smmu: Make instance lookup robust"), virtio-iommu appears to have the same issue where iommu_device_register() makes the IOMMU instance visible to other API callers (including itself) straight away, but internally the instance isn't ready to recognise itself for viommu_probe_device() to work correctly until after viommu_probe() has returned. This matters a lot more now that bus_iommu_probe() has the DT/VIOT knowledge to probe client devices the way that was always intended. Tweak the lookup and initialisation in much the same way as for arm-smmu, to ensure that what we register is functional and ready to go. Cc: [email protected] Fixes: bcb81ac6ae3c ("iommu: Get DT/ACPI parsing into the proper probe path") Signed-off-by: Robin Murphy <[email protected]> Tested-by: Eric Auger <[email protected]> Link: https://lore.kernel.org/r/308911aaa1f5be32a3a709996c7bd6cf71d30f33.1755190036.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions