From davidyu@oio.m6.ntu.edu.tw  Wed May 15 00:54:41 2002
Return-Path: <davidyu@oio.m6.ntu.edu.tw>
Received: from oio.m6.ntu.edu.tw (oio.m6.ntu.edu.tw [140.112.247.130])
	by hub.freebsd.org (Postfix) with ESMTP id D5BB037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 May 2002 00:54:38 -0700 (PDT)
Received: from oio.m6.ntu.edu.tw (localhost [127.0.0.1])
	by oio.m6.ntu.edu.tw (8.12.3/8.12.3) with ESMTP id g4F7rqla000403
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 May 2002 15:53:52 +0800 (CST)
	(envelope-from davidyu@oio.m6.ntu.edu.tw)
Received: (from davidyu@localhost)
	by oio.m6.ntu.edu.tw (8.12.3/8.12.3/Submit) id g4F7rq7o000402;
	Wed, 15 May 2002 15:53:52 +0800 (CST)
Message-Id: <200205150753.g4F7rq7o000402@oio.m6.ntu.edu.tw>
Date: Wed, 15 May 2002 15:53:52 +0800 (CST)
From: Chia-Hsing Yu <davidyu@oio.m6.ntu.edu.tw>
Reply-To: Chia-Hsing Yu <b7506061@csie.ntu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ATAPI-CDROM uncontrollable when no disc in it
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38101
>Category:       kern
>Synopsis:       ATAPI-CDROM uncontrollable when no disc in it
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 15 01:00:02 PDT 2002
>Closed-Date:    Thu Sep 12 07:12:27 PDT 2002
>Last-Modified:  Thu Sep 12 07:12:27 PDT 2002
>Originator:     Chia-Hsing Yu
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD oio.m6.ntu.edu.tw 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #4: Wed May 15 15:21:42 CST 2002 root@oio.m6.ntu.edu.tw:/usr/obj/usr/src/sys/DAVIDYU i386
>Description:
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:

From: Sren Schmidt <sos@freebsd.dk>
To: Chia-Hsing Yu <b7506061@csie.ntu.edu.tw>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/38101: ATAPI-CDROM uncontrollable when no disc in it
Date: Wed, 15 May 2002 10:49:13 +0200 (CEST)

 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...
 
 -Sren
State-Changed-From-To: open->feedback 
State-Changed-By: johan 
State-Changed-When: Tue Aug 20 11:56:11 PDT 2002 
State-Changed-Why:  
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. 



Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Aug 20 11:56:11 PDT 2002 
Responsible-Changed-Why:  
Over to ATA maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38101 

From: Chia-Hsing Yu <davidyu@ob.m6.ntu.edu.tw>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/38101: ATAPI-CDROM uncontrollable when no disc in it
Date: Wed, 21 Aug 2002 07:07:55 +0800

 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
State-Changed-From-To: feedback->closed 
State-Changed-By: sos 
State-Changed-When: Thu Sep 12 07:09:06 PDT 2002 
State-Changed-Why:  
The behavior is firmware depended, nothing I can do about it, sorry. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38101 
>Unformatted:
