summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-06-02 00:32:38 +0000
committereivind <eivind@FreeBSD.org>1998-06-02 00:32:38 +0000
commitf7112550c8685aab298cb3df5ff23d8027c9c23a (patch)
treede4c5529be7ee53f13500f6c8259fe0f395be6ed /sys/dev/dpt
parentcfe0052eeae642e9ff9c24764d1fd5734a50e93d (diff)
downloadFreeBSD-src-f7112550c8685aab298cb3df5ff23d8027c9c23a.zip
FreeBSD-src-f7112550c8685aab298cb3df5ff23d8027c9c23a.tar.gz
o Return error when the controller can't accept commands.
o Make driver less chatty on boot (only announce version under bootverbose) Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_control.c7
-rw-r--r--sys/dev/dpt/dpt_pci.c4
-rw-r--r--sys/dev/dpt/dpt_scsi.c12
3 files changed, 11 insertions, 12 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c
index 2c85819..fe3188d 100644
--- a/sys/dev/dpt/dpt_control.c
+++ b/sys/dev/dpt/dpt_control.c
@@ -36,7 +36,7 @@
* future.
*/
-#ident "$Id: dpt_control.c,v 1.3 1998/02/20 13:11:44 bde Exp $"
+#ident "$Id: dpt_control.c,v 1.4 1998/04/17 22:36:20 des Exp $"
#include "opt_dpt.h"
@@ -853,8 +853,9 @@ dpt_drvinit(void *unused)
dev_t dev;
if (!dpt_devsw_installed) {
- printf("DPT: RAID Manager driver, Version %d.%d.%d\n",
- DPT_CTL_RELEASE, DPT_CTL_VERSION, DPT_CTL_PATCH);
+ if (bootverbose)
+ printf("DPT: RAID Manager driver, Version %d.%d.%d\n",
+ DPT_CTL_RELEASE, DPT_CTL_VERSION, DPT_CTL_PATCH);
/* Add the I/O (data) channel */
dev = makedev(CDEV_MAJOR, 0);
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c
index 3bb2420..11d02d7 100644
--- a/sys/dev/dpt/dpt_pci.c
+++ b/sys/dev/dpt/dpt_pci.c
@@ -34,7 +34,7 @@
* caveats: We may need an eisa and an isa files too
*/
-#ident "$Id: dpt_pci.c,v 1.4 1998/02/20 13:11:50 bde Exp $"
+#ident "$Id: dpt_pci.c,v 1.5 1998/03/11 00:30:16 julian Exp $"
#include "opt_devfs.h"
#include "opt_dpt.h"
@@ -110,7 +110,7 @@ dpt_pci_probe(pcici_t tag, pcidi_t type)
#define PCI_SUBCLASS_MASS_STORAGE_SCSI 0x00000000
#endif
- if ( !already_announced ) {
+ if ( bootverbose && !already_announced ) {
printf("DPT: PCI SCSI HBA Driver, version %d.%d.%d\n",
DPT_RELEASE, DPT_VERSION, DPT_PATCH);
++already_announced;
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c
index 38ce29c..5abf2ad 100644
--- a/sys/dev/dpt/dpt_scsi.c
+++ b/sys/dev/dpt/dpt_scsi.c
@@ -64,7 +64,7 @@
* 3. dpt_handle_timeouts potentially inserts into the queue
*/
-#ident "$Id: dpt_scsi.c,v 1.4 1998/02/25 11:56:37 bde Exp $"
+#ident "$Id: dpt_scsi.c,v 1.5 1998/03/11 00:30:08 julian Exp $"
#define _DPT_C_
#include "opt_dpt.h"
@@ -2105,13 +2105,11 @@ dpt_scsi_cmd(struct scsi_xfer * xs)
/* This will setup the xs flags */
dpt_process_completion(dpt, ccb);
- if (status & HA_SERROR) {
- ospl = splsoftcam();
- dpt_Qpush_free(dpt, ccb);
- splx(ospl);
- return (COMPLETE);
- }
ospl = splsoftcam();
+ if ((status & HA_SERROR) || (ndx == xs->timeout)) {
+ xs->error = XS_DRIVER_STUFFUP;
+ }
+
dpt_Qpush_free(dpt, ccb);
splx(ospl);
return (COMPLETE);
OpenPOWER on IntegriCloud