]> www.infradead.org Git - users/willy/xarray.git/commit
iommu/pages: Remove iommu_alloc_page/pages()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Apr 2025 16:54:08 +0000 (13:54 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:22:50 +0000 (16:22 +0200)
commit28024569e8bd496f9227fbe37e23f898e4674e54
tree5fa72421f32cafae420d4d1922e2c8868fa93658
parentd50aaa4a9ffb0149d2187dfe3477300561f06fec
iommu/pages: Remove iommu_alloc_page/pages()

A few small changes to the remaining drivers using these will allow
them to be removed:

- Exynos wants to allocate fixed 16K/8K allocations
- Rockchip already has a define SPAGE_SIZE which is used by the
  dma_map immediately following, using SPAGE_ORDER which is a lg2size
- tegra has size constants already for its two allocations

Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20-v4-c8663abbb606+3f7-iommu_pages_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c
drivers/iommu/iommu-pages.h
drivers/iommu/rockchip-iommu.c
drivers/iommu/tegra-smmu.c