From nobody@FreeBSD.org  Tue Jan 22 13:12:57 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 11D5016A418
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Jan 2008 13:12:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E023213C4E7
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Jan 2008 13:12:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0MDBPdE044514
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Jan 2008 13:11:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m0MDBPGP044513;
	Tue, 22 Jan 2008 13:11:25 GMT
	(envelope-from nobody)
Message-Id: <200801221311.m0MDBPGP044513@www.freebsd.org>
Date: Tue, 22 Jan 2008 13:11:25 GMT
From: Burkhard Steding <burkhard.steding@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Initialization of disc controller fails
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         119894
>Category:       kern
>Synopsis:       [ata] Initialization of disc controller fails [regression]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 22 13:20:02 UTC 2008
>Closed-Date:    
>Last-Modified:  Mon May 05 00:58:48 UTC 2008
>Originator:     Burkhard Steding
>Release:        6.3-RELEASE
>Organization:
>Environment:
FreeBSD xxl.local 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I have a problem with the disc controller during booting. Sometimes it's
okay, but usually it fails. This problem is new with i386 6.3-RELEASE. I
never had problems with older releases.

Here is the output of dmesg when everything is fine (verbose boot):

..
atapci0: <Intel ICH5 SATA150 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x3
6,0xf000-0xf00f irq 18 at device 31.2 on pci0
atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0xf000
ata0: <ATA channel 0> on atapci0
atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0
atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6
ata0: reset tp1 mask=03 ostat0=51 ostat1=00
ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00
ata0: reset tp2 stat0=00 stat1=00 devices=0x4<ATAPI_MASTER>
ioapic0: routing intpin 14 (ISA IRQ 14) to vector 54
ata0: [MPSAFE]
ata1: <ATA channel 1> on atapci0
atapci0: Reserved 0x8 bytes for rid 0x18 type 4 at 0x170
atapci0: Reserved 0x1 bytes for rid 0x1c type 4 at 0x376
ata1: reset tp1 mask=03 ostat0=50 ostat1=00
ata1: stat0=0xd0 err=0x01 lsb=0x00 msb=0x00
ata1: stat0=0x50 err=0x01 lsb=0x00 msb=0x00
ata1: stat1=0x00 err=0x01 lsb=0x00 msb=0x00
ata1: reset tp2 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ioapic0: routing intpin 15 (ISA IRQ 15) to vector 55
ata1: [MPSAFE]

When it fails, I see lots of messages

..
ata1: stat0=0x80 err=0xff lsb=0xff msg=0xff
..

scrolling up very fast and finally:

ata1: reset tp2 stat0=80 stat1=80 devices=0x0

Later on the disk is not found and the kernel can't mount the root file
system.  The computer is a Shuttle XPC-G2 with FB61 mainboard and
Intel82865G + 82801EB chipset.
>How-To-Repeat:
The error occurs most of the time. After maybe half a dozen retries the
system usually comes up without problems.
>Fix:
>Release-Note:
>Audit-Trail:

From: Burkhard Steding <burkhard.steding@gmx.de>
To: bug-followup@FreeBSD.org, burkhard.steding@gmx.de
Cc:  
Subject: Re: kern/119894: [ata] Initialization of disc controller fails
	(regression)
Date: Sat, 02 Feb 2008 17:07:58 +0100

 The problem also exists with 7.0RC1.
 
 
>Unformatted:
