This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320C6657:C6657 PCIe 端点向根复合体发送 MSI 中断失败

Guru**** 2478765 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1459991/tms320c6657-c6657-pcie-endpoint-send-msi-interrupt-to-root-complex-fails

器件型号:TMS320C6657

工具与软件:

您好!

我正在尝试从 C6657端点(EP)向远程根复合体 PCIe 器件发送 MSI 中断、但在根复合体端不会发生 MSI 中断。

这是我做了什么:

1.在 C6657端点上、我将 PCIe 出站转换设置为远程 PCIe 根复合体设备的 BAR0地址(0xE0000000)。

2.在 C6657端点上、我将 MSI_ENABLE = 1和 MSI Lower Address Register 设置为远程 PCIe 根复合体设备的 BAR0地址(0xE0000000)、如下所示。

   msiCapReg.msiEn = 0x01;
   msiLoReg.addr     = 0xE0000000;
   msiUpReg.addr    = 0x00000000;
   msiDataReg.data   = 0x00;

   //将更新后的状态写回
   如果((RetVal = PCIe_writeRegs (PCIe_handle、PCIe_location_local、&regs))!= PCIe_RET_OK){
           //错误、适当处理。
   }

3.在 C6657端点上、我对 PCIe BAR0基址(0x6000000)+ MSI IRQ 偏移(0x54)启动 MSI 中断、如下所示:

   //发送中断。
   *((volatile u32*) 0x60000054)= 0x00;

我是不是做错了什么我丢失了????

感谢您的帮助。

Jan