From nobody@FreeBSD.org  Fri Aug  5 01:48:20 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1FC5E16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Aug 2005 01:48:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CEB4243D48
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Aug 2005 01:48:19 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j751mJc8074439
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Aug 2005 01:48:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j751mJjq074438;
	Fri, 5 Aug 2005 01:48:19 GMT
	(envelope-from nobody)
Message-Id: <200508050148.j751mJjq074438@www.freebsd.org>
Date: Fri, 5 Aug 2005 01:48:19 GMT
From: Chris Jones <soc-cjones@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: atapicam prevents boot with RELENG_5_4
X-Send-Pr-Version: www-2.3

>Number:         84567
>Category:       kern
>Synopsis:       atapicam prevents boot with RELENG_5_4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thomas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 05 01:50:04 GMT 2005
>Closed-Date:    Sun Aug 07 20:38:15 GMT 2005
>Last-Modified:  Sun Aug  7 20:40:19 GMT 2005
>Originator:     Chris Jones
>Release:        RELENG_5_4
>Organization:
>Environment:
FreeBSD ishtar 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #9: Thu Aug  4 12:35:11 MDT 2005     root@:/usr/obj/usr/src/sys/ISHTAR  i386
>Description:
Machine refuses to boot when 'atapicam' is defined in kernel, except when booted in safe mode.  The 'ISHTAR' kernel has DDB, KDB, and atapicam defined in addition to the 'GENERIC' kernel.

This may be a duplicate of PR i386/78929.

Console log:

> Timecounter "TSC" frequency 1199432644 Hz quality 800
> Timecounters tick every 10.000 msec
> ata0-slave: FAILURE - ATAPI_IDENTIFY timed out
> ata0-slave: FAILURE - ATAPI_IDENTIFY timed out
> kernel trap 12 with interrupts disabled

> Fatal trap 12: page fault while in kernel mode
> fault virtual address = 0x6c
> fault code = supervisor read, page not present
> instruction pointer = 0x8:0xc0638091
> stack pointer = 0x10:0xcff84c40
> frame pointer = 0x10:0xcff84c44
> code segment = base 0x0, limit 0xfffff, type 0x1b
>                DPL 0, pres 1, def32 1, gran 1
> processor eflags = resume, IOPL = 0
> current process = 5 (thread taskq)
> [thread pid 5 tid 100012 ]
> Stopped at turnstile_setowner+0xd: movl 0x6c(%ecx),%eax
> db> where
> Tracing pid 5 tid 100012 td 0xc1741300
> turnstile_setowner(c1733a40,0) at turnstile_setowner+0xd
> turnstile_wait(c1733a40,c08d2bc0,0) at turnstile_wait+0xb7
> _mtx_lock_sleep(c08d2bc0,c1741300,0,0,0) at _mtx_lock_sleep+0xad
> get_softc(c1738c00,0,cff84cd4,c04b89b6,c1738c0) at get_softc+0x36
> atapi_cam_reinit_bus(c1738c00) at atapi_cam_reinit_bus+0xc
> ata_reinit(c1738c00) at ata_reinit+0x326
> ata_completed(c192c000,1) at ata_completed+0x18
> taskqueue_run(c181ce40,c177154c,c06373a0,cff84d34,c06056a0) at taskqueue_run+0xb3
> taskqueue_thread_loop(c08f1ce8,cff84d48) at taskqueue_thread_loop+0x42
> fork_exit(c06373a0,c08f1ce8,cff84d48) at fork_exit+0x74
> fork_trampoline() at fork_trampoline+0x8
> --- trap 0x1, eip = 0, esp = 0xcff84d7c, ebp = 0 ---

Dmesg from successful boot in safe mode:

Copyright (c) 1992-2005 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 5.4-RELEASE-p6 #9: Thu Aug  4 12:35:11 MDT 2005
    root@:/usr/obj/usr/src/sys/ISHTAR
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Duron(tm) processor (1199.43-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x671  Stepping = 1
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 402587648 (383 MB)
avail memory = 384270336 (366 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
$PIR: BIOS IRQ 11 for 0.7.INTC does not match link 0x3 irq 5
$PIR: BIOS IRQ 9 for 0.7.INTD does not match link 0x5 irq 11
pci0: <PCI bus> on pcib0
agp0: <VIA 82C8363 (Apollo KT133x/KM133) host to PCI bridge> mem 0xdf000000-0xdf7fffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
$PIR: ROUTE_INTERRUPT failed.
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686B UDMA100 controller> port 0xa000-0xa00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
atapci0: Correcting VIA config for southbridge data corruption bug
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xa400-0xa41f irq 11 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xa800-0xa81f irq 11 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: <multimedia, audio> at device 7.5 (no driver attached)
atapci1: <SiI 3112 SATA150 controller> port 0xcc00-0xcc0f,0xc800-0xc803,0xc400-0xc407,0xc000-0xc003,0xbc00-0xbc07 mem 0xdf800000-0xdf8001ff irq 10 at device 8.0 on pci0
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1
pci0: <multimedia, video> at device 9.0 (no driver attached)
atapci2: <SiI 3112 SATA150 controller> port 0xe000-0xe00f,0xdc00-0xdc03,0xd800-0xd807,0xd400-0xd403,0xd000-0xd007 mem 0xdf801000-0xdf8011ff irq 11 at device 10.0 on pci0
ata4: channel #0 on atapci2
ata5: channel #1 on atapci2
vr0: <VIA VT3043 Rhine I 10/100BaseTX> port 0xe400-0xe47f mem 0xdf802000-0xdf80207f irq 10 at device 12.0 on pci0
miibus0: <MII bus> on vr0
amphy0: <Am79C873 10/100 media interface> on miibus0
amphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:80:c8:e1:84:e2
dc0: <ADMtek AN985 10/100BaseTX> port 0xe800-0xe8ff mem 0xdf803000-0xdf8033ff irq 5 at device 13.0 on pci0
miibus1: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:50:bf:af:8f:ef
dc0: if_start running deferred for Giant
orm0: <ISA Option ROMs> at iomem 0xd1000-0xd57ff,0xcc000-0xd07ff,0xc0000-0xcbfff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
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
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
Timecounter "TSC" frequency 1199433292 Hz quality 800
Timecounters tick every 10.000 msec
acd0: DVDR <BENQ DVD DD DW1620/B7C9> at ata0-master PIO4
ad4: 38146MB <ST340014AS/8.05> [77504/16/63] at ata2-master SATA150
ad6: 114473MB <ST3120026AS/3.05> [232581/16/63] at ata3-master SATA150
ad8: 114473MB <ST3120026AS/3.05> [232581/16/63] at ata4-master SATA150
cd0 at ata0 bus 0 target 0 lun 0
cd0: <BENQ DVD DD DW1620 B7C9> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad4s1a
Accounting enabled


Kernel config diff:

-bash-3.00$ diff -c GENERIC ISHTAR 
*** GENERIC     Tue May  3 18:56:41 2005
--- ISHTAR      Thu Aug  4 19:41:45 2005
***************
*** 274,276 ****
--- 274,284 ----
  device                firewire        # FireWire bus code
  device                sbp             # SCSI over FireWire (Requires scbus and da)
  device                fwe             # Ethernet over FireWire (non-standard!)
+ 
+ # Local
+ device               atapicam        # ATAPI/CAM
+ options         DDB
+ options         KDB
+ options         BREAK_TO_DEBUGGER
+ #options                INVARIANTS
+ makeoptions     DEBUG=-g


>How-To-Repeat:
Occurs every time I try booting with atapicam defined as a device in the kernel; does not occur without atapicam defined or when using safe mode (option 3 at the boot screen).
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->thomas 
Responsible-Changed-By: thomas 
Responsible-Changed-When: Fri Aug 5 09:09:17 GMT 2005 
Responsible-Changed-Why:  
Over to atapicam maintainer. 

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

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Chris Jones <soc-cjones@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/84567: atapicam prevents boot with RELENG_5_4
Date: Fri, 5 Aug 2005 11:10:45 +0200

 * Chris Jones, 2005-08-05 :
 
 > >How-To-Repeat:
 > Occurs every time I try booting with atapicam defined as a device in the kernel; does not occur without atapicam defined or when using safe mode (option 3 at the boot screen).
 
 Have you tried a kernel with atapicam enabled but acd disabled?
 
 Thomas.
 

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Chris Jones <soc-cjones@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/84567: atapicam prevents boot with RELENG_5_4
Date: Fri, 5 Aug 2005 14:14:22 +0200

 --eAbsdosE1cNLO4uF
 Content-Type: multipart/mixed; boundary="J/dobhs11T7y2rNN"
 Content-Disposition: inline
 
 
 --J/dobhs11T7y2rNN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 * Chris Jones, 2005-08-05 :
 
 > Machine refuses to boot when 'atapicam' is defined in kernel, except when booted in safe mode.  The 'ISHTAR' kernel has DDB, KDB, and atapicam defined in addition to the 'GENERIC' kernel.
 
 Please try the attached patch against RELENG_5.
 
 Thanks,
 Thomas.
 
 
 --J/dobhs11T7y2rNN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=d
 Content-Transfer-Encoding: quoted-printable
 
 Index: atapi-cam.c
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/ncvs/src/sys/dev/ata/atapi-cam.c,v
 retrieving revision 1.35
 diff -u -r1.35 atapi-cam.c
 --- atapi-cam.c	17 Jun 2004 07:29:56 -0000	1.35
 +++ atapi-cam.c	5 Aug 2005 09:18:09 -0000
 @@ -185,18 +185,22 @@
 =20
  void
  atapi_cam_reinit_bus(struct ata_channel *ata_ch) {
 -    struct atapi_xpt_softc *scp =3D get_softc(ata_ch);
 +    struct atapi_xpt_softc *scp;
 +
 =20
      /*
 -     * scp might be null if the bus is being reinitialised during
 -     * the boot-up sequence, before the ATAPI bus is registered.
 +     * We might not be properly set up yet if the bus is being
 +     * reinitialised during the boot-up sequence, before the ATAPI
 +     * bus is registered.
       */
 =20
 -    if (scp !=3D NULL) {
 -	mtx_lock(&Giant);
 -	reinit_bus(scp, RESET);
 -	mtx_unlock(&Giant);
 -    }
 +    if ((mtx_initialized(&atapicam_softc_mtx) =3D=3D 0)
 +        || ((scp =3D get_softc(ata_ch)) =3D=3D NULL))
 +	return;
 +
 +    mtx_lock(&Giant);
 +    reinit_bus(scp, RESET);
 +    mtx_unlock(&Giant);
  }
 =20
  static void
 
 --J/dobhs11T7y2rNN--
 
 --eAbsdosE1cNLO4uF
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFC81gcAE1UuDk9JGkRAuM5AJoCL314cakO0mfkir6Qsv7DFwV5xQCfTrWh
 M05ydUo74CIj73kyfp2nZks=
 =1t4l
 -----END PGP SIGNATURE-----
 
 --eAbsdosE1cNLO4uF--

From: Chris Jones <cdjones@ualberta.ca>
To: Thomas Quinot <thomas@FreeBSD.ORG>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/84567: atapicam prevents boot with RELENG_5_4
Date: Sat, 6 Aug 2005 16:44:25 -0600 (MDT)

 On Fri, 5 Aug 2005, Thomas Quinot wrote:
 > * Chris Jones, 2005-08-05 :
 >
 >>> How-To-Repeat:
 >> Occurs every time I try booting with atapicam defined as a device in the kernel; does not occur without atapicam defined or when using safe mode (option 3 at the boot screen).
 >
 > Have you tried a kernel with atapicam enabled but acd disabled?
 
 There was no 'acd' defined in the kernel.

From: Chris Jones <cdjones@ualberta.ca>
To: Thomas Quinot <thomas@FreeBSD.ORG>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/84567: atapicam prevents boot with RELENG_5_4
Date: Sat, 6 Aug 2005 17:37:28 -0600 (MDT)

 On Fri, 5 Aug 2005, Thomas Quinot wrote:
 > Please try the attached patch against RELENG_5.
 
 Comes up ok, dmesg is as follows:
 
 Copyright (c) 1992-2005 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 5.4-RELEASE-p6 #12: Sat Aug  6 16:59:40 MDT 2005
      root@ishtar:/usr/obj/usr/src/sys/ISHTAR
 MPTable: <OEM00000 PROD00000000>
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: AMD Duron(tm) processor (1199.43-MHz 686-class CPU)
    Origin = "AuthenticAMD"  Id = 0x671  Stepping = 1
 
 Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
 OV,PAT,PSE36,MMX,FXSR,SSE>
    AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
 real memory  = 402587648 (383 MB)
 avail memory = 384270336 (366 MB)
 ioapic0: Assuming intbase of 0
 ioapic0 <Version 1.1> irqs 0-23 on motherboard
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 cpu0 on motherboard
 pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
 pci0: <PCI bus> on pcib0
 agp0: <VIA 82C8363 (Apollo KT133x/KM133) host to PCI bridge> mem 
 0xdf000000-0xdf
 7fffff at device 0.0 on pci0
 pcib1: <MPTable PCI-PCI bridge> at device 1.0 on pci0
 pci1: <PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
 isab0: <PCI-ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <VIA 82C686B UDMA100 controller> port 
 0xa000-0xa00f,0x376,0x170-0x177,0
 x3f6,0x1f0-0x1f7 at device 7.1 on pci0
 atapci0: Correcting VIA config for southbridge data corruption bug
 ata0: channel #0 on atapci0
 ata1: channel #1 on atapci0
 uhci0: <VIA 83C572 USB controller> port 0xa400-0xa41f irq 9 at device 7.2 
 on pci
 0
 usb0: <VIA 83C572 USB controller> on uhci0
 usb0: USB revision 1.0
 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1: <VIA 83C572 USB controller> port 0xa800-0xa81f irq 9 at device 7.3 
 on pci
 0
 usb1: <VIA 83C572 USB controller> on uhci1
 usb1: USB revision 1.0
 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 pci0: <multimedia, audio> at device 7.5 (no driver attached)
 atapci1: <SiI 3112 SATA150 controller> port 
 0xcc00-0xcc0f,0xc800-0xc803,0xc400-0
 uhub1: 2 ports with 2 removable, self powered
 pci0: <multimedia, audio> at device 7.5 (no driver attached)
 atapci1: <SiI 3112 SATA150 controller> port 
 0xcc00-0xcc0f,0xc800-0xc803,0xc400-0
 xc407,0xc000-0xc003,0xbc00-0xbc07 mem 0xdf800000-0xdf8001ff irq 10 at 
 device 8.0
   on pci0
 ata2: channel #0 on atapci1
 ata3: channel #1 on atapci1
 pci0: <multimedia, video> at device 9.0 (no driver attached)
 atapci2: <SiI 3112 SATA150 controller> port 
 0xe000-0xe00f,0xdc00-0xdc03,0xd800-0
 xd807,0xd400-0xd403,0xd000-0xd007 mem 0xdf801000-0xdf8011ff irq 11 at 
 device 10.
 0 on pci0
 ata4: channel #0 on atapci2
 ata5: channel #1 on atapci2
 vr0: <VIA VT3043 Rhine I 10/100BaseTX> port 0xe400-0xe47f mem 
 0xdf802000-0xdf802
 07f irq 10 at device 12.0 on pci0
 miibus0: <MII bus> on vr0
 amphy0: <Am79C873 10/100 media interface> on miibus0
 amphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 vr0: Ethernet address: 00:80:c8:e1:84:e2
 dc0: <ADMtek AN985 10/100BaseTX> port 0xe800-0xe8ff mem 
 0xdf803000-0xdf8033ff ir
 q 5 at device 13.0 on pci0
 miibus1: <MII bus> on dc0
 ukphy0: <Generic IEEE 802.3u media interface> on miibus1
 ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 dc0: Ethernet address: 00:50:bf:af:8f:ef
 dc0: if_start running deferred for Giant
 orm0: <ISA Option ROMs> at iomem 
 0xd1000-0xd57ff,0xcc000-0xd07ff,0xc0000-0xcbfff
   on isa0
 pmtimer0 on isa0
 atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: model IntelliMouse, device ID 3
 fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
 ppbus0: <Parallel port bus> on ppc0
 plip0: <PLIP network interface> on ppbus0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 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
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 unknown: <PNP0303> can't assign resources (port)
 unknown: <PNP0f13> can't assign resources (irq)
 unknown: <PNP0700> can't assign resources (port)
 unknown: <PNP0501> can't assign resources (port)
 unknown: <PNP0501> can't assign resources (port)
 unknown: <PNP0400> can't assign resources (port)
 Timecounter "TSC" frequency 1199433531 Hz quality 800
 Timecounters tick every 10.000 msec
 ata0-slave: FAILURE - ATAPI_IDENTIFY timed out
 ata0-slave: FAILURE - ATAPI_IDENTIFY timed out
 ata0-slave: FAILURE - ATAPI_IDENTIFY timed out
 acd0: DVDR <BENQ DVD DD DW1620/B7C9> at ata0-master UDMA33
 ad4: 38146MB <ST340014AS/8.05> [77504/16/63] at ata2-master SATA150
 ad6: 114473MB <ST3120026AS/3.05> [232581/16/63] at ata3-master SATA150
 ad8: 114473MB <ST3120026AS/3.05> [232581/16/63] at ata4-master SATA150
 cd0 at ata0 bus 0 target 0 lun 0
 cd0: <BENQ DVD DD DW1620 B7C9> Removable CD-ROM SCSI-0 device
 cd0: 33.000MB/s transfers
 cd0: Attempt to query device size failed: NOT READY, Medium not present
 Mounting root from ufs:/dev/ad4s1a
 Accounting enabled
State-Changed-From-To: open->closed 
State-Changed-By: thomas 
State-Changed-When: Sun Aug 7 20:35:54 GMT 2005 
State-Changed-Why:  
Resolved in atapi-cam.c rev. 1.35.2.1. 

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

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: Chris Jones <cdjones@ualberta.ca>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/84567: atapicam prevents boot with RELENG_5_4
Date: Sun, 7 Aug 2005 22:34:31 +0200

 * Chris Jones, 2005-08-07 :
 
 > >Please try the attached patch against RELENG_5.
 > Comes up ok, dmesg is as follows:
 
 Thanks, the patch has been committed to RELENG_5.
 
 Thomas.
 
>Unformatted:
