0

I am trying to use both the devices provided in OpenNIC shell with DPDK. However setting the registers as mentioned in the docs, only the first device is used and the other doesn't get initialized. Logs from EAL: `EAL: Detected 128 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: 2048 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size EAL: Probing VFIO support... EAL: VFIO support initialized EAL: using IOMMU type 1 (Type 1) EAL: Probe PCI driver: net_qdma (10ee:903f) device: 0000:17:00.0 (socket 0) Device Type: Soft IP IP Type: EQDMA4.0 Soft IP Vivado Release: vivado 2020.2 PMD: qdma_get_hw_version(): QDMA RTL VERSION : RTL Base

PMD: qdma_get_hw_version(): QDMA DEVICE TYPE : Soft IP

PMD: qdma_get_hw_version(): QDMA VIVADO RELEASE ID : vivado 2020.2

PMD: qdma_identify_bars(): QDMA config bar idx :0

PMD: qdma_identify_bars(): QDMA AXI Master Lite bar idx :2

PMD: qdma_identify_bars(): QDMA AXI Bridge Master bar idx :-1

PMD: qdma_eth_dev_init(): QDMA device driver probe: PMD: qdma_device_attributes_get(): qmax = 512, mm 1, st 1.

PMD: qdma_eth_dev_init(): PCI max bus number : 0x17 PMD: qdma_eth_dev_init(): PF function ID: 0 PMD: QDMA PMD VERSION: 2022.1.3 qdma_dev_entry_create: Created the dev entry successfully`

First device is initialized properly

EAL: Probe PCI driver: net_qdma (10ee:913f) device: 0000:17:00.1 (socket 0) qdma_is_config_bar: Invalid config bar, err:-4 qdma_hw_access_init: config bar passed is INVALID, err:-1 EAL: Error: Invalid memory EAL: Releasing pci mapped resource for 0000:17:00.1 EAL: Calling pci_unmap_resource for 0000:17:00.1 at 0x2200440000 EAL: Calling pci_unmap_resource for 0000:17:00.1 at 0x2200480000 EAL: Requested device 0000:17:00.1 cannot be used EAL: No legacy callbacks, legacy socket not created Second device(17:00.1) initialization fails

I hwas following the README here https://github.com/Xilinx/open-nic-dpdk to initialize my own dpdk app, instead of Pktgen. Set all registers as mentioned but only first PF works and the other one doesn't.

Ayush
  • 1
  • 1

0 Answers0