]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/riscv: Use the generic iommu page table
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 27 Feb 2026 15:25:38 +0000 (11:25 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2026 12:14:23 +0000 (13:14 +0100)
commite5ef32191a87da48a0f6cab2ca5f7d8b4a0fa054
tree6988990fbc95fc52f2b4a367415c22f3838da2cb
parente93e4a6363b8f812cb89f2b2d97cbaf017a3d7f8
iommu/riscv: Use the generic iommu page table

This is a fairly straightforward conversion of the RISC-V iommu driver to
use the generic iommu page table code.

Invalidation stays as it is now with the driver pretending to implement
simple range based invalidation even though the HW is more like ARM SMMUv3
than AMD where the HW implements a single-PTE based invalidation. Future
work to extend the generic invalidate mechanism to support more ARM-like
semantics would benefit this driver as well.

Delete the existing page table code.

Tested-by: Vincent Chen <vincent.chen@sifive.com>
Acked-by: Paul Walmsley <pjw@kernel.org> # arch/riscv
Reviewed-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Tested-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/riscv/Kconfig
drivers/iommu/riscv/iommu.c