pcie ep generate legacy interrupt

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

pcie ep generate legacy interrupt

1,183 Views
thorstenpohlman
Contributor II

Hi!

I'm struggeling to get an PCIe Endpoint working on a T1042.

Bar setup etc seems to work fine, as i can see the T1042 EP at the RC and am capable of writing/reading the EPs RAM.

The Setup is: T1042-EP <-> Pericom 7c9x111 pcie/pci Bridge <-> compactPCI-Bus <-> Pericom 7c9x111 pcie/pci Bridge <-> T1042 RC (Linux)

I am trying to raise an Interrupt EP -> RC, but that does not work.

The registers (T1042 EP):

pex #0:
Address (PEXOTARn) : 0xfe260c00 = 0x00000000
Address Extended (PEXOTEARn): 0xfe260c04 = 0x00000000
Window Base Address(PEXOWBARn): 0xfe260c08 = 0x00000000
Window Attributes (PEXOWARn) : 0xfe260c10 = 0x80044027
pex #1:
Address (PEXOTARn) : 0xfe260c20 = 0x000e0000
Address Extended (PEXOTEARn): 0xfe260c24 = 0x00000000
Window Base Address(PEXOWBARn): 0xfe260c28 = 0x00c20000
Window Attributes (PEXOWARn) : 0xfe260c30 = 0x8004401b
pex #2:
Address (PEXOTARn) : 0xfe260c40 = 0x00000000
Address Extended (PEXOTEARn): 0xfe260c44 = 0x00000000
Window Base Address(PEXOWBARn): 0xfe260c48 = 0x00ff8020
Window Attributes (PEXOWARn) : 0xfe260c50 = 0x8008800f
pex #3:
Address (PEXOTARn) : 0xfe260c60 = 0x00000000
Address Extended (PEXOTEARn): 0xfe260c64 = 0x00000000
Window Base Address(PEXOWBARn): 0xfe260c68 = 0x00000000
Window Attributes (PEXOWARn) : 0xfe260c70 = 0x00000000
pex #4:
Address (PEXOTARn) : 0xfe260c80 = 0x0007fffd
Address Extended (PEXOTEARn): 0xfe260c84 = 0x00000000
Window Base Address(PEXOWBARn): 0xfe260c88 = 0x0007fffd
Window Attributes (PEXOWARn) : 0xfe260c90 = 0x8004500b

So to my opinion outbound ATMU #4 is configured as write-message, address 0x7fffd000 - 0x7fffdfff?

I thought if write an 0x00008020 (table 28-9/11 in t1040rm.pdf) to e.g. address 0x7fffd000, then a pcie transaction "raise inta" will be sent to the bridge, which asserts the int-a-pin? This is not the case, also intb-d dont work (measured at pins).

Am i missing something?

PS: The ints are working on RC, other cPCI cards are working perfectly, MSI is not possible because of other legacy cards.

Question #2:

What would be the way to trigger an irq from RC inside the T1042-EP?

Thanks!

Labels (1)
0 Kudos
3 Replies

773 Views
ufedor
NXP Employee
NXP Employee

The "pex #4" settings and the "rise inta" data are correct.

Please check "Command_Register" value.

0 Kudos

773 Views
thorstenpohlman
Contributor II

Hi!

Thanks for your answer, the command_register is 0x06, so the interrupts should not be disabled...

0 Kudos

773 Views
EmbEng
Contributor III

thorstenpohlmann‌ were you able to get that working? I am facing same issue.

0 Kudos