Bug 38101

Summary: ATAPI-CDROM uncontrollable when no disc in it
Product: Base System Reporter: Chia-Hsing Yu <davidyu>
Component: kernAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.6-PRERELEASE   
Hardware: Any   
OS: Any   

Description Chia-Hsing Yu 2002-05-15 09:00:02 UTC
ATAPI-CDROM uncontrollable when no disc in it. For example, I can't eject
the empty tray by ioctl(CDIOCEJECT) or close the tray by ioctl(CDIOCCLOSE).
When there is a disc in it, everything is okay.

How-To-Repeat: Remove the disc in the CDROM and run `cdcontrol eject' or `cdcontrol close'
Comment 1 sos 2002-05-15 09:49:13 UTC
It seems Chia-Hsing Yu wrote:
> ATAPI-CDROM uncontrollable when no disc in it. For example, I can't eject
> the empty tray by ioctl(CDIOCEJECT) or close the tray by ioctl(CDIOCCLOSE).
> When there is a disc in it, everything is okay.
> >How-To-Repeat:
> Remove the disc in the CDROM and run `cdcontrol eject' or `cdcontrol close'
> >Fix:
> >Release-Note:
> >Audit-Trail:
> >Unformatted:

Not to offend your drive, but this sounds alot like real crappy firmware...

-Søren
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2002-08-20 19:56:11 UTC
State Changed
From-To: open->feedback

To know which firmware you have, please  
send the file /var/run/dmesg.boot to 
freebsd-gnats-submit@FreeBSD.org 
with the subject of this mail intact. 



Comment 3 Johan Karlsson freebsd_committer freebsd_triage 2002-08-20 19:56:11 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Over to ATA maintainer.
Comment 4 Chia-Hsing Yu 2002-08-21 00:07:55 UTC
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.6-RELEASE-p1 #0: Thu Jul 11 13:29:48 CST 2002
    root@ob.m6.ntu.edu.tw:/usr/obj/usr/src/sys/DAVIDYU
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (334.09-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x650  Stepping = 0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 469696512 (458688K bytes)
avail memory = 454017024 (443376K bytes)
Preloaded elf kernel "kernel" at 0xc02d7000.
Preloaded elf module "if_fxp.ko" at 0xc02d709c.
Preloaded elf module "miibus.ko" at 0xc02d713c.
Preloaded elf module "snd_ess.ko" at 0xc02d71dc.
Preloaded elf module "snd_sbc.ko" at 0xc02d727c.
Preloaded elf module "snd_pcm.ko" at 0xc02d731c.
Pentium Pro MTRR support enabled
Using $PIR table, 6 entries at 0xc00fded0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <SiS 6326 SVGA controller> at 0.0 irq 11
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 12
chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at device 7.3 on pci0
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xe400-0xe41f mem 0xdf400000-0xdf4fffff,0xdf500000-0xdf500fff irq 9 at device 9.0 on pci0
fxp0: Ethernet address 00:90:27:13:a1:72
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
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
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: IEEE1284 device found /NIBBLE
Probing for PnP devices on ppbus0:
ppbus0: <Hewlett-Packard HP LaserJet 6L/0101.01> PRINTER HP ENHANCED PCL5,PJL
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
sbc0: <ESS ES1869> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on isa0
pcm0: <ESS 18xx DSP> on sbc0
ata4: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq 10 on isa0
IP Filter: v3.4.27 initialized.  Default = pass all, Logging = disabled
ad0: 8063MB <IBM-DTTA-350840> [16383/16/63] at ata0-master UDMA33
ad1: 57259MB <MAXTOR 6L060L3> [116336/16/63] at ata0-slave UDMA33
Mounting root from ufs:/dev/ad0s1a
Comment 5 Søren Schmidt freebsd_committer freebsd_triage 2002-09-12 15:09:06 UTC
State Changed
From-To: feedback->closed

The behavior is firmware depended, nothing I can do about it, sorry.