From d845f44fb19000a5527909f74c31b18c578fbe38 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Sat, 27 Aug 2016 08:34:20 +0000 Subject: [PATCH] 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. --- sys/dev/iwm/if_iwm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 8d39c4004490..2316cdfcf486 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -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. */