From owner-freebsd-scsi Tue Aug 18 08:23:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA04254 for freebsd-scsi-outgoing; Tue, 18 Aug 1998 08:23:40 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA04218 for ; Tue, 18 Aug 1998 08:23:33 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.8.8/8.8.5) id JAA03022; Tue, 18 Aug 1998 09:21:41 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199808181521.JAA03022@panzer.plutotech.com> Subject: Re: CAM problems with CD-ROM In-Reply-To: <199808180850.KAA09285@Reineke.malepartus.de> from Burkard Meyendriesch at "Aug 18, 98 10:50:09 am" To: bm@malepartus.de Date: Tue, 18 Aug 1998 09:21:41 -0600 (MDT) Cc: scsi@FreeBSD.ORG 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 Burkard Meyendriesch wrote... > > After installing "2.2CAM-19980716-SNAP.diffs.gz" on my -stable system > (2.2_799) I have problems using my CD ROM drive: > > Aug 12 22:03:15 Reineke /kernel:\ > FreeBSD 2.2.6-STABLE #0: Wed Aug 12 21:55:28 MEST 1998 > Aug 12 22:03:15 Reineke /kernel:\ > bm@Reineke.malepartus.de:/usr/src/sys/compile/REINEKE > Aug 12 22:03:15 Reineke /kernel:\ > CPU: AMD-K6tm w/ multimedia extensions (232.53-MHz 586-class CPU) > Aug 12 22:03:15 Reineke /kernel:\ > Origin = "AuthenticAMD" Id = 0x562 Stepping=2 > Aug 12 22:03:15 Reineke /kernel:\ > Features=0x8001bf > Aug 12 22:03:15 Reineke /kernel:\ > real memory = 134217728 (131072K bytes) > Aug 12 22:03:15 Reineke /kernel:\ > avail memory = 129146880 (126120K bytes) > [...] > Aug 12 22:03:15 Reineke /kernel:\ > ahc0 rev 0 int a irq 11 on > pci0:13:0 > Aug 12 22:03:15 Reineke /kernel:\ > ahc0: aic7880 Wide Channel A, SCS > Aug 12 22:03:15 Reineke /kernel:\ > I Id=7, 16/255 SCBs > > > After a couple of hours of operation the drive disappears from the mount > table with the following error message: > > Aug 17 17:28:32 Reineke /kernel: (cd0:ahc0:0:6:0): lost device > Aug 17 17:28:32 Reineke /kernel: cddone: got error 0x6 back > > What's going wrong here? What kind of CDROM drive do you have? Can you send the full dmesg output. (not from /var/log/messages, but 'dmesg' output) The reason your device is going away is that the drive isn't responding to selections. The thing to do in that case is: - unmount the CD - camcontrol -r 0 or camcontrol -r 0:n:0, where 'n' is the target id of your CDROM drive When you unmount the CD, you should get a message that says "removing device entry". If not, that means that someone still has the device open. You may have to reboot to get it back. (I've seen bugs in the system that mean that a device is held open even after it has been unmounted. I've also seen situations where you can't unmount the drive.) The rescan may or may not bring your drive back. It depends on how bad it's hung. Justin and I have discussed adding a selection retry count, but we haven't done it yet. There's no guarantee that would fix your problem, in any case. It all depends on how "gone" your drive is. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message