Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add a missing esiop_script_sync(), and debug mess...
details: https://anonhg.NetBSD.org/src/rev/ca66e39a831c
branches: trunk
changeset: 526265:ca66e39a831c
user: bouyer <bouyer%NetBSD.org@localhost>
date: Mon Apr 29 15:44:16 2002 +0000
description:
Add a missing esiop_script_sync(), and debug messages improvements.
diffstat:
sys/dev/ic/esiop.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r d1ba553e7a4a -r ca66e39a831c sys/dev/ic/esiop.c
--- a/sys/dev/ic/esiop.c Mon Apr 29 14:40:23 2002 +0000
+++ b/sys/dev/ic/esiop.c Mon Apr 29 15:44:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: esiop.c,v 1.12 2002/04/27 18:46:49 bouyer Exp $ */
+/* $NetBSD: esiop.c,v 1.13 2002/04/29 15:44:16 bouyer Exp $ */
/*
* Copyright (c) 2002 Manuel Bouyer.
@@ -33,7 +33,7 @@
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.12 2002/04/27 18:46:49 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.13 2002/04/29 15:44:16 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -590,6 +590,13 @@
printf("scsi gross error\n");
if (esiop_target)
esiop_target->target_c.flags &= ~TARF_DT;
+#ifdef DEBUG
+ printf("DSA=0x%x DSP=0x%lx\n",
+ bus_space_read_4(sc->sc_c.sc_rt, sc->sc_c.sc_rh, SIOP_DSA),
+ (u_long)(bus_space_read_4(sc->sc_c.sc_rt, sc->sc_c.sc_rh,
+ SIOP_DSP) -
+ sc->sc_c.sc_scriptaddr));
+#endif
goto reset;
}
if ((sist & SIST0_MA) && need_reset == 0) {
@@ -2038,6 +2045,7 @@
struct esiop_target *esiop_target = (struct esiop_target *)_siop_target;
esiop_script_write(sc, esiop_target->lun_table_offset,
esiop_target->target_c.id);
+ esiop_script_sync(sc, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
}
void
Home |
Main Index |
Thread Index |
Old Index