Re: [PATCH 1/2] iommu/riscv: Advertise Svpbmt support to generic page table
From: Jason Gunthorpe
Date: Sat Apr 11 2026 - 08:47:33 EST
On Sat, Apr 11, 2026 at 10:22:22AM +0800, fangyu.yu@xxxxxxxxxxxxxxxxx wrote:
> From: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>
>
> The RISC-V IOMMU can optionally support Svpbmt page-based memory types
> in its page table format. When present,the generic page table code can
> use this capability to encode memory attributes (e.g. MMIO vs normal
> memory) in PTEs.
>
> Signed-off-by: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>
> ---
> drivers/iommu/riscv/iommu.c | 2 ++
> include/linux/generic_pt/common.h | 1 +
> 2 files changed, 3 insertions(+)
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
Jason