DPDK usage discussions
 help / color / mirror / Atom feed
From: Justas Poderys <juspo@fotonik.dtu.dk>
To: "'users@dpdk.org'" <users@dpdk.org>
Subject: Re: [dpdk-users] Firmware assertion fails with BCM57840 card
Date: Tue, 9 May 2017 13:00:13 +0000	[thread overview]
Message-ID: <1356E4AEBC79BC4AA3EC88F25DE412341230A577@ait-pex01mbx02.win.dtu.dk> (raw)

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



------------------------------

             reply	other threads:[~2017-05-09 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09 13:00 Justas Poderys [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-05-09  8:42 Justas Poderys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1356E4AEBC79BC4AA3EC88F25DE412341230A577@ait-pex01mbx02.win.dtu.dk \
    --to=juspo@fotonik.dtu.dk \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).