]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/amd: Improve amd_iommu_release_device()
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 30 Oct 2024 06:35:56 +0000 (06:35 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Oct 2024 10:06:48 +0000 (11:06 +0100)
commit18f5a6b34b0696cd90b182e6af819bbfc6901c2a
treec4f8c1a675eeea82ab83813e6430c21789916b94
parenta0e086b16eca3fe58d30595b0b08d31f8ec7f74e
iommu/amd: Improve amd_iommu_release_device()

Previous patch added ops->release_domain support. Core will attach
devices to release_domain->attach_dev() before calling this function.
Devices are already detached their current domain and attached to
blocked domain.

This is mostly dummy function now. Just throw warning if device is still
attached to domain.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20241030063556.6104-13-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c