如果我只有一个PCIe EP且只有一个功能,我是否需要在设备树(DTS)中使用“中断映射”功能?

时间:2017-02-23 16:55:46

标签: linux interrupt-handling device-tree pci-e

我正在使用传统的PCIe中断机制(Virtual INTx),根据我的PCIe控制器用户指南,在传统的中断机制中断言或取消确认虚拟INTx消息将从EP设备接收,并根据该PCIe核心将生成或分别清除中断信号 如果我只有一个EP而且只有一个功能,我是否需要在设备树(DTS)中使用“中断映射”功能? 据我了解,

  • PCIe EP将发送Assert_INTA消息
  • PCIe RP解码此消息并发送中断到中断生成引脚INTA_OUT
  • 在设计中,INTA_OUT直接连接到中断控制器输入引脚
  • 在Linux内核中,此IRQ将调用PCIe RP ISR以及端点功能ISR 我的理解是正确的吗?

pci @ 0xfb000000 {

                    interrupts = <1 1>;  //PCIe RP INTA  IRQ1,  Only this info is enough ??
                    interrupt-parent = <&pic>;

                    /*Do we need follow info also ??? */
                    #interrupt-cells = <0x1>;
                    interrupt-map-mask = <0x0 0x0 0x0  0x7>;
                    interrupt-map = <  0x0 0x0 0x0  0x1  &pcie_intc 0x1
                                    0x0 0x0 0x0  0x2  &pcie_intc 0x2
                                    0x0 0x0 0x0  0x3  &pcie_intc 0x3
                                    0x0 0x0 0x0  0x4  &pcie_intc 0x4 >;

}

0 个答案:

没有答案