Can't get MSI interrupts on ls1046a rdb

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

Can't get MSI interrupts on ls1046a rdb

Jump to solution
1,715 Views
mir
Contributor I

Have own card plugged into last pci slot of LS1046A RDB. It's seen by driver.
The only problem I have is that I can't get any MSI interrupts (on the other card I generate them ~8000 per sec).

LSDK 2108 - based own build (5.10.35-rt39)

SoC: LS1046AE Rev1.0 (0x87070010)

Boot time:

...
[ 2.250266] pci 0002:01:00.0: [11af:8765] type 00 class 0x040100
[ 2.256351] pci 0002:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 2.263209] pci 0002:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[ 2.270064] pci 0002:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit]
[ 2.277056] pci 0002:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 8.000 Gb/s with 5.0 GT/s PCIe x2 link)
[ 2.292046] OF: /soc/pcie@3600000: no msi-map translation for id 0x100 on (null)
[ 2.309273] pci 0002:00:00.0: BAR 14: assigned [mem 0x5040000000-0x50400fffff]
[ 2.316549] pci 0002:01:00.0: BAR 0: assigned [mem 0x5040000000-0x5040000fff 64bit]
[ 2.324275] pci 0002:01:00.0: BAR 2: assigned [mem 0x5040001000-0x5040001fff 64bit]
[ 2.332000] pci 0002:01:00.0: BAR 4: assigned [mem 0x5040002000-0x5040002fff 64bit]
...

# cat /proc/interrupts
...
91: 0 0 0 0 MSI 268959744 Edge my_handler_irq
...

Is there erratum somewhere?

0 Kudos
1 Solution
1,680 Views
yipingwang
NXP TechSupport
NXP TechSupport

The problem should be u-boot PCIe fixup didn't configure msi-map for this card, this card was not detected under u-boot.

Under u-boot prompt, please enter the following command, then boot up Linux OS.

=> pci enum

View solution in original post

0 Kudos
2 Replies
1,653 Views
mir
Contributor I

Thanks for giving a hint. Actually problem was on a device EP side. I had to do hardware rework to unblock MSI sending.
Just a hint: you could emulate MSI by using "devmem YOU_MSI_MAPPED_ADDR 32 0" to trigger it. (My device EP also running Linux)

0 Kudos
1,681 Views
yipingwang
NXP TechSupport
NXP TechSupport

The problem should be u-boot PCIe fixup didn't configure msi-map for this card, this card was not detected under u-boot.

Under u-boot prompt, please enter the following command, then boot up Linux OS.

=> pci enum

0 Kudos