diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-11-29 14:52:20 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-11-29 14:52:20 +0000 |
commit | 9dd5ecf45049c4c91cb4a8496520fff369be3d38 (patch) | |
tree | 76b0ba87564b396ff20e2ec45dfbb32614d256b6 /sys/dev/pci | |
parent | fff00d0b9f0237e787f5b573c1ebd1adb08db769 (diff) |
Report about command error
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/ips.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index fd913feb939..ef0b46c6172 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.14 2006/11/29 14:41:09 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.15 2006/11/29 14:52:19 grange Exp $ */ /* * Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org> @@ -682,7 +682,7 @@ ips_morpheus_intr(void *arg) struct ccb *ccb; struct scsi_xfer *xs; u_int32_t oisr, oqpr; - int id, s, rv = 0; + int gsc, id, s, rv = 0; oisr = IPS_READ_4(sc, IPS_MORPHEUS_OISR); DPRINTF(IPS_D_INTR, ("%s: intr, OISR 0x%08x\n", @@ -694,7 +694,17 @@ ips_morpheus_intr(void *arg) while ((oqpr = IPS_READ_4(sc, IPS_MORPHEUS_OQPR)) != 0xffffffff) { DPRINTF(IPS_D_INTR, ("OQPR 0x%08x\n", oqpr)); + gsc = IPS_MORPHEUS_OQPR_GSC(oqpr); id = IPS_MORPHEUS_OQPR_ID(oqpr); + + if (gsc != IPS_MORPHEUS_GSC_NOERR && + gsc != IPS_MORPHEUS_GSC_RECOV) { + DPRINTF(IPS_D_ERR, ("%s: intr, error 0x%x", + sc->sc_dev.dv_xname, gsc)); + DPRINTF(IPS_D_ERR, (", OISR 0x%08x, OQPR 0x%08x\n", + oisr, oqpr)); + } + if (id >= sc->sc_ai.max_concurrent_cmds) { DPRINTF(IPS_D_ERR, ("%s: intr, bogus id %d", sc->sc_dev.dv_xname, id)); |