From nobody@FreeBSD.org  Thu Aug  2 03:14:40 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 6548737B40A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Aug 2001 03:14:40 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f72AEeL85419;
	Thu, 2 Aug 2001 03:14:40 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108021014.f72AEeL85419@freefall.freebsd.org>
Date: Thu, 2 Aug 2001 03:14:40 -0700 (PDT)
From: Fred Nicolls <nicolls@dip.ee.uct.ac.za>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ata with HP CD-RW hangs at boot (dual CPU)
X-Send-Pr-Version: www-1.0

>Number:         29383
>Category:       kern
>Synopsis:       ata with HP CD-RW hangs at boot (dual CPU)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 02 03:20:01 PDT 2001
>Closed-Date:    Mon May 06 11:36:22 PDT 2002
>Last-Modified:  Mon May 06 11:36:22 PDT 2002
>Originator:     Fred Nicolls
>Release:        4.3-STABLE
>Organization:
University of Cape Town
>Environment:
FreeBSD tek2.ee.uct.ac.za 4.3-STABLE FreeBSD 4.3-STABLE #1: Sat Jul 28 10:44:56 GMT 2001     nicolls@tek2.ee.uct.ac.za:/usr/src/sys/compile/SMP  i386
>Description:
ASUS CUV4X-D (dual 1000GHz, 1GB RAM) with an IBM deskstar 40GB 
disk as master on IDE0 fails to boot when HP 9500 CD-RW is
attached.

Configuration 1:  HP CD-RW as IDE0 slave
boot -v
...
ata0-master: success setting UDMA5 on VIA chip
ad0:  (etc)
...
ata0-slave: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata0-slave: success setting PIO4 on generic chip
(null): REQUEST_SENSE command timeout - resetting
ata0: resetting devices ..
 	(then hang)

Configuration 2: HP CD-RW as IDE1 slave
boot -v
...
ata0-master: success setting UDMA5 on VIA chip
ad0:  (etc)
...
ata1-slave: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata1-slave: success setting PIO4 on generic chip
	(then hang)

Configuration 3:  HP CD-RW as IDE1 master
boot -v
...
ata0-master: success setting UDMA5 on VIA chip
ad0:  (etc)
...
ata1-master: piomode=4 dmamode=2 udmamode=2 dmaflag=1
ata1-master: success setting PIO4 on generic chip
	(then hang)

Other information:
- The same system boots FreeBSD 3.4-RELEASE okay using the
  generic kernel.
- It does not boot under 4.3-RELEASE using the generic kernel.
- I've tested the CD-RW on an ASUS P2B-DS (also dual) using 
  the same 4.3-STABLE kernel that fails on the CUV4X-D, and 
  it works fine.
- I managed to boot 4.3-RELEASE on a Gigabyte 6VXDC7 (also dual)
  with the CD-RW drive attached.

Perhaps a problem with the VIA (694XDP) chipset?
>How-To-Repeat:
Try boot FreeBSD 4.X on the hardware configuration described.
>Fix:
Disconnect the CD-RW drive.
>Release-Note:
>Audit-Trail:

From: Fred Nicolls <nicolls@dip5.ee.uct.ac.za>
To: freebsd-gnats-submit@FreeBSD.org, nicolls@dip.ee.uct.ac.za
Cc:  
Subject: Re: kern/29383: ata with HP CD-RW hangs at boot (dual CPU)
Date: Mon, 06 Aug 2001 11:27:47 +0200

 As it turns out, I'm not sure this is so much an issue with FreeBSD as
 it
 may be a motherboard issue.  Nonetheless, I'm pretty sure the boot
 process 
 shouldn't hang.
 
 After a lot of fiddling, it was discovered that if one explicitly marks
 the
 disk as CDROM in the bios configuration (instead of AUTO), then the boot
 proceeds normally without hanging.
 
 While trying to solve this problem, I noticed that similar problems had
 been
 reported a couple of times on the mailing lists, sometimes with other 
 motherboards and/or other CD writers.  No solutions were offered,
 though.
 Maybe this will work in those cases too?
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon May 6 11:35:36 PDT 2002 
State-Changed-Why:  
This is belived to be fixed in 4.6 

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