diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-03-14 14:37:02 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-03-14 14:37:02 +0000 |
commit | 5e2cfa6d560b0642050749a1f1e51f94152b37c9 (patch) | |
tree | eb8cbbb321bfecde9ff0a88b4b9b4392e8b1f115 | |
parent | c97275c3048cac58b00da9844b5065552b51fe09 (diff) |
Quieten ahc a bit, same as ahd is. Put some messages emitted during
an i/o restart inside AHC_DEBUG. Spotted by jsing@ during sgi probe.
Should be cosmetic only.
Tested by jsing@.
ok beck@
ok deraadt@ for 4.7.
-rw-r--r-- | sys/dev/ic/aic7xxx.c | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c index d628f22decb..16ae5dcbb11 100644 --- a/sys/dev/ic/aic7xxx.c +++ b/sys/dev/ic/aic7xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic7xxx.c,v 1.83 2009/11/18 19:57:09 halex Exp $ */ +/* $OpenBSD: aic7xxx.c,v 1.84 2010/03/14 14:37:01 krw Exp $ */ /* $NetBSD: aic7xxx.c,v 1.108 2003/11/02 11:07:44 wiz Exp $ */ /* @@ -40,7 +40,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * - * $Id: aic7xxx.c,v 1.83 2009/11/18 19:57:09 halex Exp $ + * $Id: aic7xxx.c,v 1.84 2010/03/14 14:37:01 krw Exp $ */ /* * Ported from FreeBSD by Pascal Renauld, Network Storage Solutions, Inc. - April 2003 @@ -884,26 +884,28 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) if (lastphase == ahc_phase_table[i].phase) break; } - ahc_print_path(ahc, scb); - printf("data overrun detected %s." - " Tag == 0x%x.\n", - ahc_phase_table[i].phasemsg, - scb->hscb->tag); -#ifndef SMALL_KERNEL - ahc_print_path(ahc, scb); - printf("%s seen Data Phase. Length = %ld. NumSGs = %d.\n", - ahc_inb(ahc, SEQ_FLAGS) & DPHASE ? "Have" : "Haven't", - ahc_get_transfer_length(scb), scb->sg_count); - if (scb->sg_count > 0) { - for (i = 0; i < scb->sg_count; i++) { - - printf("sg[%d] - Addr 0x%x%x : Length %d\n", - i, - (aic_le32toh(scb->sg_list[i].len) >> 24 - & SG_HIGH_ADDR_BITS), - aic_le32toh(scb->sg_list[i].addr), - aic_le32toh(scb->sg_list[i].len) - & AHC_SG_LEN_MASK); +#ifdef AHC_DEBUG + if ((ahc_debug & AHC_SHOW_MESSAGES) != 0) { + ahc_print_path(ahc, scb); + printf("data overrun detected %s." + " Tag == 0x%x.\n", + ahc_phase_table[i].phasemsg, + scb->hscb->tag); + ahc_print_path(ahc, scb); + printf("%s seen Data Phase. Length = %ld. NumSGs = %d.\n", + ahc_inb(ahc, SEQ_FLAGS) & DPHASE ? "Have" : "Haven't", + ahc_get_transfer_length(scb), scb->sg_count); + if (scb->sg_count > 0) { + for (i = 0; i < scb->sg_count; i++) { + + printf("sg[%d] - Addr 0x%x%x : Length %d\n", + i, + (aic_le32toh(scb->sg_list[i].len) >> 24 + & SG_HIGH_ADDR_BITS), + aic_le32toh(scb->sg_list[i].addr), + aic_le32toh(scb->sg_list[i].len) + & AHC_SG_LEN_MASK); + } } } #endif |