Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2012 06:39:46 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238275 - head/sys/dev/ath
Message-ID:  <201207090639.q696dk20000380@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Jul  9 06:39:46 2012
New Revision: 238275
URL: http://svn.freebsd.org/changeset/base/238275

Log:
  Extend the RX descriptor completion debugging to log the larger
  AR93xx receive descriptors.
  
  This isn't entirely complete - the AR93xx and later descriptors
  don't have a link/buffer pointer; the descriptor contents just
  start.

Modified:
  head/sys/dev/ath/if_ath_debug.c

Modified: head/sys/dev/ath/if_ath_debug.c
==============================================================================
--- head/sys/dev/ath/if_ath_debug.c	Mon Jul  9 06:34:15 2012	(r238274)
+++ head/sys/dev/ath/if_ath_debug.c	Mon Jul  9 06:39:46 2012	(r238275)
@@ -118,6 +118,16 @@ ath_printrxbuf(struct ath_softc *sc, con
 			    ds->ds_hw[2], ds->ds_hw[3], ds->ds_hw[4],
 			    ds->ds_hw[5], ds->ds_hw[6], ds->ds_hw[7],
 			    ds->ds_hw[8]);
+		} else if (ah->ah_magic == 0x19741014) {
+			printf("        %08x %08x %08x %08x %08x %08x %08x\n",
+			    ds->ds_hw[2], ds->ds_hw[3], ds->ds_hw[4],
+			    ds->ds_hw[5], ds->ds_hw[6], ds->ds_hw[7],
+			    ds->ds_hw[8]);
+
+			printf("        %08x %08x %08x %08x %08x %08x %08x\n",
+			    ds->ds_hw[9], ds->ds_hw[10], ds->ds_hw[11],
+			    ds->ds_hw[12], ds->ds_hw[13], ds->ds_hw[14],
+			    ds->ds_hw[15]);
 		}
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207090639.q696dk20000380>