From nobody@FreeBSD.org  Mon Oct 23 19:02:46 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0AC5916A4B3
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Oct 2006 19:02:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 09DBB43DB7
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Oct 2006 19:01:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9NJ1nW6032114
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Oct 2006 19:01:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9NJ1nM1032113;
	Mon, 23 Oct 2006 19:01:49 GMT
	(envelope-from nobody)
Message-Id: <200610231901.k9NJ1nM1032113@www.freebsd.org>
Date: Mon, 23 Oct 2006 19:01:49 GMT
From: Matt Mills<matt_mills@btopenworld.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Seagate ST3802110A errors/delays when using PIO4 or UDMA33
X-Send-Pr-Version: www-3.0

>Number:         104719
>Category:       i386
>Synopsis:       [ata] Seagate ST3802110A errors/delays when using PIO4 or UDMA33
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 23 19:10:10 GMT 2006
>Closed-Date:    Wed Oct 12 14:38:54 UTC 2011
>Last-Modified:  Wed Oct 12 14:38:54 UTC 2011
>Originator:     Matt Mills
>Release:        6.2-PRERELEASE
>Organization:
N/A
>Environment:
FreeBSD titan 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #20: Fri Oct 20 18:34:23 BST 2006     matt@titan:/usr/src/sys/i386/compile/titan  i386
>Description:
This is tested on both 6.1-STABLE and 6.2-PRERELEASE.

I installed a brand new ST3802110A hard drive and moved an existing
installation onto it. The motherboard is an HP Asus CUR-DLS with dual
P3 933 and SMP enabled:

acpi0: <HP HWPC20F>
atapci1: <ServerWorks ROSB4 UDMA33 controller>
ad0: 76319MB <Seagate ST3802110A 3.AAJ>

When the drive was running at UDMA33, almost every time I entered a
command and hit enter there was a delay and a distinctive humming
sound before the command was processed. It sounded almost like the
drive kept powering down until it was accessed and then powered up
again. I tried a few disk intensive commands like pkgversion, portsclean
and kernel compilation which worked fine, but again, shortly after
completion you would hear the drive hum quieten. I also saw a couple
of READ/WRITE_DMA errors but I do not have these available any longer.

I tried disabling DMA which forced back to PIO4 mode. This resulted in
a very occasional:

kernel: ad0: TIMEOUT - WRITE_MUL retrying (1 retry left) LBA=4615355
kernel: ad0: TIMEOUT - READ_MUL retrying (1 retry left) LBA=83786751

Even during times of relative inactivity. At one stage (when running
at PIO4) I returned to the computer and it had completely locked up,
so I had to physically power down.

I tried disabling ACPI and even APIC to no avail.
>How-To-Repeat:
Presumably you could repeat this by running 6.1-STABLE or 6.2-PRERELEASE
on a Seagate ST3802110A connected to an onboard IDE connector of an HP
Asus CUR-DLS motherboard.
>Fix:
I installed a PCI IDE ATA100 controller and connected the problematic drive:

atapci0: <CMD 649 UDMA100 controller>

The hums and associated delays have now disappeared and 48+ hours have
passed without a problem. Furthermore, the drive is now running at the
intended UDMA100 and performing well.

More details can be provided if necessary, though I would rather perform
as little reproduction as possible since uptime of the machine is quite
critical.
>Release-Note:
>Audit-Trail:

From: Remko Lodder <remko@FreeBSD.org>
To: Matt Mills <matt_mills@btopenworld.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/104719: Seagate ST3802110A errors/delays when using PIO4
 or	UDMA33
Date: Mon, 23 Oct 2006 21:17:22 +0200

 What kind of ide cable do you use?
 
 Thanks!
 -- 
 Kind regards,
 
       Remko Lodder               ** remko@elvandar.org
       FreeBSD                    ** remko@FreeBSD.org
 
       /* Quis custodiet ipsos custodes */

From: Matt Mills <matt_mills@btopenworld.com>
To: remko@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/104719: Seagate ST3802110A errors/delays when using PIO4
 or	UDMA33
Date: Mon, 23 Oct 2006 20:27:13 +0100

 Remko Lodder wrote:
 > Matt Mills wrote:
 > 
 > What kind of ide cable do you use?
 > 
 > Thanks!
 
 The cable type with black/grey/blue connectors. I believe it is referred 
 to as an 80-conductor cable.
 
 Thanks.
 
 --
 Matt
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 06:20:14 UTC 2010 
State-Changed-Why:  
Hello Matt, is this still seen on recent versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104719 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 14:38:53 UTC 2011 
State-Changed-Why:  
Feedback timeout 

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