Author: jhb
Date: Mon Dec 5 23:35:37 2016
New Revision: 309578
URL: https://svnweb.freebsd.org/changeset/base/309578
Log:
MFC 307759: cxgbe(4): Dump any mailbox command that times out.
Modified:
stable/11/sys/dev/cxgbe/common/t4_hw.c
Directory Properties:
stable/11/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/10/sys/dev/cxgbe/common/t4_hw.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/11/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- stable/11/sys/dev/cxgbe/common/t4_hw.c Mon Dec 5 23:30:13 2016
(r309577)
+++ stable/11/sys/dev/cxgbe/common/t4_hw.c Mon Dec 5 23:35:37 2016
(r309578)
@@ -432,6 +432,21 @@ int t4_wr_mbox_meat_timeout(struct adapt
CH_ERR(adap, "command %#x in mailbox %d timed out\n",
*(const u8 *)cmd, mbox);
+ /* If DUMP_MBOX is set the mbox has already been dumped */
+ if ((adap->debug_flags & DF_DUMP_MBOX) == 0) {
+ p = cmd;
+ CH_ERR(adap, "mbox: %016llx %016llx %016llx %016llx "
+ "%016llx %016llx %016llx %016llx\n",
+ (unsigned long long)be64_to_cpu(p[0]),
+ (unsigned long long)be64_to_cpu(p[1]),
+ (unsigned long long)be64_to_cpu(p[2]),
+ (unsigned long long)be64_to_cpu(p[3]),
+ (unsigned long long)be64_to_cpu(p[4]),
+ (unsigned long long)be64_to_cpu(p[5]),
+ (unsigned long long)be64_to_cpu(p[6]),
+ (unsigned long long)be64_to_cpu(p[7]));
+ }
+
t4_report_fw_error(adap);
t4_fatal_err(adap);
return ret;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"