svn commit: r304880 - head/sys/dev/iwm

Andriy Voskoboinyk avos at FreeBSD.org
Sat Aug 27 08:34:21 UTC 2016


Author: avos
Date: Sat Aug 27 08:34:20 2016
New Revision: 304880
URL: https://svnweb.freebsd.org/changeset/base/304880

Log:
  iwm: add 'command accepted' debug notification (copied from wpi(4)).
  
  Now it should be easier to find out which command causes firmware
  panics when few commands are sent in a short period of time.

Modified:
  head/sys/dev/iwm/if_iwm.c

Modified: head/sys/dev/iwm/if_iwm.c
==============================================================================
--- head/sys/dev/iwm/if_iwm.c	Sat Aug 27 02:53:21 2016	(r304879)
+++ head/sys/dev/iwm/if_iwm.c	Sat Aug 27 08:34:20 2016	(r304880)
@@ -3120,6 +3120,11 @@ iwm_cmd_done(struct iwm_softc *sc, struc
 		return;	/* Not a command ack. */
 	}
 
+	/* XXX wide commands? */
+	IWM_DPRINTF(sc, IWM_DEBUG_CMD,
+	    "cmd notification type 0x%x qid %d idx %d\n",
+	    pkt->hdr.code, pkt->hdr.qid, pkt->hdr.idx);
+
 	data = &ring->data[pkt->hdr.idx];
 
 	/* If the command was mapped in an mbuf, free it. */


More information about the svn-src-all mailing list