]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Drop sw_msi from iommu_domain
authorNicolin Chen <nicolinc@nvidia.com>
Tue, 25 Mar 2025 04:05:17 +0000 (21:05 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Mar 2025 13:18:19 +0000 (10:18 -0300)
commit06d54f00f3f5a29cbf43410ac93ee2dd89e3b711
treedb14b960fcafde935df6b930138e250e88e5bcbd
parentec031e1b35ded5acfcef100d9ee7144bbfa4bc12
iommu: Drop sw_msi from iommu_domain

There are only two sw_msi implementations in the entire system, thus it's
not very necessary to have an sw_msi pointer.

Instead, check domain->cookie_type to call the two sw_msi implementations
directly from the core code.

Link: https://patch.msgid.link/r/7ded87c871afcbaac665b71354de0a335087bf0f.1742871535.git.nicolinc@nvidia.com
Suggested-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/dma-iommu.c
drivers/iommu/dma-iommu.h
drivers/iommu/iommu.c
drivers/iommu/iommufd/hw_pagetable.c
include/linux/iommu.h