root@spartan_a:/data# ./pcitest.sh BAR tests BAR0: OKAY BAR1: OKAY BAR2: OKAY BAR3: OKAY BAR4: OKAY BAR5: OKAY Interrupt tests SET IRQ TYPE TO LEGACY: NOT OKAY LEGACY IRQ: NOT OKAY SET IRQ TYPE TO MSI: OKAY MSI1: OKAY MSI2: NOT OKAY SET IRQ TYPE TO MSI-X: OKAY MSI-X1: NOT OKAY MSI-X2: OKAY Read Tests SET IRQ TYPE TO MSI-X: OKAY READ ( 1 bytes): OKAY READ ( 1024 bytes): OKAY READ ( 1025 bytes): OKAY READ (1024000 bytes): OKAY READ (1024001 bytes): OKAY Write Tests WRITE ( 1 bytes): OKAY WRITE ( 1024 bytes): OKAY WRITE ( 1025 bytes): OKAY WRITE (1024000 bytes): NOT OKAY WRITE (1024001 bytes): OKAY Copy Tests COPY ( 1 bytes): OKAY COPY ( 1024 bytes): OKAY COPY ( 1025 bytes): OKAY COPY (1024000 bytes): OKAY COPY (1024001 bytes): OKAY root@spartan_a:/data# dmesg | grep pci [ 1.526503] j721e-pcie f102000.pcie: host bridge /pcie@f102000 ranges: [ 1.536376] j721e-pcie f102000.pcie: IO 0x0600001000..0x0600100fff -> 0x0000001000 [ 1.548232] j721e-pcie f102000.pcie: MEM 0x0600101000..0x06ffffffff -> 0x0000101000 [ 1.564031] j721e-pcie f102000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000 [ 2.581081] j721e-pcie f102000.pcie: PCI host bridge to bus 0000:00 [ 2.587372] pci_bus 0000:00: root bus resource [bus 00-ff] [ 2.592858] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff] (bus address [0x1000-0x100fff]) [ 2.601895] pci_bus 0000:00: root bus resource [mem 0x600101000-0x6ffffffff] (bus address [0x00101000-0xffffffff]) [ 2.612258] pci 0000:00:00.0: [104c:b010] type 01 class 0x060400 PCIe Root Port [ 2.619574] pci 0000:00:00.0: PCI bridge to [bus 00] [ 2.624539] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff] [ 2.630627] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff] [ 2.637414] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff 64bit pref] [ 2.645205] pci 0000:00:00.0: supports D1 [ 2.649213] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 2.657980] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 2.666180] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 2.672816] pci 0000:00:00.0: PCI bridge to [bus 01] [ 2.677783] pci_bus 0000:00: resource 4 [io 0x0000-0xfffff] [ 2.683438] pci_bus 0000:00: resource 5 [mem 0x600101000-0x6ffffffff] [ 2.689984] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22 [ 2.696938] pcieport 0000:00:00.0: PME: Signaling with IRQ 513 [ 2.703064] pcieport 0000:00:00.0: AER: enabled with IRQ 513 [ 69.733641] pci 0000:01:00.0: [104c:b010] type 00 class 0xff0000 PCIe Endpoint [ 69.740926] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x000000ff] [ 69.746881] pci 0000:01:00.0: BAR 1 [mem 0x00000000-0x000001ff] [ 69.752833] pci 0000:01:00.0: BAR 2 [mem 0x00000000-0x000003ff] [ 69.758773] pci 0000:01:00.0: BAR 3 [mem 0x00000000-0x00003fff] [ 69.764724] pci 0000:01:00.0: BAR 4 [mem 0x00000000-0x0001ffff] [ 69.770662] pci 0000:01:00.0: BAR 5 [mem 0x00000000-0x000fffff] [ 69.776874] pci 0000:01:00.0: supports D1 [ 69.780893] pci 0000:01:00.0: PME# supported from D0 D1 D3hot [ 69.792910] pcieport 0000:00:00.0: bridge window [mem 0x600200000-0x6003fffff]: assigned [ 69.801061] pci 0000:01:00.0: BAR 5 [mem 0x600200000-0x6002fffff]: assigned [ 69.808061] pci 0000:01:00.0: BAR 4 [mem 0x600300000-0x60031ffff]: assigned [ 69.815061] pci 0000:01:00.0: BAR 3 [mem 0x600320000-0x600323fff]: assigned [ 69.822038] pci 0000:01:00.0: BAR 2 [mem 0x600324000-0x6003243ff]: assigned [ 69.829025] pci 0000:01:00.0: BAR 1 [mem 0x600324400-0x6003245ff]: assigned [ 69.835999] pci 0000:01:00.0: BAR 0 [mem 0x600324600-0x6003246ff]: assigned [ 69.843200] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22 [ 69.849850] pci-endpoint-test 0000:01:00.0: enabling device (0000 -> 0002) [ 86.880954] pci-endpoint-test 0000:01:00.0: Failed to get Legacy interrupt [ 87.920157] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_msi_irq, write command 2 [ 88.692639] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_msi_irq, write command 2 [ 89.717115] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_msi_irq, write command 4 [ 90.736461] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_msi_irq, write command 4 [ 90.782716] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read start [ 90.789479] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read, write command 16 [ 91.044624] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read start [ 91.051383] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read, write command 16 [ 92.076298] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read start [ 92.083080] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read, write command 16 [ 93.100352] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read start [ 93.107526] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read, write command 16 [ 94.124990] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read start [ 94.131958] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_read, write command 16 [ 95.149366] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write start [ 95.156210] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write, write command 8 [ 95.292205] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write start [ 95.299076] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write, write command 8 [ 96.332272] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write start [ 96.339133] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write, write command 8 [ 97.356281] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write start [ 97.373150] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write, write command 8 [ 98.412336] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write start [ 98.429151] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_write, write command 8 [ 99.468610] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy start [ 99.475382] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy, write command 32 [ 100.492278] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy start [ 100.499097] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy, write command 32 [ 100.716687] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy start [ 100.723464] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy, write command 32 [ 101.740221] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy start [ 101.757169] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy, write command 32 [ 102.797068] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy start [ 102.814387] pci-endpoint-test 0000:01:00.0: pci_endpoint_test_copy, write command 32