Author: np
Date: Tue Apr 12 21:17:19 2016
New Revision: 297875
URL: https://svnweb.freebsd.org/changeset/base/297875
Log:
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
Modified:
head/sys/dev/cxgbe/common/t4_hw.c
Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c Tue Apr 12 21:04:10 2016
(r297874)
+++ head/sys/dev/cxgbe/common/t4_hw.c Tue Apr 12 21:17:19 2016
(r297875)
@@ -381,7 +381,7 @@ int t4_wr_mbox_meat_timeout(struct adapt
/*
* 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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"