Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 1998 14:39:30 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        shafeeq@cyrus.watson.org
Cc:        freebsd-scsi@FreeBSD.ORG, gibbs@pluto.plutotech.com
Subject:   Re: disappearing cdrom w/ Bt948+CAM
Message-ID:  <199807102039.OAA15605@panzer.plutotech.com>
In-Reply-To: <Pine.BSF.3.96.980710153740.432C-100000@fledge.watson.org> from Shafeeq Sinnamohideen at "Jul 10, 98 04:22:49 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Shafeeq Sinnamohideen wrote...
> 
> Sorry to take so long to get back to this, but after recovering from a
> couple of disk failures, I can at least say that the sa driver works as
> far as I can see ;)
> 
> Here is the probe output again. Curiously, the output is the exact same
> when that drive is not connected.

	Actually, that's not surprising at all.  The probe code probes
every target on the bus, so you'll get something like that back no matter
whether you have the CDROM plugged in or not.

> Jul  8 20:37:19 luthien /kernel: got an error back while probing the CDROM
> Jul  8 20:37:19 luthien /kernel: (probe6:bt0:0:6:0): INQUIRY. CDB: 12 0 0 0 24 0 
> Jul  8 20:37:19 luthien /kernel: (probe6:bt0:0:6:0): error code 0

	Do you get the same error message back whether or not you have the
CDROM plugged in?  If so, can you change the code snippet to:

		/* XXX this is new XXX */
		if ((done_ccb->ccb_h.target_id == 6)
		 && (done_ccb->ccb_h.target_lun == 0)) {
			printf("got an error back while probing the CDROM\n");
			scsi_sense_print(&done_ccb->csio);
			printf("CAM status is %#x\n", done_ccb->ccb_h.status);
		}
		/* XXX end of new code */

	The error message above indicates that the device itself didn't
send back any error messages.  The only way we could be getting to the
snippet of code above is if done_ccb->ccb_h.status & CAM_STATUS_MASK isn't
CAM_REQ_CMP.  I assumed that the inquiry was failing due to some SCSI error
that came back, but if that error message gets printed out when the device
is plugged in, that must not be the case.  So, I want to know what the
status is that's causing the inquiry command to fail.


Ken
-- 
Kenneth Merry
ken@plutotech.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



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