bao-hypervisor icon indicating copy to clipboard operation
bao-hypervisor copied to clipboard

feat(riscv/iommu): update support for RISC-V IOMMU Device Directory Table

Open malejo97 opened this issue 11 months ago • 2 comments

This PR introduces multiple updates to RISC-V IOMMU support regarding the Device Directory Table.

Changes:

  • Add support for IOMMU implementations without MSI translation, where each DC is 32-bytes wide;
  • Add support for multi-level device directory tables;
  • Add mechanism for dynamic selection of IOMMU mode based on the IDs of the devices embedded in the platform.

Validation

  • Tested on CVA6-based SoC w/IOMMU and x4 DMA devices with different ID widths
  • Linux v6.3
  • OpenSBI v1.0

malejo97 avatar Mar 01 '24 15:03 malejo97

Thanks for this @malejo97 ! To fix the failing checks, can you please apply the formatter (just run make format), and shorten the commit messages?

josecm avatar Mar 03 '24 11:03 josecm

Thanks for this @malejo97 ! To fix the failing checks, can you please apply the formatter (just run make format), and shorten the commit messages?

Done. I've merged all commits into a single one with the checks fixed

malejo97 avatar Mar 04 '24 11:03 malejo97