From root@tirion.argosnet.com  Tue Aug  8 18:10:28 2006
Return-Path: <root@tirion.argosnet.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4E17F16A4DA
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Aug 2006 18:10:28 +0000 (UTC)
	(envelope-from root@tirion.argosnet.com)
Received: from tirion.argosnet.com (tirion.argosnet.com [82.224.1.141])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9FEB143D53
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Aug 2006 18:10:27 +0000 (GMT)
	(envelope-from root@tirion.argosnet.com)
Received: from tirion.argosnet.com (tirion.argosnet.com [192.168.0.254])
	by tirion.argosnet.com (8.13.6/8.13.6) with ESMTP id k78IAO9G074696
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Aug 2006 20:10:24 +0200 (CEST)
	(envelope-from root@tirion.argosnet.com)
Received: (from root@localhost)
	by tirion.argosnet.com (8.13.6/8.13.6/Submit) id k78IANS9074695;
	Tue, 8 Aug 2006 20:10:23 +0200 (CEST)
	(envelope-from root)
Message-Id: <200608081810.k78IANS9074695@tirion.argosnet.com>
Date: Tue, 8 Aug 2006 20:10:23 +0200 (CEST)
From: Laurent LEVIER <llevier@argosnet.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ATA problems when power management is on
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         101667
>Category:       i386
>Synopsis:       [ata] ATA problems when power management is on
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 08 18:20:12 GMT 2006
>Closed-Date:    Mon Feb 23 17:55:22 UTC 2009
>Last-Modified:  Mon Feb 23 17:55:22 UTC 2009
>Originator:     Laurent LEVIER
>Release:        FreeBSD 6.1-RELEASE-p3 i386
>Organization:
N/A
>Environment:
System: FreeBSD tirion 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Fri Jul 14 01:06:28 CEST 2006 root@tirion:/usr/obj/usr/src/sys/TIRION i386


>Description:
Hi, since I migrated to FreeBSD 6.0 (in fact I reinstalled the box), I am
facing some weird behavior with my data hard drive.

My server is using 2 HD: one for OS (permanently running) and the other
for data storage (power management activated). Naturally, when 2nd is not
used, it stops running until it is requested again.

On FreeBSD 4.x, HD was restarting, then once ready data was accessible.
On 6.x, I got ATA errors:
ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=62098175
ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=12127
ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=46291583
ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=287

Of course, I thought it could be a HD, controler or cabling issue and so
performed some tests. At the end, when the only difference is FreeBSD 4.11
vs 6.x, problem no longer exists. So I guess problem comes from 6.x.

Differences between 4.11 & 6.x: APM was present on 4.x and not detected on
6.x.  But ACPI runs and pmtimer is in kernel.

The problem is no annoying that, after a while, the hard drive is purely
disconnected by kernel (/u2 not available).

>How-To-Repeat:
I guess installing 6.x and using an A7M266 Mobo, with its normal ATA100
controler will suffice.

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mav 
State-Changed-When: Mon Feb 23 17:54:35 UTC 2009 
State-Changed-Why:  
Recent ata driver has built-in idling capabilities. Use them 
and there will be no timeouts. 

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