summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2016-04-12 21:17:19 +0000
committernp <np@FreeBSD.org>2016-04-12 21:17:19 +0000
commite89a20428b88441730fafe1c20a75ea6103badbc (patch)
tree1459fb6420fe45010cbd80fb40b979c1f938acc8
parentc9e279f6c26e1164061be64c95c6e186ebaad0f5 (diff)
downloadFreeBSD-src-e89a20428b88441730fafe1c20a75ea6103badbc.zip
FreeBSD-src-e89a20428b88441730fafe1c20a75ea6103badbc.tar.gz
cxgbe(4): Always read the entire mailbox into the reply buffer.
The size of the reply can be different from the size of the command in case a debug firmware asserts. fw_asrt() needs the entire reply in order to decode the location of the assert. Sponsored by: Chelsio Communications
-rw-r--r--sys/dev/cxgbe/common/t4_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c
index 588f6fd..8973551 100644
--- a/sys/dev/cxgbe/common/t4_hw.c
+++ b/sys/dev/cxgbe/common/t4_hw.c
@@ -381,7 +381,7 @@ int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd,
/*
* Retrieve the command reply and release the mailbox.
*/
- get_mbox_rpl(adap, cmd_rpl, size/8, data_reg);
+ get_mbox_rpl(adap, cmd_rpl, MBOX_LEN/8, data_reg);
t4_write_reg(adap, ctl_reg, V_MBOWNER(X_MBOWNER_NONE));
CH_DUMP_MBOX(adap, mbox, data_reg);
OpenPOWER on IntegriCloud