tcp-acceleration-service / FlexTOE

Flexible, high-performance TCP offload to SmartNICs using fine-grained parallelism
https://tcp-acceleration-service.github.io/FlexTOE/
BSD 3-Clause "New" or "Revised" License
52 stars 7 forks source link

failed to initialize MAC when running "./user/flextoe.out" #1

Closed Transpeptidase closed 2 years ago

Transpeptidase commented 2 years ago

Hi, I am trying to run FlexTOE on Agilio® CX 2x40GbE SmartNIC, but failed to initialize MAC when running "./user/flextoe.out".

Here is output:

root@node93:~/netronome/FlexTOE# modprobe uio
root@node93:~/netronome/FlexTOE# insmod kernel/flextoe_uio.ko
root@node93:~/netronome/FlexTOE# ./scripts/devbind.py --status

Network devices using kernel driver
===================================
0000:04:00.0 'Device 4000' if=ens261np0,ens261np1 drv=nfp unused=flextoe_uio 
root@node93:~/netronome/FlexTOE# ./scripts/devbind.py -b flextoe_uio 0000:04:00.0 
root@node93:~/netronome/FlexTOE# ./user/flextoe.out --ip-addr=192.168.2.93
flextoe_dma_mem virt:0x7f4ec0000000 phy:0xf00000000 len:40000000
 - Probe... 
 - Reset... 
Error -110 waiting for code 0x0004 to complete
failed to initialize MAC: -110
root@node93:~/netronome/FlexTOE# uname -a
Linux node93 4.15.0-176-generic #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@node93:~/netronome/FlexTOE# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"

How can we solute this problem? Thanks

Transpeptidase commented 2 years ago

After failing to initialize MAC, if I re-execute "./user/flextoe.out", the output is:

flextoe_dma_mem virt:0x7fac80000000 phy:0x700000000 len:40000000
 - Probe... 
Service processor busy!
pci_probe(): Error reading NFP ethernet tableUnable to setup NIC
failed to setup network device: -5
rajathshashidhara commented 2 years ago

Hard to say what is the issue. You might want to check if your NFP flash is up-to-date. Another thing you could try is to reset the service processor on the NIC - easiest way to do it is to reboot the machine. But, there's also a tool in the Board Support Package (BSP) to reset the processor (nfp-arm as far as I can recall).

Transpeptidase commented 2 years ago

Hi, Thanks for your answer :)