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.
This commit is contained in:
Andriy Voskoboinyk 2016-08-27 08:34:20 +00:00
parent f05ca6f33b
commit d845f44fb1

View File

@ -3120,6 +3120,11 @@ iwm_cmd_done(struct iwm_softc *sc, struct iwm_rx_packet *pkt)
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. */