Skip to content

Commit 3359fce

Browse files
Vladislav Zolotarovdavem330
authored andcommitted
bnx2x: Use firmware 5.2.13
Switch to the new firmware version (5.2.13). Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2db29fc commit 3359fce

7 files changed

Lines changed: 28 additions & 16 deletions

File tree

‎drivers/net/bnx2x.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* bnx2x.h: Broadcom Everest network driver.
22
*
3-
* Copyright (c) 2007-2009 Broadcom Corporation
3+
* Copyright (c) 2007-2010 Broadcom Corporation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -130,7 +130,7 @@
130130
offset, len32); \
131131
} while (0)
132132

133-
#define VIRT_WR_DMAE_LEN(bp, data, addr, len32) \
133+
#define VIRT_WR_DMAE_LEN(bp, data, addr, len32, le32_swap) \
134134
do { \
135135
memcpy(GUNZIP_BUF(bp), data, (len32) * 4); \
136136
bnx2x_write_big_buf_wb(bp, addr, len32); \

‎drivers/net/bnx2x_fw_defs.h‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* bnx2x_fw_defs.h: Broadcom Everest network driver.
22
*
3-
* Copyright (c) 2007-2009 Broadcom Corporation
3+
* Copyright (c) 2007-2010 Broadcom Corporation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -471,6 +471,11 @@
471471

472472

473473
/* Host coalescing constants */
474+
#define HC_IGU_BC_MODE 0
475+
#define HC_IGU_NBC_MODE 1
476+
477+
#define HC_REGULAR_SEGMENT 0
478+
#define HC_DEFAULT_SEGMENT 1
474479

475480
/* index numbers */
476481
#define HC_USTORM_DEF_SB_NUM_INDICES 8

‎drivers/net/bnx2x_hsi.h‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* bnx2x_hsi.h: Broadcom Everest network driver.
22
*
3-
* Copyright (c) 2007-2009 Broadcom Corporation
3+
* Copyright (c) 2007-2010 Broadcom Corporation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -1261,7 +1261,7 @@ struct host_func_stats {
12611261

12621262
#define BCM_5710_FW_MAJOR_VERSION 5
12631263
#define BCM_5710_FW_MINOR_VERSION 2
1264-
#define BCM_5710_FW_REVISION_VERSION 7
1264+
#define BCM_5710_FW_REVISION_VERSION 13
12651265
#define BCM_5710_FW_ENGINEERING_VERSION 0
12661266
#define BCM_5710_FW_COMPILE_FLAGS 1
12671267

@@ -2433,8 +2433,10 @@ struct common_ramrod_eth_rx_cqe {
24332433
u8 ramrod_type;
24342434
#define COMMON_RAMROD_ETH_RX_CQE_TYPE (0x1<<0)
24352435
#define COMMON_RAMROD_ETH_RX_CQE_TYPE_SHIFT 0
2436-
#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x7F<<1)
2437-
#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 1
2436+
#define COMMON_RAMROD_ETH_RX_CQE_ERROR (0x1<<1)
2437+
#define COMMON_RAMROD_ETH_RX_CQE_ERROR_SHIFT 1
2438+
#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x3F<<2)
2439+
#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 2
24382440
u8 conn_type;
24392441
__le16 reserved1;
24402442
__le32 conn_and_cmd_data;

‎drivers/net/bnx2x_init_ops.h‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Static functions needed during the initialization.
33
* This file is "included" in bnx2x_main.c.
44
*
5-
* Copyright (c) 2007-2009 Broadcom Corporation
5+
* Copyright (c) 2007-2010 Broadcom Corporation
66
*
77
* This program is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by
@@ -138,11 +138,16 @@ static void bnx2x_write_big_buf_wb(struct bnx2x *bp, u32 addr, u32 len)
138138
static void bnx2x_init_wr_wb(struct bnx2x *bp, u32 addr, const u32 *data,
139139
u32 len)
140140
{
141+
const u32 *old_data = data;
142+
141143
data = (const u32 *)bnx2x_sel_blob(bp, addr, (const u8 *)data);
142144

143-
if (bp->dmae_ready)
144-
VIRT_WR_DMAE_LEN(bp, data, addr, len);
145-
else
145+
if (bp->dmae_ready) {
146+
if (old_data != data)
147+
VIRT_WR_DMAE_LEN(bp, data, addr, len, 1);
148+
else
149+
VIRT_WR_DMAE_LEN(bp, data, addr, len, 0);
150+
} else
146151
bnx2x_init_ind_wr(bp, addr, data, len);
147152
}
148153

‎drivers/net/bnx2x_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* bnx2x_main.c: Broadcom Everest network driver.
22
*
3-
* Copyright (c) 2007-2009 Broadcom Corporation
3+
* Copyright (c) 2007-2010 Broadcom Corporation
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by

‎firmware/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fw-shipped-$(CONFIG_ADAPTEC_STARFIRE) += adaptec/starfire_rx.bin \
3232
adaptec/starfire_tx.bin
3333
fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin
3434
fw-shipped-$(CONFIG_ATM_AMBASSADOR) += atmsar11.fw
35-
fw-shipped-$(CONFIG_BNX2X) += bnx2x-e1-5.2.7.0.fw bnx2x-e1h-5.2.7.0.fw
35+
fw-shipped-$(CONFIG_BNX2X) += bnx2x-e1-5.2.13.0.fw bnx2x-e1h-5.2.13.0.fw
3636
fw-shipped-$(CONFIG_BNX2) += bnx2/bnx2-mips-09-5.0.0.j9.fw \
3737
bnx2/bnx2-rv2p-09-5.0.0.j10.fw \
3838
bnx2/bnx2-rv2p-09ax-5.0.0.j10.fw \

‎firmware/WHENCE‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,11 @@ Found in hex form in kernel source.
679679

680680
Driver: bnx2x: Broadcom Everest
681681

682-
File: bnx2x-e1-5.2.7.0.fw.ihex
683-
File: bnx2x-e1h-5.2.7.0.fw.ihex
682+
File: bnx2x-e1-5.2.13.0.fw
683+
File: bnx2x-e1h-5.2.13.0.fw
684684

685685
License:
686-
Copyright (c) 2007-2009 Broadcom Corporation
686+
Copyright (c) 2007-2010 Broadcom Corporation
687687

688688
This file contains firmware data derived from proprietary unpublished
689689
source code, Copyright (c) 2007-2009 Broadcom Corporation.

0 commit comments

Comments
 (0)