Bug 44197

Summary: ATA CDROM's
Product: Base System Reporter: Abc Xyz <abc>
Component: kernAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-RELEASE   
Hardware: Any   
OS: Any   

Description Abc Xyz 2002-10-18 07:20:01 UTC
ATA CDROM reads crash machine so it needs hard-reset.

Fix: 

dunno.  i thought this was supposed to be fixed for 4.7.
            i haven't been able to use my CD-RW with FBSD for over a
            year now - this is not good.
How-To-Repeat: copy a large file (100MB or so) off a ATA CD-RW.

FreeBSD 4.7-RELEASE #0: Wed Oct 16 04:28:20 AKDT 2002
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 99869677 Hz
CPU: AMD-K5(tm) Processor (99.87-MHz 586-class CPU)
Origin = "AuthenticAMD"  Id = 0x514  Stepping = 4
Features=0x21bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE>
AMD Features=0x0
real memory  = 100663296 (98304K bytes)
avail memory = 94998528 (92772K bytes)
Preloaded elf kernel "kernel" at 0xc02e8000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc02e809c.
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Promise ATA100 controller> port 0xef00-0xef3f,0xefe0-0xefe3,0xefa8-0xefaf,0xefe4-0xefe7,0xeff0-0xeff7 mem 0xebfc0000-0xebfdffff irq 11 at device 4.0 on pci0
ata2: at 0xeff0 on atapci0
ata3: at 0xefa8 on atapci0
pci0: <S3 ViRGE DX/GX graphics accelerator> at 6.0 irq 0
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff on isa0
sc0: <System console> on isa0
sc0: VGA <9 virtual consoles, flags=0x200>
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ed0 at port 0x340-0x35f irq 9 on isa0
ed0: address 00:00:1b:35:06:76, type NE2000 (16 bit) 
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0: <Hewlett-Packard HP LaserJet 1200> PRINTER PJL,MLC,PCL,PCLXL,POSTSCRIPT
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
sbc0: <Creative ViBRA16C> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
pcm0: <SB16 DSP 4.13> on sbc0
ad4: DMA limited to UDMA33, non-ATA66 cable or device
ad4: 38166MB <WDC WD400AB-22CDB0> [77545/16/63] at ata2-master UDMA33
acd0: CD-RW <CREATIVE CD-RW RW8435E> at ata2-slave PIO4
Mounting root from ufs:/dev/ad4a
WARNING: / was not properly dismounted

Oct 17 19:17:34 en26 /kernel: acd0: READ_BIG command timeout - resetting
Oct 17 19:17:34 en26 /kernel: ata2: resetting devices .. ad4: DMA limited to UDMA33, non-ATA66 cable or device
Oct 17 19:17:34 en26 /kernel: acd0: timeout waiting for cmd=ef s=08 e=00
Oct 17 19:17:34 en26 /kernel: done
Comment 1 neologism 2002-10-24 09:16:59 UTC
what do you mean by "crash machine"??
Comment 2 Abc Xyz 2002-10-24 10:12:09 UTC
> what do you mean by "crash machine"??

i mean that you cannot do anything.  you cannot switch VT's,
you cannot type a keystroke, you cannot scroll a screen.
and i have left it like this for 20 minutes or so,
and nothing changes.  you must do a hardware reset/reboot.

i was able to copy etc.tgz off the cdrom, but not abc.tgz.

-r--r--r--   1 root  wheel  119968396 Oct 21 20:05 abc.tgz
-r--r--r--   1 root  wheel    2891914 Oct 21 20:00 etc.tgz

Oct 24 00:37:59 en26 /kernel: acd0: READ_BIG command timeout - resetting
Oct 24 00:37:59 en26 /kernel: ata3: resetting devices .. acd0: timeout sending command=a1 s=80 e=00
Oct 24 00:37:59 en26 /kernel: acd0: ATAPI identify failed
Oct 24 00:37:59 en26 /kernel: acd0: timeout sending command=ef s=80 e=00
Oct 24 00:37:59 en26 /kernel: done
Oct 24 00:37:59 en26 /kernel: acd0: timeout sending command=a0 s=80 e=00
Oct 24 00:37:59 en26 /kernel: acd0: failure to send ATAPI packet command
Oct 24 00:37:59 en26 /kernel: acd0: failure to execute ATAPI packet command
Comment 3 Johan Karlsson freebsd_committer freebsd_triage 2002-10-25 09:48:12 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Over to ATA maintainer.
Comment 4 gbwtfo 2002-10-25 17:14:59 UTC
FWIW, I too have seen this problem off and on in the last six months or 
so.  I am currently running 4.7-stable on a kx7-333r mobo with a plextor 
drive and recently added 256MB of memory.  I built a debug kernel and 
ran it to try and get more information, but the problem has mysteriously 
vanished.  The only time I noticed it was when I was ripping CDs with 
grip/dagrab.  My workaround was to use a plain old (slow) CDROM drive to 
do the ripping.  A friend of mine had the same problem, different mobo, 
but same CDRW make.

Occassionaly, the system would come back after a few minutes of being 
locked up, but usually it required a hard reset.

acd0: CDROM <IDE/ATAPI CD-ROM 36X> at ata0-master UDMA33
acd1: CD-RW <PLEXTOR CD-R PX-W4012A> at ata1-master UDMA33

Greg
Comment 5 Søren Schmidt freebsd_committer freebsd_triage 2003-04-28 19:25:01 UTC
State Changed
From-To: open->closed

This is belived to be fixed.