]> git.ipfire.org Git - thirdparty/linux.git/commit
iommupt: Add the RISC-V page table format
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 27 Feb 2026 15:25:36 +0000 (11:25 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2026 12:14:21 +0000 (13:14 +0100)
commite71e00127110dedc6a9e746178282b4dac97ed96
tree4f88c95d9c0ec01406683574112b9c00d5324ba0
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
iommupt: Add the RISC-V page table format

The RISC-V format is a fairly simple 5 level page table not unlike the x86
one. It has optional support for a single contiguous page size of 64k (16
x 4k).

The specification describes a 32-bit format, the general code can support
it via a #define but the iommu side implementation has been left off until
a user comes.

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/generic_pt/.kunitconfig
drivers/iommu/generic_pt/Kconfig
drivers/iommu/generic_pt/fmt/Makefile
drivers/iommu/generic_pt/fmt/defs_riscv.h [new file with mode: 0644]
drivers/iommu/generic_pt/fmt/iommu_riscv64.c [new file with mode: 0644]
drivers/iommu/generic_pt/fmt/riscv.h [new file with mode: 0644]
include/linux/generic_pt/common.h
include/linux/generic_pt/iommu.h