Re: [PATCH 11/24] iommu/amd: Export amd_iommu_alloc_dev_data() helper

Jason Gunthorpe <[email protected]>
Newsgroups dev.linux.lists.iommu,org.kernel.vger.linux-kernel
Message-ID <178759229634.3131778.3315395924169031004.b4-review@b4>
On Mon, 27 Jul 2026 13:29:00 +0000, Suravee Suthikulpanit <[email protected]> wrote:
> AMD vIOMMU requires programming the DTE of the IOMMU device ID to set up
> IPA mapping, and current DTE helper functions (for setting / clearing)
> require struct iommu_dev_data.
> 
> However, the IOMMU device does not go through the normal PCI device attach
> path, which would allocate the struct iommu_dev_data. So, the driver needs
> to manually allocate and initialize the struct iommu_dev_data for IOMMU
> in order to reuse the helper functions.
> 
> [...]

Reviewed-by: Jason Gunthorpe <[email protected]>

-- 
Jason
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.