summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2016-06-04 16:36:23 +0000
committerarybchik <arybchik@FreeBSD.org>2016-06-04 16:36:23 +0000
commit9e97d80032b00fdabf3c144a7dee54945b255bcc (patch)
tree053126db7d992249558ca7918ba81382ff8db504
parente738411e4f24fd389023bec2929b68534ba20637 (diff)
downloadFreeBSD-src-9e97d80032b00fdabf3c144a7dee54945b255bcc.zip
FreeBSD-src-9e97d80032b00fdabf3c144a7dee54945b255bcc.tar.gz
MFC r299915
sfxge(4): improve TX/RX queue error messages Report the full error descriptor in a form that can be passed to firmwaresrc/dpcpu/scripts/evdecode Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
-rw-r--r--sys/dev/sfxge/common/ef10_ev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/sfxge/common/ef10_ev.c b/sys/dev/sfxge/common/ef10_ev.c
index 0110c86..01fd21b 100644
--- a/sys/dev/sfxge/common/ef10_ev.c
+++ b/sys/dev/sfxge/common/ef10_ev.c
@@ -871,7 +871,9 @@ ef10_ev_mcdi(
*/
enp->en_reset_flags |= EFX_RESET_TXQ_ERR;
- EFSYS_PROBE1(tx_descq_err, uint32_t, MCDI_EV_FIELD(eqp, DATA));
+ EFSYS_PROBE2(tx_descq_err,
+ uint32_t, EFX_QWORD_FIELD(*eqp, EFX_DWORD_1),
+ uint32_t, EFX_QWORD_FIELD(*eqp, EFX_DWORD_0));
/* Inform the driver that a reset is required. */
eecp->eec_exception(arg, EFX_EXCEPTION_TX_ERROR,
@@ -911,7 +913,9 @@ ef10_ev_mcdi(
*/
enp->en_reset_flags |= EFX_RESET_RXQ_ERR;
- EFSYS_PROBE1(rx_descq_err, uint32_t, MCDI_EV_FIELD(eqp, DATA));
+ EFSYS_PROBE2(rx_descq_err,
+ uint32_t, EFX_QWORD_FIELD(*eqp, EFX_DWORD_1),
+ uint32_t, EFX_QWORD_FIELD(*eqp, EFX_DWORD_0));
/* Inform the driver that a reset is required. */
eecp->eec_exception(arg, EFX_EXCEPTION_RX_ERROR,
OpenPOWER on IntegriCloud