Hi Pratyush: Thanks for your help. The RC host: --------------------------------------------- root@freescale ~$ ./memtool -32 0x01ffc034 1 Reading 0x1 count starting at address 0x01FFC034 0x01FFC034: 00000040 root@freescale ~$ ./memtool -32 0x01ffc040 1 Reading 0x1 count starting at address 0x01FFC040 0x01FFC040: DBC35001 <-- First cap root@freescale ~$ ./memtool -32 0x01ffc050 1 Reading 0x1 count starting at address 0x01FFC050 0x01FFC050: 01807005 <-- second cap root@freescale ~$ ./memtool -32 0x01ffc070 1 Reading 0x1 count starting at address 0x01FFC070 0x01FFC070: 00420010 <-- the last cap root@freescale ~$ ./memtool -32 0x01ffc078 1 Reading 0x1 count starting at address 0x01FFC078 0x01FFC078: 00102010 <-- CFG_PCIE_CAP+0x8 NOTE: Max_Payload_Size 3'b000 (128 bytes) Max_Read_Request_Size 3'b000 (128 bytes) The EP target: --------------------------------------------- root@freescale ~$ ./memtool -32 0x01ff0034 1 Reading 0x1 count starting at address 0x01FF0034 0x01FF0034: 000000C8 root@freescale ~$ ./memtool -32 0x01ff00c8 1 Reading 0x1 count starting at address 0x01FF00C8 0x01FF00C8: C823D001 <-- First cap root@freescale ~$ ./memtool -32 0x01ff00d0 1 Reading 0x1 count starting at address 0x01FF00D0 0x01FF00D0: 0080E005 <-- Second cap root@freescale ~$ ./memtool -32 0x01ff00e0 1 Reading 0x1 count starting at address 0x01FF00E0 0x01FF00E0: 00010010 <-- Last cap root@freescale ~$ ./memtool -32 0x01ff00e8 1 Reading 0x1 count starting at address 0x01FF00E8 0x01FF00E8: 00100810 <-- CFG_PCIE_CAP+0x8 NOTE: Max_Payload_Size 3'b000 (128 bytes) Max_Read_Request_Size 3'b000 (128 bytes) Best Regards Richard Zhu On 28 October 2011 12:12, Pratyush Anand <pratyush.anand@xxxxxxxxx> wrote: > Hi Richard, > > PCI analyser log would definitely have been a great help in such cases. > Anyway, can you please check "Max_Read_Request_Size" and > "Max_Payload_Size" [CFG_PCIE_CAP + 0x08] for both your RC and EP. > Can you please let us know the value programmed in PCIe capabilities > cfg registers > for both RC and EP. > > Regards > Pratyush > > On Fri, Oct 28, 2011 at 8:20 AM, Richard Zhu <richard.zhu@xxxxxxxxxx> wrote: >> Hi Bjorn >> The x86 lspci is not related to my arm system, just a lspci log referrence. >> >> I only have one 4965agn mini pcie card, not sure that any PCIe cards >> can work on my platform or not. >> BTW, I don't have the PCIe analyzer either. >> So it's hard to debug the PCIe RC and ahcive the breakthrough. >> >> Best Regards >> Richard Zhu. >> >> On 28 October 2011 00:03, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: >>> I have no idea. I don't know how the x86 lspci is related at all. Is >>> it related to your arm system somehow? >>> >>> Do any PCIe cards work on the arm system? Can you use a PCIe analyzer >>> to see if any MMIO transactions appear on the link? >>> >>> On Thu, Oct 27, 2011 at 1:04 AM, Richard Zhu <richard.zhu@xxxxxxxxxx> wrote: >>>> Hi Bjorn: >>>> About the complete lspci on x86 and the dmesg on arm platform, pls >>>> refer to the attached file. >>>> >>>> Thanks. >>>> >>>> Best Regard. >>>> >>>> On 26 October 2011 22:08, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: >>>>> On Wed, Oct 26, 2011 at 4:08 AM, Richard Zhu <richard.zhu@xxxxxxxxxx> wrote: >>>>>> Hi Bjorn: >>>>>> Thanks for your comments firstly. >>>>>> The platform only has one PCIe RC mode host, connected one INTEL >>>>>> 4965AGN wifi card. >>>>>> Doesn't have PCIe bridge device. >>>>>> >>>>>> The following log is generated on one X86 machine. It seems that the >>>>>> 00:00:0 is assigned to the PCI bridge device, is it? >>>>>> "00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)" >>>>> >>>>> If you attached a dmesg log, I didn't get it. How about the complete >>>>> "lspci" output, too? >>>>> >>>>>> About the device address, do you means that the RC mode PCIe host >>>>>> should be scanned, >>>>>> and assigned the address too? >>>>> >>>>> I just mean that normal devices (NICs, storage HBAs, USB, VGA, etc.,) >>>>> usually are not at bus 0, device 0, function 0. The fact that your >>>>> wifi NIC is apparently is at bus 0, device 0, function 0, is unusual, >>>>> so I would investigate that. Maybe there's something wrong with your >>>>> platform's PCI device enumeration. >>>>> >>>>>>> A complete dmesg log is always a good start. >>>>>>> >>>>>>> I don't see anything obviously wrong. The device address (bus 0, >>>>>>> device 0, function 0) is unusual, so I'd double-check that. At least >>>>>>> on x86, 00:00.0 is usually something in the north bridge, not a normal >>>>>>> device. >>>>>>> >>>>>>> Bjorn >>>>> >>>> >>> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-pci" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html