* [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring.
@ 2009-12-11 1:40 Michael Chan
2009-12-11 1:40 ` [PATCH 2/2] cnic: Zero out status block and Event Queue indices Michael Chan
2009-12-11 23:17 ` [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Michael Chan @ 2009-12-11 1:40 UTC (permalink / raw)
To: davem; +Cc: netdev
This step is necessary on the bnx2x devices when restarting the iSCSI
ring. Without it, the firmware can assert and cause bnx2x to report
errors.
Signed-off-by: Michael Chan <mchan@broadcom.com>
---
drivers/net/cnic.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c
index d4c6e7f..a2c3328 100644
--- a/drivers/net/cnic.c
+++ b/drivers/net/cnic.c
@@ -4183,6 +4183,12 @@ static void cnic_shutdown_rings(struct cnic_dev *dev)
cnic_submit_kwqe_16(dev, RAMROD_CMD_ID_ETH_HALT,
BNX2X_ISCSI_L2_CID, ETH_CONNECTION_TYPE, &l5_data);
msleep(10);
+
+ memset(&l5_data, 0, sizeof(l5_data));
+ cnic_submit_kwqe_16(dev, RAMROD_CMD_ID_ETH_CFC_DEL,
+ BNX2X_ISCSI_L2_CID, ETH_CONNECTION_TYPE |
+ (1 << SPE_HDR_COMMON_RAMROD_SHIFT), &l5_data);
+ msleep(10);
}
}
--
1.6.4.GIT
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] cnic: Zero out status block and Event Queue indices.
2009-12-11 1:40 [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring Michael Chan
@ 2009-12-11 1:40 ` Michael Chan
2009-12-11 23:17 ` David Miller
2009-12-11 23:17 ` [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Michael Chan @ 2009-12-11 1:40 UTC (permalink / raw)
To: davem; +Cc: netdev
To prevent stale indices from causing spurious events when restarting the
bnx2x devices.
Signed-off-by: Michael Chan <mchan@broadcom.com>
---
drivers/net/cnic.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c
index a2c3328..4332b3a 100644
--- a/drivers/net/cnic.c
+++ b/drivers/net/cnic.c
@@ -1104,6 +1104,8 @@ static int cnic_alloc_bnx2x_resc(struct cnic_dev *dev)
cp->bnx2x_status_blk = cp->status_blk;
cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk;
+ memset(cp->bnx2x_status_blk, 0, sizeof(struct host_status_block));
+
cp->l2_rx_ring_size = 15;
ret = cnic_alloc_l2_rings(dev, 4);
@@ -4295,6 +4297,9 @@ static void cnic_stop_bnx2x_hw(struct cnic_dev *dev)
offsetof(struct cstorm_status_block_c,
index_values[HC_INDEX_C_ISCSI_EQ_CONS]),
0);
+ CNIC_WR(dev, BAR_CSTRORM_INTMEM +
+ CSTORM_ISCSI_EQ_CONS_OFFSET(cp->func, 0), 0);
+ CNIC_WR16(dev, cp->kcq_io_addr, 0);
cnic_free_resc(dev);
}
--
1.6.4.GIT
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring.
2009-12-11 1:40 [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring Michael Chan
2009-12-11 1:40 ` [PATCH 2/2] cnic: Zero out status block and Event Queue indices Michael Chan
@ 2009-12-11 23:17 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2009-12-11 23:17 UTC (permalink / raw)
To: mchan; +Cc: netdev
From: "Michael Chan" <mchan@broadcom.com>
Date: Thu, 10 Dec 2009 17:40:57 -0800
> This step is necessary on the bnx2x devices when restarting the iSCSI
> ring. Without it, the firmware can assert and cause bnx2x to report
> errors.
>
> Signed-off-by: Michael Chan <mchan@broadcom.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] cnic: Zero out status block and Event Queue indices.
2009-12-11 1:40 ` [PATCH 2/2] cnic: Zero out status block and Event Queue indices Michael Chan
@ 2009-12-11 23:17 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-12-11 23:17 UTC (permalink / raw)
To: mchan; +Cc: netdev
From: "Michael Chan" <mchan@broadcom.com>
Date: Thu, 10 Dec 2009 17:40:58 -0800
> To prevent stale indices from causing spurious events when restarting the
> bnx2x devices.
>
> Signed-off-by: Michael Chan <mchan@broadcom.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-11 23:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 1:40 [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring Michael Chan
2009-12-11 1:40 ` [PATCH 2/2] cnic: Zero out status block and Event Queue indices Michael Chan
2009-12-11 23:17 ` David Miller
2009-12-11 23:17 ` [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring David Miller
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).