Index: ncr53c9x.c =================================================================== RCS file: /cvsroot/src/sys/dev/ic/ncr53c9x.c,v retrieving revision 1.146 diff -p -u -r1.146 ncr53c9x.c --- ncr53c9x.c 24 Dec 2016 06:04:50 -0000 1.146 +++ ncr53c9x.c 5 Jan 2017 07:25:16 -0000 @@ -1150,6 +1150,7 @@ ncr53c9x_sched(struct ncr53c9x_softc *sc TAILQ_REMOVE(&sc->ready_list, ecb, chain); ecb->flags &= ~ECB_READY; sc->sc_nexus = ecb; +printf("+%p:UN\n",ecb); ncr53c9x_select(sc, ecb); break; } @@ -1157,6 +1158,7 @@ ncr53c9x_sched(struct ncr53c9x_softc *sc TAILQ_REMOVE(&sc->ready_list, ecb, chain); ecb->flags &= ~ECB_READY; sc->sc_nexus = ecb; +printf("+%p:%02x\n",ecb,ecb->tag[1]); ncr53c9x_select(sc, ecb); break; } else { @@ -1196,6 +1198,7 @@ ncr53c9x_sense(struct ncr53c9x_softc *sc li->untagged = ecb; /* must be executed first to fix C/A */ li->busy = 2; if (ecb == sc->sc_nexus) { +printf("+%p:RS\n",ecb); ncr53c9x_select(sc, ecb); } else { TAILQ_INSERT_HEAD(&sc->ready_list, ecb, chain); @@ -1304,10 +1307,12 @@ ncr53c9x_dequeue(struct ncr53c9x_softc * __func__, lun, ecb); #endif if (li->untagged == ecb) { +printf("-%p:UN\n",ecb); li->busy = 0; li->untagged = NULL; } if (ecb->tag[0] && li->queued[ecb->tag[1]] != NULL) { +printf("-%p:%02x\n",ecb,ecb->tag[1]); #ifdef DIAGNOSTIC if (li->queued[ecb->tag[1]] != NULL && (li->queued[ecb->tag[1]] != ecb))