iommu/tegra: Do not use struct page as the handle for pts
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Apr 2025 16:53:50 +0000 (13:53 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:22:32 +0000 (16:22 +0200)
commita96969a9157650c4cb345bd7323a8f9a3df232f4
treee6e79855551323925eab5a68869bb876b3e3754c
parent50568f87d1e233e8c4893f96e91337510c58bb57
iommu/tegra: Do not use struct page as the handle for pts

Instead use the virtual address and dma_map_single() like as->pd
uses. Introduce a small struct tegra_pt instead of void * to have some
clarity what is using this API and add compile safety during the
conversion.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-v4-c8663abbb606+3f7-iommu_pages_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/tegra-smmu.c