Skip to contentSkip to conversation

: Update RV2P firmware for 5709.

PATCH Applied Michael Chan 2 participants 2 messages Apr 30, 2008 – May 2, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 : Update RV2P firmware for 5709.

[BNX2]: Update RV2P firmware for 5709.

The new RV2P firmware fixes 2 issues:

1. The jumbo rx buffer page size is now configurable and set to the proper PAGE_SIZE. Before, it was assumed to be always 4K.

2. Driver sometimes would crash when receiving jumbo packets mixed with firmware management packets. This was caused by the old firmware DMA'ing to the wrong address.

---
 drivers/net/bnx2.c     |    6 +
 drivers/net/bnx2_fw2.h |  502 +++++++++++++++++++++++++-----------------------
 2 files changed, 265 insertions(+), 243 deletions(-)
drivers/net/bnx2.c +6 -0
index d3d3342..90621c7 100644
@@ -3178,6 +3178,12 @@ load_rv2p_fw(struct bnx2 *bp, __le32 *rv2p_code, u32 rv2p_code_len,
 	int i;
 	u32 val;
 
+	if (rv2p_proc == RV2P_PROC2 && CHIP_NUM(bp) == CHIP_NUM_5709) {
+		val = le32_to_cpu(rv2p_code[XI_RV2P_PROC2_MAX_BD_PAGE_LOC]);
+		val &= ~XI_RV2P_PROC2_BD_PAGE_SIZE_MSK;
+		val |= XI_RV2P_PROC2_BD_PAGE_SIZE;
+		rv2p_code[XI_RV2P_PROC2_MAX_BD_PAGE_LOC] = cpu_to_le32(val);
+	}
 
 	for (i = 0; i < rv2p_code_len; i += 8) {
 		REG_WR(bp, BNX2_RV2P_INSTR_HIGH, le32_to_cpu(*rv2p_code));
drivers/net/bnx2_fw2.h +259 -243

510 lines not on this page · raw message

Signature · 1 line
1.5.5.GIT
maintainer Applied
#1 lore raw

From: "Michael Chan" <[email protected]>
Date: Wed, 30 Apr 2008 15:52:10 -0700

Quoted 4 lines

[BNX2]: Update RV2P firmware for 5709.

The new RV2P firmware fixes 2 issues:

Quoted 8 lines

1. The jumbo rx buffer page size is now configurable and set to the proper PAGE_SIZE. Before, it was assumed to be always 4K.

2. Driver sometimes would crash when receiving jumbo packets mixed with firmware management packets. This was caused by the old firmware DMA'ing to the wrong address.

Applied.