cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Participant
Participant
271 Views
Registered: ‎11-24-2008

ZynqMP PCIE root access to IO BAR

Hello!

I use petalinunx 2019.1 on ZCU102 with PCIE root function. Root port works  quite well, but it doesn't initalize I/O space BARs during enumeration.

Kernel 4.19 during start says:

[ 3.649307] nwl-pcie fd0e0000.pcie: Link is UP
[ 3.653781] nwl-pcie fd0e0000.pcie: host bridge /amba/pcie@fd0e0000 ranges:
[ 3.660748] nwl-pcie fd0e0000.pcie: MEM 0xe0000000..0xefffffff -> 0xe0000000
[ 3.667969] nwl-pcie fd0e0000.pcie: MEM 0x600000000..0x7ffffffff -> 0x600000000
[ 3.675553] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00
[ 3.681728] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.687209] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[ 3.694075] pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref]
[ 3.703089] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[ 3.717941] pci 0000:00:00.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[ 3.724724] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe001ffff]
[ 3.731516] pci 0000:01:00.0: BAR 1: assigned [mem 0xe0020000-0xe003ffff]
[ 3.738303] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0040000-0xe005ffff pref]
[ 3.745519] pci 0000:01:00.0: BAR 2: no space for [io size 0x0020]
[ 3.751778] pci 0000:01:00.0: BAR 2: failed to assign [io size 0x0020]

lspci writes:

01:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06)
Subsystem: Intel Corporation PRO/1000 PT Desktop Adapter
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 0
Region 0: Memory at e0000000 (32-bit, non-prefetchable) [disabled] [size=128K]
Region 1: Memory at e0020000 (32-bit, non-prefetchable) [disabled] [size=128K]
Region 2: I/O ports at <unassigned> [disabled]
[virtual] Expansion ROM at e0040000 [disabled] [size=128K]

Is it possible to access IO space BAR on PCIE device endpoint from MPSoC PCIE root port with linux?

May be, is there some kernel congiration option that turn on PCI IO space support?

BR&Thanks forward,
Serge

 

 

Tags (4)
0 Kudos
Reply
1 Reply
Participant
Participant
245 Views
Registered: ‎11-24-2008

ug1085.PNG

Probably, ZynqMP hardware can't work with PCIE I/O space at all?

 

0 Kudos
Reply