From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: dev@dpdk.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>
Subject: [dpdk-dev] [PATCH dpdk v2] bnx2x: Update firmware versions
Date: Wed, 26 Apr 2017 18:08:33 +1000 [thread overview]
Message-ID: <20170426080833.23944-1-aik@ozlabs.ru> (raw)
Recent kernels/distros have updated firmware images, use them.
In order to keep support of older distros (such as Fedora 19 or
Ubuntu 14.04), this also tries fallback to an order firmware version.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
Changes:
v2:
* in addition to the very new firmware images, this adds fallback to
some older firmware present in 3yo distros
---
drivers/net/bnx2x/bnx2x.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c
index 1a7e1c8e1..355bb117f 100644
--- a/drivers/net/bnx2x/bnx2x.c
+++ b/drivers/net/bnx2x/bnx2x.c
@@ -9535,8 +9535,11 @@ static void bnx2x_init_rte(struct bnx2x_softc *sc)
}
#define FW_HEADER_LEN 104
-#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"
+#define FW_NAME_57711_MIN "/lib/firmware/bnx2x/bnx2x-e1h-7.8.17.0.fw"
+#define FW_NAME_57810_MIN "/lib/firmware/bnx2x/bnx2x-e2-7.8.17.0.fw"
+#define FW_NAME_57711 "/lib/firmware/bnx2x/bnx2x-e1h-7.13.1.0.fw"
+#define FW_NAME_57810 "/lib/firmware/bnx2x/bnx2x-e2-7.13.1.0.fw"
+
void bnx2x_load_firmware(struct bnx2x_softc *sc)
{
@@ -9548,6 +9551,11 @@ void bnx2x_load_firmware(struct bnx2x_softc *sc)
? FW_NAME_57711 : FW_NAME_57810;
f = open(fwname, O_RDONLY);
if (f < 0) {
+ fwname = sc->devinfo.device_id == CHIP_NUM_57711
+ ? FW_NAME_57711_MIN : FW_NAME_57810_MIN;
+ f = open(fwname, O_RDONLY);
+ }
+ if (f < 0) {
PMD_DRV_LOG(NOTICE, "Can't open firmware file");
return;
}
--
2.11.0
next reply other threads:[~2017-04-26 8:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 8:08 Alexey Kardashevskiy [this message]
2017-04-26 9:18 ` Ferruh Yigit
2017-04-27 4:14 ` Alexey Kardashevskiy
2017-04-27 4:29 ` Ferruh Yigit
2017-04-29 0:31 ` Mody, Rasesh
2017-04-29 5:12 ` Alexey Kardashevskiy
2017-06-28 16:01 ` Ferruh Yigit
2017-06-28 17:05 ` Mody, Rasesh
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=20170426080833.23944-1-aik@ozlabs.ru \
--to=aik@ozlabs.ru \
--cc=dev@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).