This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: PCIE memory mapping for the end point

Part Number: AM5728
Other Parts Discussed in Thread: XIO2001

Tool/software: Linux

hi Rex,

after giving the command lspci -v  in the terminal

we got the following in the terminal


0000:00:00.0 PCI bridge: Texas Instruments Device 8888 (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 461
    Memory at 20100000 (32-bit, non-prefetchable) [size=1M]
    Memory at 20020000 (32-bit, non-prefetchable) [size=64K]
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    Memory behind bridge: 20200000-202fffff
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Root Port (Slot-), MSI 00
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: pcieport
 
0000:01:00.0 PCI bridge: Texas Instruments XIO2001 PCI Express-to-PCI Bridge (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=01, secondary=02, subordinate=02, sec-latency=0
    Memory behind bridge: 20200000-202fffff
    Capabilities: [40] Subsystem: Device 0000:0000
    Capabilities: [48] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/16 Maskable- 64bit+
    Capabilities: [70] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
    Capabilities: [100] Advanced Error Reporting
 
0000:02:00.0 Communication controller: ILC Data Device Corp Device 1a00 (rev 10)
    Subsystem: ILC Data Device Corp Device 1a00
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 461
    Memory at 20200000 (32-bit, non-prefetchable) [size=256K]
    Memory at 20240000 (32-bit, non-prefetchable) [size=4K]
 
0001:00:00.0 PCI bridge: Texas Instruments Device 8888 (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 462
    Memory at 30100000 (32-bit, non-prefetchable) [size=1M]
    Memory at 30020000 (32-bit, non-prefetchable) [size=64K]
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    Memory behind bridge: 30200000-302fffff
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Root Port (Slot-), MSI 00
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: pcieport
 
0001:01:00.0 PCI bridge: Texas Instruments XIO2001 PCI Express-to-PCI Bridge (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=01, secondary=02, subordinate=02, sec-latency=0
    Memory behind bridge: 30200000-302fffff
    Capabilities: [40] Subsystem: Device 0000:0000
    Capabilities: [48] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/16 Maskable- 64bit+
    Capabilities: [70] Express PCI-Express to PCI/PCI-X Bridge, MSI 00
    Capabilities: [100] Advanced Error Reporting
 
0001:02:00.0 Communication controller: ILC Data Device Corp Device 1a00 (rev 10)
    Subsystem: ILC Data Device Corp Device 1a00
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 494
    Memory at 30200000 (32-bit, non-prefetchable) [size=256K]
    Memory at 30240000 (32-bit, non-prefetchable) [size=4K]
 
root@am57xx-evm:~#

we were unable to do memory mapping of our ep and the pcie

when we checked the boot log we found the following

dra7_pcie 51000000.pcie_ep:pm_runtime_get_sync failed

dra7-pcie: probe of 5100000.pcie_ep failed with eroor -22

Thanks,

Kumari