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. */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to