]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/terga: Do not use struct page as the handle for as->pd memory
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Apr 2025 16:53:49 +0000 (13:53 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:22:31 +0000 (16:22 +0200)
commit50568f87d1e233e8c4893f96e91337510c58bb57
tree06736fbdfe4ec69fbad3fb0d94ca07650d0b1071
parent8ffd015db85fea3e15a77027fda6c02ced4d2444
iommu/terga: Do not use struct page as the handle for as->pd memory

Instead use the virtual address. Change from dma_map_page() to
dma_map_single() which works directly on a KVA. Add a type for the pd
table level for clarity.

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