* [dpdk-users] Firmware assertion fails with BCM57840 card
@ 2017-05-09 8:42 Justas Poderys
0 siblings, 0 replies; 2+ messages in thread
From: Justas Poderys @ 2017-05-09 8:42 UTC (permalink / raw)
To: 'users@dpdk.org'
Hello all,
I am trying to setup dpdk on a server with BCM57840 card, however I cannot get testpmd to run due to the assertion failure:
juspo@TOR1CN:~/dpdk-stable-16.11.1$ sudo -E ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
EAL: Detected 24 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:15:00.0 on NUMA socket -1
EAL: probe driver: 14e4:16a1 net_bnx2x
testpmd: /home/juspo/dpdk-stable-16.11.1/drivers/net/bnx2x/bnx2x_ethdev.c:556: bnx2x_common_dev_init: Assertion `sc->firmware' failed.
Aborted (core dumped)
Details of my system:
juspo@TOR1CN:~/dpdk-stable-16.11.1$ sudo -E ~/dpdk-stable-16.11.1/tools/dpdk-devbind.py --status
Network devices using DPDK-compatible driver
============================================
0000:15:00.0 'BCM57840 NetXtreme II 10 Gigabit Ethernet' drv=igb_uio unused=bnx2x,vfio-pci
0000:15:00.1 'BCM57840 NetXtreme II 10 Gigabit Ethernet' drv=igb_uio unused=bnx2x,vfio-pci
I was following the guide available at http://www.dpdk.org/doc/guides/nics/bnx2x.html when trying to setup the system.
Thanks for any help.
BR,
~Justas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-users] Firmware assertion fails with BCM57840 card
@ 2017-05-09 13:00 Justas Poderys
0 siblings, 0 replies; 2+ messages in thread
From: Justas Poderys @ 2017-05-09 13:00 UTC (permalink / raw)
To: 'users@dpdk.org'
TL DR: Solved by downloading bnx2x-e2-7.2.51.0.fw and bnx2x-e1h-7.2.51.0.fw from https://github.com/cernekee/linux-firmware/tree/master/bnx2x
And placing in /lib/firmware/bnx2x
Long story:
Recompiling drivers and running with --log-level 10 gave indication where the problem was:
juspo@TOR1CN:~/dpdk-stable-16.11.1$ sudo -E ./x86_64-native-linuxapp-gcc/app/testpmd --log-level 10
<snip>
PMD: bnx2x_load_firmware(): Can't open firmware file
Looking at drivers/net/bnx2x/bnx2x.c:
#define FW_NAME_57711 "/lib/firmware/bnx2x/bnx2x-e1h-7.2.51.0.fw"
#define FW_NAME_57810 "/lib/firmware/bnx2x/bnx2x-e2-7.2.51.0.fw"
void bnx2x_load_firmware(struct bnx2x_softc *sc)
{
<snip>
fwname = sc->devinfo.device_id == CHIP_NUM_57711
? FW_NAME_57711 : FW_NAME_57810;
f = open(fwname, O_RDONLY);
if (f < 0) {
PMD_DRV_LOG(NOTICE, "Can't open firmware file");
return;
}
}
Seems that driver is looking for a file that is not there. Ubuntu 16.04.02 comes with:
juspo@TOR1CN:~/dpdk-stable-16.11.1$ ls /lib/firmware/bnx2x/
bnx2x-e1-7.12.30.0.fw bnx2x-e1h-7.12.30.0.fw bnx2x-e2-7.13.1.0.fw
bnx2x-e1-7.13.1.0.fw bnx2x-e1h-7.13.1.0.fw bnx2x-e2-7.12.30.0.fw
Downloading missing firmware files from https://github.com/cernekee/linux-firmware/tree/master/bnx2x
Made dpdk work.
------------------------------
Message: 6
Date: Tue, 9 May 2017 08:42:39 +0000
From: Justas Poderys <juspo@fotonik.dtu.dk>
To: "'users@dpdk.org'" <users@dpdk.org>
Subject: [dpdk-users] Firmware assertion fails with BCM57840 card
Message-ID:
<1356E4AEBC79BC4AA3EC88F25DE412341230A3D8@ait-pex01mbx02.win.dtu.dk>
Content-Type: text/plain; charset="us-ascii"
Hello all,
I am trying to setup dpdk on a server with BCM57840 card, however I cannot get testpmd to run due to the assertion failure:
juspo@TOR1CN:~/dpdk-stable-16.11.1$ sudo -E ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
EAL: Detected 24 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:15:00.0 on NUMA socket -1
EAL: probe driver: 14e4:16a1 net_bnx2x
testpmd: /home/juspo/dpdk-stable-16.11.1/drivers/net/bnx2x/bnx2x_ethdev.c:556: bnx2x_common_dev_init: Assertion `sc->firmware' failed.
Aborted (core dumped)
Details of my system:
juspo@TOR1CN:~/dpdk-stable-16.11.1$ sudo -E ~/dpdk-stable-16.11.1/tools/dpdk-devbind.py --status
Network devices using DPDK-compatible driver ============================================
0000:15:00.0 'BCM57840 NetXtreme II 10 Gigabit Ethernet' drv=igb_uio unused=bnx2x,vfio-pci
0000:15:00.1 'BCM57840 NetXtreme II 10 Gigabit Ethernet' drv=igb_uio unused=bnx2x,vfio-pci
I was following the guide available at http://www.dpdk.org/doc/guides/nics/bnx2x.html when trying to setup the system.
Thanks for any help.
BR,
~Justas
------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-09 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09 8:42 [dpdk-users] Firmware assertion fails with BCM57840 card Justas Poderys
2017-05-09 13:00 Justas Poderys
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).