Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 1995 07:07:21 -0400 (EDT)
From:      Peter Dufault <dufault@hda.com>
To:        se@zpr.uni-koeln.de (Stefan Esser)
Cc:        jmz@cabri.obs-besancon.fr, current@freebsd.org
Subject:   Re: SCSI bug (possibly in the ncr driver)
Message-ID:  <199509181107.HAA14449@hda.com>
In-Reply-To: <199509180946.AA29429@Sysiphos> from "Stefan Esser" at Sep 18, 95 11:46:01 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> The CDROMs don't support the command they receive,
> Don't know, whether the Adaptec implements special 
> magic to better deal with that situation, but it 
> is no driver problem. 

No, there is no magic in the Adaptec driver.

> (Which Adaptec did you use successfully before ?)
> 
> The driver sent the command, received the status and 
> let the GENERIC SCSI code write that message ...

The message is from the kernel driver and not the user mode scsi
library (I'm just clarifying; you may mean the generic part of the
kernel driver but it isn't clear as we have two CDROM programs one
using kernel ioctls and the other using the user library).

If it worked fine with an Adaptec and now fails with the NCR then
the command may be getting stepped on.  As Stefan says, this is
unlikely: there would probably be problems with commands
to other devices.

> Perhaps it is possible to find out, WHICH field has
> been the cause of the command failure. But I guess 
> this will require some CDROM technical manuals, that
> I don't have access to.

You can tell which byte in the command is in error in a command
independent way.  The user mode library does this.  It isn't likely
to add that much information.  You can turn on debugging in
the kernel by compiling with SCSI_DEBUG defined and then use scsi(8)
to set a debugging level on the CDROM.  This will dump the commands
via syslog and we can see if they are intact.

Verify that the program does work with the Adaptec.  If it does
you have found a bug.

--
Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509181107.HAA14449>