MSI功能的不同PCI设备的地址字段是否相同?

发布于 2025-01-28 17:58:42 字数 723 浏览 4 评论 0原文

我正在使用Linux(Ubuntu 18.04)运行的基于ARM64的董事会。在此设备的另一端,有一个通过PCIE连接的FPGA,该FPGA是端点,基于ARM的板是根复杂的。我为此写了司机。 FPGA似乎正在产生MSI中断,但臂板不得不收到它。 FPGA将MSI数据写入0x0000000000FFFFF000地址。也启用了总线掌握。 我在臂板上检查了 /proc /中断文件,似乎正在成功地注册了使用适当的IRQ号码的中断,也可以在LSPCI -VVV的输出中看到。 有一个连接到另一个PCIE端口的WiFi卡。 MSI功能显示如下(WiFi卡和FPGA)。

FPGA:

Capabilities: [50] MSI: Enable+ Count=1/4 Maskable- 64bit+
    Address: 00000000fffff000  Data: 0000

WiFi卡:

Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Address: 00000000fffff000  Data: 0000

我的问题是,两个设备在其“地址”字段中是否具有相同的值。 IRQ数字在两个设备上都是不同的,并且没有与其他任何东西共享。我从 /proc /intrupts文件中确认了它。如果他们有相同的地址,我写在驾驶员中的中断处理程序将如何被打电话给?也就是说,如何将中断与我的驾驶员使用的IRQ号码路由?

I am working on an arm64 based board, running on Linux (Ubuntu 18.04). On the other end of this device, there is an FPGA connected via PCIe which is endpoint and arm based board is root complex. I have written driver for that.
The FPGA seems to be generating the MSI interrupt, but somehow the arm board is not receiving it. FPGA writes MSI data to 0x00000000fffff000 address. Bus mastering is also enabled.
I checked /proc/interrupts file on arm board, and it seems to be registering the interrupt successfully with an appropriate IRQ number, which can also be seen in output of lspci -vvv.
There is a WiFi card connected to another PCIe port.
MSI Capabilities are displayed as follows for both (WiFi card and FPGA).

FPGA:

Capabilities: [50] MSI: Enable+ Count=1/4 Maskable- 64bit+
    Address: 00000000fffff000  Data: 0000

WiFi card:

Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Address: 00000000fffff000  Data: 0000

My question is, can both the devices have same value in their "Address" field. IRQ numbers are different for both the devices and are not being shared with anything else. I confirmed it from /proc/interrupts file. If they have the same address, how the interrupt handler I have written in my driver will get called? That is, how interrupt will get routed to the IRQ number that is registered to be used with my driver?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文