diff options
author | np <np@FreeBSD.org> | 2016-04-12 21:17:19 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2016-04-12 21:17:19 +0000 |
commit | e89a20428b88441730fafe1c20a75ea6103badbc (patch) | |
tree | 1459fb6420fe45010cbd80fb40b979c1f938acc8 | |
parent | c9e279f6c26e1164061be64c95c6e186ebaad0f5 (diff) | |
download | FreeBSD-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.c | 2 |
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); |