Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 1998 09:21:41 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        bm@malepartus.de
Cc:        scsi@FreeBSD.ORG
Subject:   Re: CAM problems with CD-ROM
Message-ID:  <199808181521.JAA03022@panzer.plutotech.com>
In-Reply-To: <199808180850.KAA09285@Reineke.malepartus.de> from Burkard Meyendriesch at "Aug 18, 98 10:50:09 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
>     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 <Adaptec aic7880 Ultra SCSI adapter> 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



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