PCIE0_DMA_INT interrupt is not generating in I.MX8QM board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PCIE0_DMA_INT interrupt is not generating in I.MX8QM board

926件の閲覧回数
mallibeerala
Contributor III

Hi,

I am using I.MX8QM board and configuring PCIe as RC and sending data to my custom EP through PCIe DMA.

Now I am trying with interrupts but PCIE0_DMA_INT is not generating.

In my dts file I am configuring "GIC_SPI 70" for MSI, "GIC_SPI 72" for dma.

In my software while i am reading with "of_irq_get(node, 1)" it returns 132, "of_irq_get(node, 1)" it returns 131, but as per my understanding it should be "72 + 32 = 104".

But in /proc/interrupt, 72 location showing as edma0-chan5-rx.

How can I enable PCIE0_DMA_INT, please help us to resolve this Issue.

Thanks & Regards,
Mallikarjuna

0 件の賞賛
返信
3 返答(返信)

910件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @mallibeerala

 

In my software while i am reading with "of_irq_get(node, 1)" it returns 132, "of_irq_get(node, 1)" it returns 131, but as per my understanding it should be "72 + 32 = 104".

--> In Linux kernel, code is using virtual irq number virq, below code will map hwirq(104) to virq.

gic_irq_domain_map(domain, virq + i, hwirq + i);

  So if you have defined correct irq number in dts, believe it.

 

0 件の賞賛
返信

903件の閲覧回数
mallibeerala
Contributor III

hi Zhiming_Liu,

In /proc/interrupt, irq number is virtual irq or hardware irq.

In dummy request_irq, when ever I am providing irq number it is reflecting at /proc/interrupt with same irq number

Thanks,
Mallikarjuna

0 件の賞賛
返信

897件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

In dummy request_irq, when ever I am providing irq number it is reflecting at /proc/interrupt with same irq number

-->Virtual irq number.

0 件の賞賛
返信