From nobody@FreeBSD.org  Tue Oct 30 04:21:53 2007
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 AB0EF16A417
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Oct 2007 04:21:53 +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 9ADDE13C4AA
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Oct 2007 04:21:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9U4LqXo027544
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Oct 2007 04:21:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9U4LqlB027543;
	Tue, 30 Oct 2007 04:21:52 GMT
	(envelope-from nobody)
Message-Id: <200710300421.l9U4LqlB027543@www.freebsd.org>
Date: Tue, 30 Oct 2007 04:21:52 GMT
From: Simon Dircks <ender@enderzone.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: SATA issues on amd64 freebsd 7 (right before beta1)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117656
>Category:       kern
>Synopsis:       [sata] SATA issues on amd64 freebsd 7 (right before beta1) (regression)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 30 04:30:01 UTC 2007
>Closed-Date:    Mon Jan 28 22:26:58 UTC 2008
>Last-Modified:  Mon Jan 28 22:26:58 UTC 2008
>Originator:     Simon Dircks
>Release:        current 7 before the branch, after the branch
>Organization:
KSD
>Environment:
carp0# uname -a
FreeBSD carp0.ksdhost.com 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Mon Oct 29 02:36:11 EDT 2007     graff@carp0.ksdhost.com:/usr/obj/usr/src/sys/CARP0  amd64

>Description:
Hi, i am having some trouble with freebsd on the Tyan Transport TA26 (B3992). Motherboard
Thunder h2000M (S3992). I have several of these machines and all the hardware i have been
using to test with. I have also spent a couple weeks going though this and testing. I
hope that this email will lead to a solution for me and some other people, and i would
like to help test and fix this as best as i can. (time, hardware, money if i can spare)

Basicly the controller in question is onboard <ServerWorks HT1000 SATA150 controller>. It
was added here:

http://lists.freebsd.org/pipermail/freebsd-bugs/2006-August/019853.html
And said it works well here:
http://lists.freebsd.org/pipermail/freebsd-www/2007-January/004686.html

Now whats funny is nicole at unixgirl.com was a big clue that i wasn't doing something
wrong. She reported trouble here:

See this thread here:
http://lists.freebsd.org/pipermail/freebsd-questions/2007-February/141725.html

Here is my personal experences:
I am testing with about 10 new western digital 500G SATA drives. And 2 of the said tyan
servers.

Identical hardware runs perfectly on freebsd 6.2 SMP amd64 when this drive controller is
in PATA mode. (Both of these servers have been up for 20 days now slammed with mysql and
apache, no crashes, nothing)

On freebsd 6.2 SMP amd64 when the controller is in SATA mode it will sometimes fail
during install, or after a build world.

On freebsd 7.x SMP amd64 in PATA mode, the install will fail 9 out of 10 times, and most
of the time wont boot after 1-2 times. (missing files or just alot of  g_vfs_done()
errors.

On freebsd 7.x SMP amd64 in SATA mode, the install will fail right away, and never goes
through.

Another piece of information I hope helps, i had both of these servers booted up over PXE
running 7.x and they worked perfectly. I mounted the drives in all of them localy with
ZFS and it lead to tons of checksum errors, and eventually a crash so zfs did not return
bad data. (4 disks in a zfs mirror pool). I though it was a ZFS problem, but it turns out
zfs was fine, and just this combination of hardware / drivers is not working correctly.

I can provide unlimited access to this hardware remotely to any developer willing to try
and fix this.

Thank you very much
>How-To-Repeat:
Try to install freebsd 7 amd64 on a tyan broadcom chipset machine, with the onboard SATA controller in SATA mode, or PATA mode. 
>Fix:
none known

>Release-Note:
>Audit-Trail:

From: =?koi8-r?B?7NnTxc7PyyDhztTPzg==?= <lysenok@tdzs.com.ua>
To: <bug-followup@FreeBSD.org>, <ender@enderzone.com>
Cc:  
Subject: Re: kern/117656: SATA issues on amd64 freebsd 7 (right before beta1)
Date: Tue, 30 Oct 2007 11:02:53 +0200

 This is a multi-part message in MIME format.
 
 ------_=_NextPart_001_01C81AD3.A9271F4B
 Content-Type: text/plain;
 	charset="koi8-r"
 Content-Transfer-Encoding: quoted-printable
 
 I have the same bug
 
 =20
 
 
 ------_=_NextPart_001_01C81AD3.A9271F4B
 Content-Type: text/html;
 	charset="koi8-r"
 Content-Transfer-Encoding: quoted-printable
 
 <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
 xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
 xmlns=3D"http://www.w3.org/TR/REC-html40">
 
 <head>
 <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
 <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
 <style>
 <!--
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
 	{margin:0cm;
 	margin-bottom:.0001pt;
 	font-size:12.0pt;
 	font-family:"Times New Roman";}
 a:link, span.MsoHyperlink
 	{color:blue;
 	text-decoration:underline;}
 a:visited, span.MsoHyperlinkFollowed
 	{color:purple;
 	text-decoration:underline;}
 span.EmailStyle17
 	{mso-style-type:personal-compose;
 	font-family:Arial;
 	color:windowtext;}
 @page Section1
 	{size:595.3pt 841.9pt;
 	margin:2.0cm 42.5pt 2.0cm 3.0cm;}
 div.Section1
 	{page:Section1;}
 -->
 </style>
 
 </head>
 
 <body lang=3DRU link=3Dblue vlink=3Dpurple>
 
 <div class=3DSection1>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
 style=3D'font-size:
 10.0pt;font-family:Arial'>I have the same bug</span></font><span =
 lang=3DEN-US><o:p></o:p></span></p>
 
 <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
 style=3D'font-size:10.0pt;
 font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
 
 </div>
 
 </body>
 
 </html>
 
 ------_=_NextPart_001_01C81AD3.A9271F4B--

From: Matt Lehner <matt@aim2game.com>
To: bug-followup@FreeBSD.org,  ender@enderzone.com
Cc:  
Subject: Re: kern/117656: [sata] SATA issues on amd64 freebsd 7 (right before
 beta1) (regression)
Date: Tue, 30 Oct 2007 16:33:40 -0400

 I experienced the same problem. I setup a ZFS pool using the mpt(4) 
 drivers on a LSI SAS3041X-R with no problems, but then experienced some 
 weird issues with lockups (PR-117688) and attempted to switch over to a 
 native SATA setup using a Promise TX2plus SATA150 PCI card. I booted up 
 the server with the TX2plus and imported the ZFS pool, and as soon as I 
 tried moving some files there were immediately around 100 checksum 
 errors in ZFS and after more testing I easily created 2k worth of 
 checksum errors and over 100 unrecoverable errors using dd to write to 
 the disk. I was forced to destroy the pool because neither zpool or zfs 
 would function properly, and then switched back to the LSI controller.
 
 FreeBSD vault.buffalo.rr.com 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Mon Oct 22 
 07:41:02 UTC 2007  root@vault.buffalo.rr.com:/usr/obj/usr/src/sys/VAULT  
 amd64
 
 Motherboard: Tyan Tiger i7501 S2723
 CPU: Dual Opteron 244
 SATA Controller: TX2plux SATAII150
 Harddrives: 2x 1TB Hitachi Deskstars

From: Ender <ender@enderzone.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/117656: [sata] SATA issues on amd64 freebsd 7 (right before
 beta1) (regression)
Date: Tue, 30 Oct 2007 16:50:12 -0400

 These PR reports might be related
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/115337
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/111196
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: delphij 
State-Changed-When: Wed Jan 9 19:48:33 UTC 2008 
State-Changed-Why:  
Dear submitter, I think this should have been fixed by a 
recent ata(4) commit on RELENG_7 as well as RELENG_7_0. 
Could you please test if it helps? 

Thanks in advance! 


Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Wed Jan 9 19:48:33 UTC 2008 
Responsible-Changed-Why:  
Trace 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117656 
State-Changed-From-To: feedback->closed 
State-Changed-By: delphij 
State-Changed-When: Mon Jan 28 22:26:36 UTC 2008 
State-Changed-Why:  
Feedback timed out.  We believe that the problem has been fixed. 

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