From root@sup-00.chs.agiosat.net  Thu Jun 27 23:35:28 2013
Return-Path: <root@sup-00.chs.agiosat.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 3F92D1B0
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Jun 2013 23:35:28 +0000 (UTC)
	(envelope-from root@sup-00.chs.agiosat.net)
Received: from sup-00.chs.agiosat.net (rrcs-74-62-198-26.west.biz.rr.com [74.62.198.26])
	by mx1.freebsd.org (Postfix) with ESMTP id 00A4116A5
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Jun 2013 23:35:27 +0000 (UTC)
Received: from sup-00.chs.agiosat.net (localhost [127.0.0.1])
	by sup-00.chs.agiosat.net (8.14.5/8.14.5) with ESMTP id r5RNWYvs002522
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Jun 2013 16:32:35 -0700 (PDT)
	(envelope-from root@sup-00.chs.agiosat.net)
Received: (from root@localhost)
	by sup-00.chs.agiosat.net (8.14.5/8.14.5/Submit) id r5RNWTP9002521;
	Thu, 27 Jun 2013 16:32:29 -0700 (PDT)
	(envelope-from root)
Message-Id: <201306272332.r5RNWTP9002521@sup-00.chs.agiosat.net>
Date: Thu, 27 Jun 2013 16:32:29 -0700 (PDT)
From: Keith Simonsen <bangel@elite.net>
Reply-To: Keith Simonsen <bangel@elite.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [ata] SATA Controller will not negotiate SATA300 only SATA150
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         180044
>Category:       kern
>Synopsis:       [ata] SATA Controller will not negotiate SATA300 only SATA150
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 27 23:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Keith Simonsen
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD sup-00 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Wed Sep 19 13:49:40 PDT 2012 root@sup-00:/usr/obj/usr/src/sys/SUP00 amd64
atapci1: <Intel 63XXESB2 SATA300 controller>

>Description:

	Below sata controller will only work at SATA150, multiple vendor SATAII and SATAIII drives have been used. Related PR: kern/127517  from FreeBSD 7.x. I had this same behavior with 8.x on this server. 

		atapci1: <Intel 63XXESB2 SATA300 controller> port 0xed00-0xed07,0xec80-0xec83,0xec00-0xec07,0xeb00-0xeb03,0xea80-0xea8f mem 0xfdfff400-0xfdfff7ff irq 19 at device 31.2 on pci0

	Drives:
		ada0 at ata2 bus 0 scbus1 target 0 lun 0
		ada0: <ST3160812AS 3.AAE> ATA-7 SATA 2.x device
		ada0: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes)
		ada1 at ata2 bus 0 scbus1 target 1 lun 0
		ada1: <SAMSUNG HD204UI 1AQ10001> ATA-8 SATA 2.x device
		ada1: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes)
		ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
		ada2 at ata3 bus 0 scbus2 target 0 lun 0
		ada2: <SAMSUNG HD204UI 1AQ10001> ATA-8 SATA 2.x device
		ada2: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes)
		ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)
		ada3 at ata3 bus 0 scbus2 target 1 lun 0
		ada3: <OCZ-AGILITY3 2.15> ATA-8 SATA 3.x device
		ada3: Serial Number OCZ-13813M2Y24ER5311
		ada3: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes)

	Info from verbose boot: (unsure if relevant)
		pci0: child atapci1 requested type 4 for rid 0x24, but the BAR says it is an memio
		ata2: <ATA channel> at channel 0 on atapci1
		ata3: <ATA channel> at channel 1 on atapci1
		ata2: reset tp1 mask=03 ostat0=80 ostat1=50
		ata2: stat0=0x50 err=0x01 lsb=0x00 msb=0x00
		ata2: stat1=0x50 err=0x01 lsb=0x00 msb=0x00
		ata2: reset tp2 stat0=50 stat1=50 devices=0x3
		ata3: SATA reset: ports status=0x0a
		ata3: reset tp1 mask=03 ostat0=50 ostat1=50
		ata3: stat0=0x50 err=0x01 lsb=0x00 msb=0x00
		ata3: stat1=0x50 err=0x01 lsb=0x00 msb=0x00
		ata3: reset tp2 stat0=50 stat1=50 devices=0x3

	pciconf output:
		atapci1@pci0:0:31:2:    class=0x01018f card=0x00231170 chip=0x26808086 rev=0x09 hdr=0x00
	    vendor     = 'Intel Corporation'
	    device     = '631xESB/632xESB/3100 Chipset SATA IDE Controller'
	    class      = mass storage
	    subclass   = ATA


>How-To-Repeat:
	Boot machine with SATAII/III drives and they only negotiate SATA150.

>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:
