From matthias.andree@web.de  Mon May 20 03:12:56 2002
Return-Path: <matthias.andree@web.de>
Received: from emma.line.org (p50877CE7.dip.t-dialin.net [80.135.124.231])
	by hub.freebsd.org (Postfix) with ESMTP id 7AF9837B411
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 May 2002 03:12:55 -0700 (PDT)
Received: by emma.line.org (Postfix, from userid 0)
	id 379741B24B; Mon, 20 May 2002 12:12:52 +0200 (CEST)
Message-Id: <20020520101252.379741B24B@emma.line.org>
Date: Mon, 20 May 2002 12:12:52 +0200 (CEST)
From: Bourne-again Superuser <toor@emma.line.org>
Reply-To: Bourne-again Superuser <toor@emma.line.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ATA drives only UDMA33 after APM standby
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38333
>Category:       kern
>Synopsis:       ATA drives only UDMA33 after APM standby
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 20 03:20:02 PDT 2002
>Closed-Date:    Mon Apr 28 11:47:29 PDT 2003
>Last-Modified:  Mon Apr 28 11:47:29 PDT 2003
>Originator:     Bourne-again Superuser
>Release:        FreeBSD 4.6-RC i386
>Organization:
>Environment:
System: FreeBSD emma1.emma.line.org 4.6-RC FreeBSD 4.6-RC #1: Fri May 17 04:48:20 CEST 2002 toor@emma1.emma.line.org:/usr/src/sys/compile/MA i386


	
>Description:
After waking up from APM standby mode, the IDE interfaces are reset, and
my Secondary Master (ad2), which was in UDMA 66 before, is in UDMA 33
mode henceforth.

dmesg:

resumed from suspended mode (slept 00:00:01)
ata0: resetting devices .. done
ata1: resetting devices .. ad2: DMA limited to UDMA33, non-ATA66 cable or device
done
ad2: DMA limited to UDMA33, non-ATA66 cable or device


I know for sure I have short 80-ribbon connectors for all drives,
and on initial boot-up everything is fine, dmesg again: 

ad0: 58610MB <Maxtor 4W060H4> [119081/16/63] at ata0-master UDMA66
ad2: 43979MB <IBM-DTLA-307045> [89355/16/63] at ata1-master UDMA66
ad3: 19470MB <WDC AC420400D> [39560/16/63] at ata1-slave UDMA66


This cannot be cured with atacontrol:

# atacontrol mode 1 UDMA66 UDMA66
Master = UDMA33
Slave  = UDMA66

options ATA_STATIC_ID is enabled.

Here's the list:
ATA channel 0:
    Master:  ad0 <Maxtor 4W060H4/AAH41310> ATA/ATAPI rev 6
    Slave:       no device present
ATA channel 1:
    Master:  ad2 <IBM-DTLA-307045/TX6OA6AA> ATA/ATAPI rev 5
    Slave:   ad3 <WDC AC420400D/J58OA30K> ATA/ATAPI rev 4
	
>How-To-Repeat:
apm -Z
dmesg
	
>Fix:
unknown. No workaround known other than reboot.
	


>Release-Note:
>Audit-Trail:

From: Matthias Andree <matthias.andree@web.de>
To: freebsd-gnats-submit@FreeBSD.org, toor@emma.line.org
Cc:  
Subject: Re: kern/38333: ATA drives only UDMA33 after APM standby
Date: Mon, 20 May 2002 16:37:25 +0200

 Sorry, I hosed my canonical mapping in Postfix. Use 
 <matthias.andree@web.de> to reply.
 

From: Matthias Andree <matthias.andree@web.de>
To: freebsd-gnats-submit@FreeBSD.org, matthias.andree@web.de
Cc:  
Subject: Re: kern/38333: ATA drives only UDMA33 after APM standby
Date: Tue, 21 May 2002 01:22:14 +0200

 One more way to reproduce this:
 
 "atacontrol reinit 1" will also reset the primary master to UDMA33 (when
 it was UDMA66 previously)
 
 If there is anything I should look at with a serial gdb attached, let me
 know.

From: Matthias Andree <matthias.andree@stud.uni-dortmund.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/38333: ATA drives only UDMA33 after APM standby
Date: Wed, 22 May 2002 13:32:01 +0200

 Of course, that's "secondary master"
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Aug 20 11:36:35 PDT 2002 
Responsible-Changed-Why:  
Over to ATA maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38333 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Apr 28 11:47:02 PDT 2003 
State-Changed-Why:  
This is belived fixed. 

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