Bug 21688 - Linux RISC-V IOMMU Support
Summary: Linux RISC-V IOMMU Support
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 6.6.y-3
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-09 10:52 UTC by gaorui
Modified: 2025-07-01 15:08 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaorui 2025-06-09 10:52:14 UTC
Description of problem:
RISC-V IOMMU为RISCV架构系统的输入和输出设备提供内存地址转换和隔离,支持每个设备的转换上下文、共享进程地址空间(包括PCIe规范中的ATS和PRI组件)、两级地址转换以及MSI重映射。

目前暂时只支持设备树方式配置

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
使用qemu模拟,使用如下命令
$ qemu-system-riscv64 \
      -M virt,aia=aplic-imsic,aia-guests=5 \
      -device riscv-iommu-pci,addr=1.0,vendor-id=0x1efd,device-id=0xedf1 \
      -device e1000e,netdev=net1 -netdev user,id=net1,net=192.168.0.0/24 \
      -device e1000e,netdev=net2 -netdev user,id=net2,net=192.168.200.0/24 \
       ......

Actual results:
       系统启动后会创建两个e1000e网卡的iommu groups组

Expected results:


Additional info:
Comment 1 小龙 admin 2025-07-01 15:08:28 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5473