Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 1998 09:04:25 +0200
From:      Burkard Meyendriesch <bm@malepartus.de>
To:        "Kenneth D. Merry" <ken@plutotech.com>
Cc:        bm@malepartus.de, scsi@FreeBSD.ORG
Subject:   Re: CAM problems with CD-ROM 
Message-ID:  <199808190704.JAA01854@Reineke.malepartus.de>
In-Reply-To: Message from "Kenneth D. Merry" <ken@plutotech.com>  of "Tue, 18 Aug 1998 09:21:41 MDT." <199808181521.JAA03022@panzer.plutotech.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
1998-08-18 09:21:41 MDT
"Kenneth D. Merry" <ken@plutotech.com> 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<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
>
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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
    real memory  = 134217728 (131072K bytes)
    avail memory = 129146880 (126120K bytes)
    Probing for devices on PCI bus 0:
    chip0 <Intel 82439> rev 3 on pci0:0:0
    chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
    chip2 <Intel 82371SB IDE interface> 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 <VGA-compatible display device> rev 84 int a irq 10 on pci0:11:0
    ahc0 <Adaptec aic7880 Ultra SCSI adapter> 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: <SoundBlaster 16 4.13>
    sbxvi0 at 0x0 drq 5 on isa
    sbxvi0: <SoundBlaster 16 4.13>
    sbmidi0 at 0x330 on isa
     <SoundBlaster MPU-401>
    ahc0:A:5: refuses synchronous negotiation. Using asynchronous transfers
    sa0 at ahc0 bus 0 target 2 lun 0
    sa0: <ARCHIVE Python 02635-XXX 596A> Removable Sequential Access SCSI2 device 
    sa0: 7.812MB/s transfers (7.812MHz, offset 15)
    sa1 at ahc0 bus 0 target 5 lun 0
    sa1: <TANDBERG TDC 3600 -07:> Removable Sequential Access SCSI1 device 
    sa1: 3.300MB/s transfers
    da0 at ahc0 bus 0 target 1 lun 0
    da0: <QUANTUM FIREBALL_TM2110S 300X> 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: <TOSHIBA CD-ROM XM-3401TA 3593> 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



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