From owner-freebsd-scsi Wed Aug 19 00:05:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA02108 for freebsd-scsi-outgoing; Wed, 19 Aug 1998 00:05:12 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from limes.NIC.DTAG.DE (limes.NIC.DTAG.DE [194.25.1.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA02103 for ; Wed, 19 Aug 1998 00:05:10 -0700 (PDT) (envelope-from bm@Reineke.malepartus.de) Received: from kronos.NIC.DTAG.DE (kronos.NIC.DTAG.DE [194.25.1.92]) by limes.NIC.DTAG.DE (8.8.5/8.8.3) with ESMTP id JAA13549; Wed, 19 Aug 1998 09:03:25 +0200 (MET DST) Received: from kronos.NIC.DTAG.DE (kronos.NIC.DTAG.DE [194.25.1.92]) by limes.NIC.DTAG.DE (8.8.5/8.8.3) with ESMTP id JAA13549; Wed, 19 Aug 1998 09:03:25 +0200 (MET DST) Received: from Reineke.malepartus.de (reineke.malepartus.de [194.25.4.66]) by kronos.NIC.DTAG.DE (8.8.5/8.7.1) with ESMTP id JAA02703; Wed, 19 Aug 1998 09:04:27 +0200 (MET DST) Received: from Reineke.malepartus.de (localhost.Malepartus.de [127.0.0.1]) by Reineke.malepartus.de (8.8.8/8.8.8) with ESMTP id JAA01854; Wed, 19 Aug 1998 09:04:25 +0200 (MEST) (envelope-from bm@Reineke.malepartus.de) Message-Id: <199808190704.JAA01854@Reineke.malepartus.de> To: "Kenneth D. Merry" cc: bm@malepartus.de, scsi@FreeBSD.ORG Subject: Re: CAM problems with CD-ROM In-Reply-To: Message from "Kenneth D. Merry" of "Tue, 18 Aug 1998 09:21:41 MDT." <199808181521.JAA03022@panzer.plutotech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1851.903510264.1@Reineke.malepartus.de> Date: Wed, 19 Aug 1998 09:04:25 +0200 From: Burkard Meyendriesch Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 1998-08-18 09:21:41 MDT "Kenneth D. Merry" wrote: > > 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 > Here is my "dmesg" output: Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.6-STABLE #0: Wed Aug 12 21:55:28 MEST 1998 bm@Reineke.malepartus.de:/usr/src/sys/compile/REINEKE CPU: AMD-K6tm w/ multimedia extensions (232.53-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x562 Stepping=2 Features=0x8001bf real memory = 134217728 (131072K bytes) avail memory = 129146880 (126120K bytes) Probing for devices on PCI bus 0: chip0 rev 3 on pci0:0:0 chip1 rev 1 on pci0:7:0 chip2 rev 0 on pci0:7:1 vx0 <3COM 3C900 Etherlink XL PCI> rev 0 int a irq 12 on pci0:10:0 utp/aui/bnc[*utp*]: disable 'auto select' with DOS util! address 00:10:4b:44:b5:46 vga0 rev 84 int a irq 10 on pci0:11:0 ahc0 rev 0 int a irq 11 on pci0:13:0 ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2a0-0x2a7 flags 0x401 on isa sio1: type 16450 (multiport) sio2 at 0x2a8-0x2af flags 0x401 on isa sio2: type 16450 (multiport) sio3 at 0x2b0-0x2b7 flags 0x401 on isa sio3: type 16450 (multiport) sio4 at 0x2b8-0x2bf irq 3 flags 0x401 on isa sio4: type 16450 (multiport master) lpt0 at 0x3bc-0x3c3 irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in npx0 on motherboard npx0: INT 16 interface sb0 at 0x240 irq 5 drq 1 on isa sb0: sbxvi0 at 0x0 drq 5 on isa sbxvi0: sbmidi0 at 0x330 on isa ahc0:A:5: refuses synchronous negotiation. Using asynchronous transfers sa0 at ahc0 bus 0 target 2 lun 0 sa0: Removable Sequential Access SCSI2 device sa0: 7.812MB/s transfers (7.812MHz, offset 15) sa1 at ahc0 bus 0 target 5 lun 0 sa1: Removable Sequential Access SCSI1 device sa1: 3.300MB/s transfers da0 at ahc0 bus 0 target 1 lun 0 da0: Fixed Direct Access SCSI2 device da0: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled da0: 2014MB (4124736 512 byte sectors: 255H 63S/T 256C) changing root device to da0s1a cd0 at ahc0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI2 device cd0: 4.237MB/s transfers (4.237MHz, offset 15) cd0: cd present [62004 x 2048 byte records] vx0: promiscuous mode enabled (da0:ahc0:0:1:0): tagged openings now 15 Burkard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message