svn commit: r308319 - stable/10/sys/dev/cxgbe/common

John Baldwin jhb at FreeBSD.org
Fri Nov 4 21:48:23 UTC 2016


Author: jhb
Date: Fri Nov  4 21:48:22 2016
New Revision: 308319
URL: https://svnweb.freebsd.org/changeset/base/308319

Log:
  MFC 297875: 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.

Modified:
  stable/10/sys/dev/cxgbe/common/t4_hw.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- stable/10/sys/dev/cxgbe/common/t4_hw.c	Fri Nov  4 21:43:10 2016	(r308318)
+++ stable/10/sys/dev/cxgbe/common/t4_hw.c	Fri Nov  4 21:48:22 2016	(r308319)
@@ -378,7 +378,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);


More information about the svn-src-stable-10 mailing list