[PATCH 0/2] iommu/riscv: Support Svpbmt memory types in generic_pt

From: fangyu . yu

Date: Fri Apr 10 2026 - 22:22:44 EST


From: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>

RISC-V Svpbmt adds page-based memory types (PBMT) to PTEs, allowing
mappings to be tagged as e.g. normal memory, non-cacheable memory, or
I/O.

This series wires the RISC-V IOMMU Svpbmt capability into generic_pt
and uses PBMT to encode device memory attributes for IOMMU mappings.

This series builds on top of the new RISC-V IOMMU page table patches:
https://patch.msgid.link/r/0-v3-9dbf0a72a51c+302-iommu_pt_riscv_jgg@xxxxxxxxxx

Fangyu Yu (2):
iommu/riscv: Advertise Svpbmt support to generic page table
iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bits

drivers/iommu/generic_pt/fmt/riscv.h | 9 +++++++++
drivers/iommu/riscv/iommu.c | 2 ++
include/linux/generic_pt/common.h | 1 +
3 files changed, 12 insertions(+)

--
2.50.1