From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from spamfilter3.dtu.dk (spamfilter3.dtu.dk [192.38.82.113]) by dpdk.org (Postfix) with ESMTP id 046751C00 for ; Tue, 9 May 2017 15:00:20 +0200 (CEST) Received: from ait-pexedg02.win.dtu.dk (ait-pexedg02.win.dtu.dk [192.38.82.192]) by spamfilter3.dtu.dk with ESMTP id v49CxudJ017982-v49CxudT017982 (version=TLSv1.0 cipher=DHE-RSA-AES256-SHA bits=256 verify=CAFAIL) for ; Tue, 9 May 2017 15:00:19 +0200 Received: from ait-pex01mbx03.win.dtu.dk (192.38.80.17) by ait-pexedg02.win.dtu.dk (192.38.82.192) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 May 2017 15:00:10 +0200 Received: from AIT-PEX01MBX02.win.dtu.dk ([169.254.2.141]) by ait-pex01mbx03.win.dtu.dk ([169.254.3.86]) with mapi id 14.03.0319.002; Tue, 9 May 2017 15:00:14 +0200 From: Justas Poderys To: "'users@dpdk.org'" Thread-Topic: Firmware assertion fails with BCM57840 card Thread-Index: AdLIwspd0FjZRvT3S7GSHWCUhskshw== Date: Tue, 9 May 2017 13:00:13 +0000 Message-ID: <1356E4AEBC79BC4AA3EC88F25DE412341230A577@ait-pex01mbx02.win.dtu.dk> Accept-Language: en-US, da-DK Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [130.225.73.250] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Firmware assertion fails with BCM57840 card X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 13:00:21 -0000 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 t= he problem was: juspo@TOR1CN:~/dpdk-stable-16.11.1$ sudo -E ./x86_64-native-linuxapp-gcc/ap= p/testpmd --log-level 10 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) { fwname =3D sc->devinfo.device_id =3D=3D CHIP_NUM_57711 ? FW_NAME_57711 : FW_NAME_57810; f =3D 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=20 Downloading missing firmware files from https://github.com/cernekee/linux-f= irmware/tree/master/bnx2x Made dpdk work. ------------------------------ Message: 6 Date: Tue, 9 May 2017 08:42:39 +0000 From: Justas Poderys To: "'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=3D"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/ap= p/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:5= 56: 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/dpd= k-devbind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:15:00.0 'BCM57840 NetXtreme II 10 Gigabit Ethernet' drv=3Digb_uio unus= ed=3Dbnx2x,vfio-pci 0000:15:00.1 'BCM57840 NetXtreme II 10 Gigabit Ethernet' drv=3Digb_uio unus= ed=3Dbnx2x,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 ------------------------------