PCIe legacy IRQ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCIe legacy IRQ

1,787 Views
nathangouhier
Contributor I

Hello,

I get some trouble with the PCIe on the phyflex board for imx6.

The main problem is that the IMX6 doesn’t catch PCIe INTx interrupts.

The driver requests the IRQ 155.

Is there something else to do to enable interrupts than a simple "request_irq"?


Any suggestion is welcome.

Thanks!



Labels (2)
0 Kudos
2 Replies

986 Views
kenmaier
Contributor I

Is anyone else seeing this?  I am running the Linux 4.9.0-rc3 kernel with the included ath9k wireless pcie device driver.  I never see the device driver interupt handler called (ath_isr()).  The interrupt is requested with: 

request_irq(pdev->irq, ath_isr, IRQF_SHARED, "ath9k", sc);  // With pdev->irq == 321.

/proc/interrupts shows the following:

      CPU0
16: 2607 GIC-0 29 Edge twd
17: 0 GPC 55 Level i.MX Timer Tick
20: 0 GPC 120 Level mx6-pcie-msi
42: 0 GPC 81 Level 20c0000.wdog
43: 0 GPC 49 Level imx_thermal
48: 0 GPC 19 Level rtc alarm
53: 8 GPC 2 Level sdma
54: 1034 GPC 118 Level 2188000.ethernet
55: 0 GPC 119 Level 2188000.ethernet
56: 52 GPC 22 Level mmc0
57: 7235 GPC 24 Level mmc1
58: 144 GPC 36 Level 21a0000.i2c
59: 403 GPC 37 Level 21a4000.i2c
60: 458 GPC 38 Level 21a8000.i2c
61: 0 GPC 35 Level 21f8000.i2c
63: 1 GPC 27 Level 21e8000.serial
64: 199 GPC 30 Level 21f4000.serial
151: 0 gpio-mxc 22 Edge msp_nInt
167: 15 gpio-mxc 6 Level 1-0053
168: 0 gpio-mxc 7 Edge tether_sense
171: 0 gpio-mxc 10 Edge battery_inserted
172: 0 gpio-mxc 11 Edge reset_button
208: 1 gpio-mxc 15 Level FPGA
213: 0 gpio-mxc 20 Edge wakeup
289: 0 PCI-MSI 0 Edge PCIe PME
321: 0 GPC 123 Level ath9k
Err: 0

The imx6 dts file declares the pcie interrupt-map with GIC_SPI of 123.

GPC isr mask reg for interrupt 155 is clear - 0x020DC014 (0x76f6b014): 0xF63FFFFF

Does the Linux kernel for the imx6 support legacy interrupts?  Can someone please confirm?

Thanks for any help!!

0 Kudos

986 Views
zhangxin
Contributor I

Are your problem solved?We also encountered problems using imx6 RC mode

0 Kudos