i.MX6Q PCIe error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,840件の閲覧回数
jimmyli
Contributor V

Hi,

      Our customer is debugging PCIe communitcation with other device, it is a problem happened that we can't solve the problem.

      Hope you can help us to solve it !!!

      Thanks very much.

 

      --Platform: MCIMX6Q-SDB

     --Linux ver:      L4.1.15    dtb: imx6q-sabresd.dtb

     --Question:

        PCIe device can be recognized, and probes our PCIe driver. But the problem happens when PCIe driver request MSI interrupt from pci_msi_setup_msi_irqs, return -28.  Our PCIe device needs 15 interrupts.

 

0 件の賞賛
返信
1 解決策
1,830件の閲覧回数
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Jimmy,

 you need to select MSI in kernel.

See drivers/pci/Kconfig

.......

config PCI_MSI
bool "Message Signaled Interrupts (MSI and MSI-X)"
depends on PCI
select GENERIC_MSI_IRQ
help
This allows device drivers to enable MSI (Message Signaled
Interrupts). Message Signaled Interrupts enable a device to
generate an interrupt using an inbound Memory Write on its
PCI bus instead of asserting a device IRQ pin.

Use of PCI MSI interrupts can be disabled at kernel boot time
by using the 'pci=nomsi' option. This disables MSI for the
entire system.

If you don't know what to do here, say Y.

config PCI_MSI_IRQ_DOMAIN
bool
depends on PCI_MSI
select GENERIC_MSI_IRQ_DOMAIN

......

Have a nice day!

Weidong

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,831件の閲覧回数
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Jimmy,

 you need to select MSI in kernel.

See drivers/pci/Kconfig

.......

config PCI_MSI
bool "Message Signaled Interrupts (MSI and MSI-X)"
depends on PCI
select GENERIC_MSI_IRQ
help
This allows device drivers to enable MSI (Message Signaled
Interrupts). Message Signaled Interrupts enable a device to
generate an interrupt using an inbound Memory Write on its
PCI bus instead of asserting a device IRQ pin.

Use of PCI MSI interrupts can be disabled at kernel boot time
by using the 'pci=nomsi' option. This disables MSI for the
entire system.

If you don't know what to do here, say Y.

config PCI_MSI_IRQ_DOMAIN
bool
depends on PCI_MSI
select GENERIC_MSI_IRQ_DOMAIN

......

Have a nice day!

Weidong

0 件の賞賛
返信
1,826件の閲覧回数
jimmyli
Contributor V

Hi Weidong,

      Y.

      I don't know how to fix the problem. Hope you can show me how to fix it.

      Thanks very much.

0 件の賞賛
返信