Bug 29383

Summary: ata with HP CD-RW hangs at boot (dual CPU)
Product: Base System Reporter: nicolls <nicolls>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description nicolls 2001-08-02 11:20:01 UTC
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?

Fix: 

Disconnect the CD-RW drive.
How-To-Repeat: Try boot FreeBSD 4.X on the hardware configuration described.
Comment 1 nicolls 2001-08-06 10:27:47 UTC
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?
Comment 2 Søren Schmidt freebsd_committer freebsd_triage 2002-05-06 19:35:36 UTC
State Changed
From-To: open->closed

This is belived to be fixed in 4.6