Hi TI,
following the instructions given in http://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/latest/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_End_Point.html I
managed to run pcitest.sh successfully with 1 physical function added. However, if I try to add more than one physical function to the same endpoing device, I get the following errors when booting up RC side:
U-Boot SPL 2020.01 (Oct 06 2020 - 11:15:30 +0200) SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla') Trying to boot from MMC2 Loading Environment from MMC... *** Warning - No MMC card found, using default environment Remoteproc 2 started successfully Starting ATF on ARM64 core... NOTICE: BL31: v2.3():07.00.00.005-dirty NOTICE: BL31: Built : 14:33:55, Jun 17 2020 U-Boot SPL 2020.01 (Oct 06 2020 - 11:14:28 +0200) SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla') Detected: J7X-BASE-CPB rev E3 Detected: J7X-VSC8514-ETH rev E2 Trying to boot from MMC2 U-Boot 2020.01 (Oct 06 2020 - 11:14:28 +0200) SoC: J721E SR1.0 Model: Texas Instruments K3 J721E SoC Board: J721EX-PM2-SOM rev E7 DRAM: 4 GiB not found for dev hbmc-mux Flash: 0 Bytes MMC: sdhci@4f80000: 0, sdhci@4fb0000: 1 Loading Environment from MMC... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Detected: J7X-BASE-CPB rev E3 Detected: J7X-VSC8514-ETH rev E2 Net: eth0: ethernet@046000000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device SD/MMC found on device 1 42 bytes read in 1 ms (41 KiB/s) Loaded env from uEnv.txt Importing environment from mmc1 ... ethernet@046000000 Waiting for PHY auto negotiation to complete... done link up on port 1, speed 1000, full duplex BOOTP broadcast 1 DHCP client bound to address 172.16.1.168 (4 ms) link up on port 1, speed 1000, full duplex BOOTP broadcast 1 DHCP client bound to address 172.16.1.168 (4 ms) link up on port 1, speed 1000, full duplex Using ethernet@046000000 device TFTP from server 172.16.1.167; our IP address is 172.16.1.168 Filename 'Image-j7-evm.bin'. Load address: 0x80080000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ### 1021.5 KiB/s done Bytes transferred = 16654344 (fe2008 hex) link up on port 1, speed 1000, full duplex Using ethernet@046000000 device TFTP from server 172.16.1.167; our IP address is 172.16.1.168 Filename 'k3-j721e-common-proc-board.dtb'. Load address: 0x82000000 Loading: ################## 1.5 MiB/s done Bytes transferred = 89877 (15f15 hex) ## Flattened Device Tree blob at 82000000 Booting using the fdt blob at 0x82000000 Loading Device Tree to 00000000fdda1000, end 00000000fdeb9fff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080] [ 0.000000] Linux version 5.4.40-g66cf445b76 (oe-user@oe-host) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 SMP PREEMPT Wed Jun 17 14:28:47 UTC 2020 [ 0.000000] Machine model: Texas Instruments K3 J721E SoC [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 31 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000fb000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@fb000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000fb100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node r5f-memory@fb100000, compatible id shared-dma-pool [ 0.000000] cma: Reserved 512 MiB at 0x00000000c0000000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 2 pages/cpu s48408 r8192 d74472 u131072 [ 0.000000] Detected PIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: EL2 vector hardening [ 0.000000] Built 1 zonelists, mobility grouping off. Total pages: 47825 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfsp [ 0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0xbbff0000-0xbfff0000] (64MB) [ 0.000000] Memory: 3354112K/3063808K available (9534K kernel code, 776K rwdata, 3840K rodata, 1728K init, 695K bss, 18446744073708737024K reserved, 524288K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode [ 0.000000] GICv3: 960 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: 16 PPIs implemented [ 0.000000] GICv3: no VLPI support, no direct LPI support [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000 [ 0.000000] ITS [mem 0x01820000-0x0182ffff] [ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS [ 0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GICv3: using LPI property table @0x00000008c00c0000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008c00d0000 [ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x438 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns [ 0.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns [ 0.008321] Console: colour dummy device 80x25 [ 0.012876] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000) [ 0.023544] pid_max: default: 32768 minimum: 301 [ 0.028291] LSM: Security Framework initializing [ 0.033033] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) [ 0.040599] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear) [ 0.072643] ASID allocator initialised with 32768 entries [ 0.086169] rcu: Hierarchical SRCU implementation. [ 0.099110] Platform MSI: gic-its@1820000 domain created [ 0.104630] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created [ 0.122065] smp: Bringing up secondary CPUs ... [ 0.159014] Detected PIPT I-cache on CPU1 [ 0.159033] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000 [ 0.159042] GICv3: CPU1: using allocated LPI pending table @0x00000008c00e0000 [ 0.159061] CPU1: Booted secondary processor 0x0000000001 [0x411fd080] [ 0.159098] smp: Brought up 1 node, 2 CPUs [ 0.188441] SMP: Total of 2 processors activated. [ 0.193245] CPU features: detected: 32-bit EL0 Support [ 0.198498] CPU features: detected: CRC32 instructions [ 0.209696] CPU: All CPU(s) started at EL2 [ 0.213888] alternatives: patching kernel code [ 0.218810] devtmpfs: initialized [ 0.226147] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.236113] futex hash table entries: 512 (order: -1, 32768 bytes, linear) [ 0.243537] pinctrl core: initialized pinctrl subsystem [ 0.249214] NET: Registered protocol family 16 [ 0.256099] DMA: preallocated 256 KiB pool for atomic allocations [ 0.262593] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.277854] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages [ 0.284706] HugeTLB registered 512 MiB page size, pre-allocated 0 pages [ 0.291466] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.300015] cryptd: max_cpu_qlen set to 1000 [ 0.307026] vsys_3v3: supplied by evm_12v0 [ 0.311305] vsys_5v0: supplied by evm_12v0 [ 0.315895] iommu: Default domain type: Translated [ 0.321014] SCSI subsystem initialized [ 0.325101] mc: Linux media interface: v0.10 [ 0.329489] videodev: Linux video capture interface: v2.00 [ 0.335103] pps_core: LinuxPPS API ver. 1 registered [ 0.340173] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.349509] PTP clock support registered [ 0.353519] EDAC MC: Ver: 3.0.0 [ 0.357169] FPGA manager framework [ 0.360672] Advanced Linux Sound Architecture Driver Initialized. [ 0.367182] clocksource: Switched to clocksource arch_sys_counter [ 0.373483] VFS: Disk quotas dquot_6.6.0 [ 0.377528] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes) [ 0.386812] thermal_sys: Registered thermal governor 'step_wise' [ 0.386814] thermal_sys: Registered thermal governor 'power_allocator' [ 0.393119] NET: Registered protocol family 2 [ 0.404459] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear) [ 0.413223] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear) [ 0.421416] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear) [ 0.429095] TCP: Hash tables configured (established 32768 bind 32768) [ 0.435821] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear) [ 0.442710] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear) [ 0.450090] NET: Registered protocol family 1 [ 0.454770] RPC: Registered named UNIX socket transport module. [ 0.460821] RPC: Registered udp transport module. [ 0.465624] RPC: Registered tcp transport module. [ 0.470427] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.477010] PCI: CLS 0 bytes, default 64 [ 0.481253] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available [ 0.492592] Initialise system trusted keyrings [ 0.497217] workingset: timestamp_bits=46 max_order=16 bucket_order=0 [ 0.505673] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.511884] NFS: Registering the id_resolver key type [ 0.517054] Key type id_resolver registered [ 0.521326] Key type id_legacy registered [ 0.525421] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.532344] 9p: Installing v9fs 9p2000 file system support [ 0.545318] Key type asymmetric registered [ 0.549512] Asymmetric key parser 'x509' registered [ 0.554516] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 0.562076] io scheduler mq-deadline registered [ 0.566701] io scheduler kyber registered [ 0.571811] pinctrl-single 4301c000.pinmux: 94 pins, size 376 [ 0.577876] pinctrl-single 11c000.pinmux: 173 pins, size 692 [ 0.584006] pinctrl-single a40000.timesync_router: 512 pins, size 2048 [ 0.592810] k3-ringacc 2b800000.ringacc: Failed to get MSI domain [ 0.599076] k3-ringacc 3c000000.ringacc: Failed to get MSI domain [ 0.605403] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages [ 0.611815] debugfs: Directory '31010000.pat' with parent 'regmap' already present! [ 0.619752] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages [ 0.626165] debugfs: Directory '31011000.pat' with parent 'regmap' already present! [ 0.634081] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages [ 0.640493] debugfs: Directory '31012000.pat' with parent 'regmap' already present! [ 0.648414] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages [ 0.654736] debugfs: Directory '31013000.pat' with parent 'regmap' already present! [ 0.662676] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages [ 0.668997] debugfs: Directory '31014000.pat' with parent 'regmap' already present! [ 0.678291] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled [ 0.689809] brd: module loaded [ 0.695633] loop: module loaded [ 0.700155] libphy: Fixed MDIO Bus: probed [ 0.704515] tun: Universal TUN/TAP device driver, 1.6 [ 0.709927] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k [ 0.717933] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 0.723996] sky2: driver version 1.30 [ 0.728195] VFIO - User Level meta-driver version: 0.3 [ 0.733759] i2c /dev entries driver [ 0.737813] sdhci: Secure Digital Host Controller Interface driver [ 0.744127] sdhci: Copyright(c) Pierre Ossman [ 0.748761] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.755010] ledtrig-cpu: registered to indicate activity on CPUs [ 0.761726] optee: probing for conduit method from DT. [ 0.766991] optee: revision 3.8 (199fca17) [ 0.767267] optee: initialized driver [ 0.775843] NET: Registered protocol family 17 [ 0.780443] 9pnet: Installing 9P2000 support [ 0.784823] Key type dns_resolver registered [ 0.789331] registered taskstats version 1 [ 0.793519] Loading compiled-in X.509 certificates [ 0.802200] k3-ringacc 2b800000.ringacc: Failed to get MSI domain [ 0.808515] k3-ringacc 3c000000.ringacc: Failed to get MSI domain [ 0.816127] ti-sci 44083000.dmsc: ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla') [ 0.840763] random: fast init done [ 0.871609] davinci-mcasp 2ba0000.mcasp: IRQ common not found [ 0.878852] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz [ 0.884822] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz [ 0.890784] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz [ 0.896801] pca953x 3-0020: 3-0020 supply vcc not found, using dummy regulator [ 0.927694] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator [ 0.935726] GPIO line 481 (MCASP/TRACE_MUX_S0) hogged as output/low [ 0.942321] GPIO line 482 (MCASP/TRACE_MUX_S1) hogged as output/high [ 0.949149] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz [ 0.955125] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz [ 0.960996] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz [ 0.966950] pca953x 6-0020: 6-0020 supply vcc not found, using dummy regulator [ 0.995527] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz [ 1.001396] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz [ 1.007263] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz [ 1.013195] pca953x 9-0020: 9-0020 supply vcc not found, using dummy regulator [ 1.043481] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz [ 1.049684] ti-sci-intr interconnect@100000:interconnect@28380000:interrupt-controller2: Interrupt Router 137 domain created [ 1.061247] ti-sci-intr interconnect@100000:interrupt-controller0: Interrupt Router 131 domain created [ 1.070852] ti-sci-intr interconnect@100000:navss@30000000:interrupt-controller1: Interrupt Router 213 domain created [ 1.081852] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created [ 1.098429] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps [ 1.206831] j721e-pcie 2900000.pcie: Link up [ 1.211197] j721e-pcie 2900000.pcie: host bridge /interconnect@100000/pcie@2900000 ranges: [ 1.219658] j721e-pcie 2900000.pcie: IO 0x10001000..0x10010fff -> 0x10001000 [ 1.227133] j721e-pcie 2900000.pcie: MEM 0x10011000..0x17ffffff -> 0x10011000 [ 1.234662] j721e-pcie 2900000.pcie: PCI host bridge to bus 0000:00 [ 1.241068] pci_bus 0000:00: root bus resource [bus 00-0f] [ 1.246673] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x10001000-0x10010fff]) [ 1.256363] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff] [ 1.263402] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400 [ 1.269554] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits [ 1.279424] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits [ 1.289309] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xe8 may corrupt adjacent RW1C bits [ 1.299268] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits [ 1.309233] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits [ 1.319195] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits [ 1.329191] pci 0000:00:00.0: supports D1 [ 1.333285] pci 0000:00:00.0: PME# supported from D0 D1 D3hot [ 1.339156] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits [ 1.349120] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x208 may corrupt adjacent RW1C bits [ 1.359172] pci 0000:00:00.0: reg 0x224: [mem 0x00000000-0x003fffff 64bit] [ 1.366197] pci 0000:00:00.0: VF(n) BAR0 space: [mem 0x00000000-0x00ffffff 64bit] (contains BAR0 for 4 VFs) [ 1.376164] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits [ 1.386211] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x210 may corrupt adjacent RW1C bits [ 1.397674] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 1.405925] pci 0000:01:00.0: [104c:b00d] type 00 class 0xff0000 [ 1.412136] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000000ff] [ 1.418550] pci 0000:01:00.0: reg 0x14: [mem 0x00000000-0x000001ff] [ 1.424966] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000003ff] [ 1.431380] pci 0000:01:00.0: reg 0x1c: [mem 0x00000000-0x00003fff] [ 1.437793] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x0001ffff] [ 1.444206] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000fffff] [ 1.450862] pci 0000:01:00.0: supports D1 [ 1.454955] pci 0000:01:00.0: PME# supported from D0 D1 D3hot [ 1.460890] pci 0000:01:00.0: reg 0x224: [mem 0x00000000-0x003fffff 64bit] [ 1.467915] pci 0000:01:00.0: VF(n) BAR0 space: [mem 0x00000000-0x00ffffff 64bit] (contains BAR0 for 4 VFs) [ 1.478071] pci 0000:01:00.1: [104c:b00d] type 00 class 0xff0000 [ 1.484267] pci 0000:01:00.1: reg 0x10: [mem 0x00000000-0x000000ff] [ 1.490681] pci 0000:01:00.1: reg 0x14: [mem 0x00000000-0x000001ff] [ 1.497094] pci 0000:01:00.1: reg 0x18: [mem 0x00000000-0x000003ff] [ 1.503507] pci 0000:01:00.1: reg 0x1c: [mem 0x00000000-0x00003fff] [ 1.509921] pci 0000:01:00.1: reg 0x20: [mem 0x00000000-0x0001ffff] [ 1.516334] pci 0000:01:00.1: reg 0x24: [mem 0x00000000-0x000fffff] [ 1.522937] pci 0000:01:00.1: supports D1 [ 1.527032] pci 0000:01:00.1: PME# supported from D0 D1 D3hot [ 1.532965] pci 0000:01:00.1: reg 0x224: [mem 0x00000000-0x003fffff 64bit] [ 1.539990] pci 0000:01:00.1: VF(n) BAR0 space: [mem 0x00000000-0x00ffffff 64bit] (contains BAR0 for 4 VFs) ERROR: Unhandled External Abort received on 0x80000000 from S-EL1 ERROR: exception reason=0 syndrome=0xbf000000 Unhandled Exception from EL1 x0 = 0xffff8000147e0000 x1 = 0x0000000000000000 x2 = 0x000000000080000a x3 = 0x0000000000000003 x4 = 0xffff800015100000 x5 = 0xffff800010504d00 x6 = 0xffff80001176f904 x7 = 0x000000000000ea60 x8 = 0x0000000080b5111d x9 = 0x00000000b00d104c x10 = 0x7f7f7f7f7f7f7f7f x11 = 0x0101010101010101 x12 = 0xffff0008400fd230 x13 = 0xffff0008400fd91c x14 = 0xffffffffffffffff x15 = 0xffff000840372128 x16 = 0xffff800014510000 x17 = 0x0000000000000001 x18 = 0x0000000000000000 x19 = 0xffff80001176f844 x20 = 0x0000000000000004 x21 = 0x0000000000000000 x22 = 0x0000000000000004 x23 = 0xffff80001176f844 x24 = 0x0000000000000002 x25 = 0xffff8000110ee1f0 x26 = 0x0000000000000001 x27 = 0x0000000000000000 x28 = 0xffff000841e18800 x29 = 0xffff80001176f790 x30 = 0xffff8000104d4210 scr_el3 = 0x000000000000073d sctlr_el3 = 0x0000000030cd183f cptr_el3 = 0x0000000000000000 tcr_el3 = 0x0000000080803520 daif = 0x00000000000002c0 mair_el3 = 0x00000000004404ff spsr_el3 = 0x0000000020000085 elr_el3 = 0xffff8000104d4228 ttbr0_el3 = 0x0000000070010b00 esr_el3 = 0x00000000bf000000 far_el3 = 0x0000000000000000 spsr_el1 = 0x0000000060000005 elr_el1 = 0xffff800010113b04 spsr_abt = 0x0000000000000000 spsr_und = 0x0000000000000000 spsr_irq = 0x0000000000000000 spsr_fiq = 0x0000000000000000 sctlr_el1 = 0x0000000034d4d91d actlr_el1 = 0x0000000000000000 cpacr_el1 = 0x0000000000300000 csselr_el1 = 0x0000000000000000 sp_el1 = 0xffff80001176f790 esr_el1 = 0x0000000096000005 ttbr0_el1 = 0x0000000081090000 ttbr1_el1 = 0x0000000080de0000 mair_el1 = 0x0000bbff440c0400 amair_el1 = 0x0000000000000000 tcr_el1 = 0x00000034f5507510 tpidr_el1 = 0xffff80086ebf0000 tpidr_el0 = 0x0000000000000000 tpidrro_el0 = 0x0000000000000000 par_el1 = 0x0000000000000000 mpidr_el1 = 0x0000000080000000 afsr0_el1 = 0x0000000000000000 afsr1_el1 = 0x0000000000000000 contextidr_el1 = 0x0000000000000000 vbar_el1 = 0xffff800010081800 cntp_ctl_el0 = 0x0000000000000005 cntp_cval_el0 = 0x000000011194f9bc cntv_ctl_el0 = 0x0000000000000000 cntv_cval_el0 = 0x0000000000000000 cntkctl_el1 = 0x00000000000000e6 sp_el0 = 0x000000007000a3d0 isr_el1 = 0x0000000000000040 dacr32_el2 = 0x0000000000000000 ifsr32_el2 = 0x0000000000000000 cpuectlr_el1 = 0x0000001b00000040 cpumerrsr_el1 = 0x0000000000000000 l2merrsr_el1 = 0x0000000000000000
This log was created, when I tried to add 2 physical functions. The command to add these functions on EP side was:
mount -t configfs none /sys/kernel/config cd /sys/kernel/config/pci_ep/ mkdir functions/pci_epf_test/func1 echo 0x104c > functions/pci_epf_test/func1/vendorid echo 0xb00d > functions/pci_epf_test/func1/deviceid echo 2 > functions/pci_epf_test/func1/msi_interrupts echo 2 > functions/pci_epf_test/func1/msix_interrupts ln -s functions/pci_epf_test/func1 controllers/d000000.pcie-ep/ mkdir functions/pci_epf_test/func2 echo 0x104c > functions/pci_epf_test/func2/vendorid echo 0xb00d > functions/pci_epf_test/func2/deviceid echo 2 > functions/pci_epf_test/func2/msi_interrupts echo 2 > functions/pci_epf_test/func2/msix_interrupts ln -s functions/pci_epf_test/func2 controllers/d000000.pcie-ep/ echo 1 > controllers/d000000.pcie-ep/start
Do you know what might be the problem here?
Thank you!