All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH dpdk v2] bnx2x: Update firmware versions
@ 2017-04-26  8:08 Alexey Kardashevskiy
  2017-04-26  9:18 ` Ferruh Yigit
  0 siblings, 1 reply; 8+ messages in thread
From: Alexey Kardashevskiy @ 2017-04-26  8:08 UTC (permalink / raw)
  To: dev; +Cc: Alexey Kardashevskiy

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-28 17:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26  8:08 [PATCH dpdk v2] bnx2x: Update firmware versions Alexey Kardashevskiy
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.