svn commit: r330142 - stable/11/sys/dev/iwm

Eitan Adler eadler at FreeBSD.org
Thu Mar 1 04:21:19 UTC 2018


Author: eadler
Date: Thu Mar  1 04:21:18 2018
New Revision: 330142
URL: https://svnweb.freebsd.org/changeset/base/330142

Log:
  MFC r304880:
  
    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:
  stable/11/sys/dev/iwm/if_iwm.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/iwm/if_iwm.c
==============================================================================
--- stable/11/sys/dev/iwm/if_iwm.c	Thu Mar  1 04:06:49 2018	(r330141)
+++ stable/11/sys/dev/iwm/if_iwm.c	Thu Mar  1 04:21:18 2018	(r330142)
@@ -3115,6 +3115,11 @@ iwm_cmd_done(struct iwm_softc *sc, struct iwm_rx_packe
 		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-stable mailing list