From owner-freebsd-scsi Fri Jul 10 13:39:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA07814 for freebsd-scsi-outgoing; Fri, 10 Jul 1998 13:39:42 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from panzer.plutotech.com (ken@panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA07799 for ; Fri, 10 Jul 1998 13:39:40 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.8.8/8.8.5) id OAA15605; Fri, 10 Jul 1998 14:39:30 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199807102039.OAA15605@panzer.plutotech.com> Subject: Re: disappearing cdrom w/ Bt948+CAM In-Reply-To: from Shafeeq Sinnamohideen at "Jul 10, 98 04:22:49 pm" To: shafeeq@cyrus.watson.org Date: Fri, 10 Jul 1998 14:39:30 -0600 (MDT) Cc: freebsd-scsi@FreeBSD.ORG, gibbs@pluto.plutotech.com X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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