Skip to content

iommu/riscv: Support Svpbmt memory types in generic_pt

[email protected] kvm kvm-riscv linux-iommu linux-riscv lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review 1 of 2 applied
  2. v32 patches 3 repliesSuperseded
  3. v22 patches 2 repliesApplied
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches13 repliesSuperseded

Changes in v4 from the cover letter

- Fix build warning on 32-bit configurations by using BIT_ULL() for RISCVPT_NC and RISCVPT_IO.
- Link to v3:
https://lore.kernel.org/linux-riscv/[email protected]/
---

Patches in v4 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2iommu/riscv: Advertise Svpbmt support to generic page tabledrivers/iommu/riscv/iommu.c include/linux/generic_pt/common.h+6 -00 repliesApplied
2/2iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bitsdrivers/iommu/generic_pt/fmt/riscv.h+10 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJason GunthorpeAnup PatelGuo RenNutty LiuKevin Tian
1/2R-b R-b R-b R-b R-b
2/2R-b R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v4 thread

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

From: Fangyu Yu <[email protected]>

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.

---
Changes in v4:
- Fix build warning on 32-bit configurations by using BIT_ULL() for RISCVPT_NC and RISCVPT_IO.
- Link to v3:
https://lore.kernel.org/linux-riscv/[email protected]/
---
Changes in v3:
- Include RISCVPT_NC and RISCVPT_IO in riscvpt_attr_from_entry()
so iommupt KUnit tests preserve these descriptor bits..
- Link to v2:
https://lore.kernel.org/linux-riscv/[email protected]
---
Changes in v2:
- Add a comment for PT_FEAT_RISCV_SVPBMT (per Kevin and Jason).
- Clarify PBMT encoding condition, sort PBMT-related bits by
position, and drop the redundant PBMT clear(per Kevin).
- Link to v1:
https://lore.kernel.org/linux-iommu/[email protected]/

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 | 11 ++++++++++-
 drivers/iommu/riscv/iommu.c          |  2 ++
 include/linux/generic_pt/common.h    |  4 ++++
 3 files changed, 16 insertions(+), 1 deletion(-)
Signature · 1 line
2.50.1