Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/dev/ic Remove debugging code that wasn't meant for ...



details:   https://anonhg.NetBSD.org/src/rev/921d9368a96b
branches:  netbsd-1-5
changeset: 488288:921d9368a96b
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Jun 27 18:55:55 2000 +0000

description:
Remove debugging code that wasn't meant for prime time.

diffstat:

 sys/dev/ic/aic7xxx.c |  48 ++----------------------------------------------
 1 files changed, 2 insertions(+), 46 deletions(-)

diffs (97 lines):

diff -r d5ff38502986 -r 921d9368a96b sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c      Tue Jun 27 18:52:09 2000 +0000
+++ b/sys/dev/ic/aic7xxx.c      Tue Jun 27 18:55:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic7xxx.c,v 1.55 2000/06/04 11:42:55 fvdl Exp $        */
+/*     $NetBSD: aic7xxx.c,v 1.55.2.1 2000/06/27 18:55:55 fvdl Exp $    */
 
 /*
  * Generic driver for the aic7xxx based adaptec SCSI controllers
@@ -115,8 +115,6 @@
 #include <dev/microcode/aic7xxx/aic7xxx_reg.h>
 #include <dev/microcode/aic7xxx/aic7xxx_seq.h>
 
-#define XS_STS_DEBUG   0x00000002
-
 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
 #define ALL_CHANNELS '\0'
@@ -1724,8 +1722,6 @@
                u_int  scb_index;
                struct hardware_scb *hscb;
                struct scsipi_xfer *xs;
-               struct scb *scbp;
-               int todo, inqueue;
                /*
                 * The sequencer will notify us when a command
                 * has an error that would be of interest to
@@ -1894,34 +1890,10 @@
                case SCSI_STATUS_BUSY:
                        /*
                         * XXX middle layer doesn't handle XS_BUSY well.
-                        * So, requeue this ourselves internally. It will
-                        * get its turn once all outstanding (tagged)
-                        * commands have finished.
+                        * So, requeue this ourselves internally.
                         */
                        xs->error = XS_BUSY;
-                       xs->xs_status |= XS_STS_DEBUG;
                        scb->flags |= SCB_REQUEUE;
-
-                       /*
-                        * Walk through all pending SCBs for this target,
-                        * incrementing the freeze count for the queue.
-                        * When all of these have been completed, the
-                        * queue will be available again.
-                        */
-                       inqueue = todo = 0;
-                       scbp = ahc->pending_ccbs.lh_first;
-                       while (scbp != NULL) {
-                               inqueue++;
-                               if (ahc_match_scb(scbp, SCB_TARGET(scb),
-                                   SCB_CHANNEL(scb), SCB_LUN(scb), 
-                                   SCB_LIST_NULL, ROLE_INITIATOR)) {
-                                       ahc_freeze_ccb(scbp);
-                                       todo++;
-                               }
-                               scbp = scbp->plinks.le_next;
-                       }
-                       scsi_print_addr(xs->sc_link);
-                       printf("%d SCBs pending, %d to drain\n", inqueue, todo);
                        break;
                }
                break;
@@ -3455,21 +3427,10 @@
                 */
                int s;
 
-               if (xs->xs_status & XS_STS_DEBUG) {
-                       scsi_print_addr(xs->sc_link);
-                       printf("putting SCB that caused queue full back"
-                              " in queue\n");
-               }
-
                s = splbio();
                TAILQ_INSERT_HEAD(&ahc->sc_q, xs, adapter_q);
                splx(s);
        } else {
-               if (xs->xs_status & XS_STS_DEBUG) {
-                       xs->xs_status &= ~XS_STS_DEBUG;
-                       scsi_print_addr(xs->sc_link);
-                       printf("completed SCB that caused queue full\n");
-               }
                xs->xs_status |= XS_STS_DONE;
                ahc_check_tags(ahc, xs);
                scsipi_done(xs);
@@ -4098,11 +4059,6 @@
        if ((tstate->discenable & mask) != 0)
                hscb->control |= DISCENB;
 
-       if (xs->xs_status & XS_STS_DEBUG) {
-               scsi_print_addr(xs->sc_link);
-               printf("redoing command that caused queue full\n");
-       }
-
        if (xs->xs_control & XS_CTL_RESET) {
                hscb->cmdpointer = 0;
                scb->flags |= SCB_DEVICE_RESET;



Home | Main Index | Thread Index | Old Index