From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 13 21:13:52 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D72AA1065670 for ; Mon, 13 Feb 2012 21:13:52 +0000 (UTC) (envelope-from Aaron.Caza@ca.weatherford.com) Received: from TX2EHSOBE002.bigfish.com (tx2ehsobe004.messaging.microsoft.com [65.55.88.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7FBAD8FC1A for ; Mon, 13 Feb 2012 21:13:52 +0000 (UTC) Received: from mail55-tx2-R.bigfish.com (10.9.14.243) by TX2EHSOBE002.bigfish.com (10.9.40.22) with Microsoft SMTP Server id 14.1.225.23; Mon, 13 Feb 2012 20:58:47 +0000 Received: from mail55-tx2 (localhost [127.0.0.1]) by mail55-tx2-R.bigfish.com (Postfix) with ESMTP id B84F22C0257 for ; Mon, 13 Feb 2012 20:58:46 +0000 (UTC) X-SpamScore: -8 X-BigFish: PS-8(zzc85fhfb6I55dRzz1202hzzz2fh2a8h668h839h8e2h8e3hbe9k) X-Forefront-Antispam-Report: CIP:70.37.183.126; KIP:(null); UIP:(null); IPV:NLI; H:owa.weatherford.com; RD:none; EFVD:NLI Received-SPF: pass (mail55-tx2: domain of ca.weatherford.com designates 70.37.183.126 as permitted sender) client-ip=70.37.183.126; envelope-from=Aaron.Caza@ca.weatherford.com; helo=owa.weatherford.com ; therford.com ; Received: from mail55-tx2 (localhost.localdomain [127.0.0.1]) by mail55-tx2 (MessageSwitch) id 1329166721726184_9808; Mon, 13 Feb 2012 20:58:41 +0000 (UTC) Received: from TX2EHSMHS033.bigfish.com (unknown [10.9.14.248]) by mail55-tx2.bigfish.com (Postfix) with ESMTP id 8F309300055 for ; Mon, 13 Feb 2012 20:58:41 +0000 (UTC) Received: from owa.weatherford.com (70.37.183.126) by TX2EHSMHS033.bigfish.com (10.9.99.133) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 13 Feb 2012 20:58:38 +0000 Received: from 032-SN1MPN1-005.032d.mgd.msft.net ([169.254.5.114]) by 032-SN1MMR1-002.032d.mgd.msft.net ([170.133.198.14]) with mapi id 14.01.0355.003; Mon, 13 Feb 2012 14:58:38 -0600 From: "Caza, Aaron" To: "freebsd-hackers@freebsd.org" Thread-Topic: AHCI Timeouts on SATA III with Intel 520 SSDs Thread-Index: AczqkBE+uXo5uTWmSlGQ0gy+bH0uVQAAdXeQ Date: Mon, 13 Feb 2012 20:58:38 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.27.91.6] MIME-Version: 1.0 X-OriginatorOrg: ca.weatherford.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: AHCI Timeouts on SATA III with Intel 520 SSDs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 21:13:52 -0000 I've got a couple of Intel 520 SSDs that I'm running on an Intel Sandy-brid= ge based system(Core i5-2500K H67 chipset). Unfortunately, the drives expe= rience AHCI Timeouts when connected to the SATA III ports. If, however, I = connect the drives to the SATA-II ports on the same system the drives do no= t timeout. NCQ is enabled. Below is the complete dmesg showing the issue.= For my testing, I'm just using a FreeBSD 9.0 Release (amd64) generic kern= el using 'dd if=3D/dev/ada0 of=3D/dev/null bs=3D1m' to exhibit the behavior= . The drives, ofcourse, are brand new and again if I run them off the SAT= A-II ports instead of the SATA-III ports the problem goes away but then so = does the performance. Suggestions? gpart show ada0: =3D> 34 234441581 ada0 GPT (111G) 34 128 1 freebsd-boot (64k) 162 232783872 2 freebsd-ufs (111G) 232784034 1657581 - free - (809M) camcontrol identify ada0: pass0: ATA-9 SATA 3.x device pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) protocol ATA/ATAPI-9 SATA 3.x device model INTEL SSDSC2CW120A3 firmware revision 400i serial number WWN 5001517bb27d76f7 cylinders 16383 heads 16 sectors/track 63 sector size logical 512, physical 512, offset 0 LBA supported 234441648 sectors LBA48 supported 234441648 sectors PIO supported PIO4 DMA supported WDMA2 UDMA6 media RPM non-rotating Feature Support Enabled Value Vendor read ahead yes yes write cache yes yes flush cache yes yes overlap no Tagged Command Queuing (TCQ) no no Native Command Queuing (NCQ) yes 32 tags SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management yes yes 254/0xFE automatic acoustic management no no media status notification no no power-up in Standby yes no write-read-verify no no unload yes yes free-fall no no data set management (TRIM) yes dmesg: Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz (3292.59-MHz K8-class CPU) Origin =3D "GenuineIntel" Id =3D 0x206a7 Family =3D 6 Model =3D 2a St= epping =3D 7 Features=3D0xbfebfbff Features2=3D0x179ae3bf AMD Features=3D0x28100800 AMD Features2=3D0x1 TSC: P-state invariant, performance statistics real memory =3D 17179869184 (16384 MB) avail memory =3D 16459304960 (15696 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 2 cpu2 (AP): APIC ID: 4 cpu3 (AP): APIC ID: 6 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xf000-0xf03f mem 0xfe000000-0xfe3ff= fff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 pci0: at device 22.0 (no driver attached) ehci0: mem 0xfe603000-0xfe6033ff irq 16= at device 26.0 on pci0 usbus0: EHCI version 1.0 usbus0: on ehci0 pcib2: irq 17 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 16 at device 28.1 on pci0 pci3: on pcib3 xhci0: mem 0xfe500000-0xfe507fff irq 17= at device 0.0 on pci3 xhci0: 32 byte context size. usbus1 on xhci0 pcib4: irq 18 at device 28.2 on pci0 pci4: on pcib4 xhci1: mem 0xfe400000-0xfe407fff irq 18= at device 0.0 on pci4 xhci1: 32 byte context size. usbus2 on xhci1 pcib5: irq 19 at device 28.3 on pci0 pci5: on pcib5 re0: port 0xe000-0x= e0ff mem 0xd0004000-0xd0004fff,0xd0000000-0xd0003fff irq 19 at device 0.0 o= n pci5 re0: Using 1 MSI-X message re0: Chip rev. 0x2c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseT= X-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000= baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto= -flow re0: Ethernet address: 80:ee:73:14:6d:b1 pcib6: irq 17 at device 28.4 on pci0 pci6: on pcib6 ehci1: mem 0xfe602000-0xfe6023ff irq 23= at device 29.0 on pci0 usbus3: EHCI version 1.0 usbus3: on ehci1 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: port 0xf0b0-0xf0b7,0xf0a0-= 0xf0a3,0xf090-0xf097,0xf080-0xf083,0xf060-0xf07f mem 0xfe601000-0xfe6017ff = irq 19 at device 31.2 on pci0 ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 Event timer "HPET3" frequency 14318180 Hz quality 440 Event timer "HPET4" frequency 14318180 Hz quality 440 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 orm0: at iomem 0xc0000-0xcd7ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 est2: on cpu2 p4tcc2: on cpu2 est3: on cpu3 p4tcc3: on cpu3 Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 5.0Gbps Super Speed USB v3.0 usbus2: 5.0Gbps Super Speed USB v3.0 usbus3: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: <0x1b21> at usbus1 uhub1: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 ugen2.1: <0x1b21> at usbus2 uhub2: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-9 SATA 3.x device ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 114473MB (234441648 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-9 SATA 3.x device ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 114473MB (234441648 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad6 SMP: AP CPU #3 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! Timecounter "TSC-low" frequency 12861691 Hz quality 1000 Root mount waiting for: usbus3 usbus2 usbus1 usbus0 uhub1: 4 ports with 4 removable, self powered uhub2: 4 ports with 4 removable, self powered uhub0: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered Root mount waiting for: usbus3 usbus0 ugen0.2: at usbus0 uhub4: on = usbus0 ugen3.2: at usbus3 uhub5: on = usbus3 Root mount waiting for: usbus3 usbus0 uhub4: 6 ports with 6 removable, self powered uhub5: 8 ports with 8 removable, self powered ugen3.3: at usbus3 ukbd0: on usbus3 kbd0 at ukbd0 Trying to mount root from ufs:/dev/ada0p2 [rw]... ahcich0: Timeout on slot 24 port 0 ahcich0: is 00000000 cs 06000000 ss 07000000 rs 07000000 tfd 40 serr 008800= 00 cmd 0000d817 ahcich0: Timeout on slot 21 port 0 ahcich0: is 00000000 cs 00c00000 ss 00e00000 rs 00e00000 tfd 40 serr 008800= 00 cmd 0000d517 ahcich0: Timeout on slot 28 port 0 ahcich0: is 00000000 cs e000000f ss f000000f rs f000000f tfd 40 serr 008800= 00 cmd 0000dc17 ahcich0: Timeout on slot 25 port 0 ahcich0: is 00000000 cs 00000000 ss 02000000 rs 02000000 tfd 40 serr 008800= 00 cmd 0000d917 ahcich0: Timeout on slot 16 port 0 ahcich0: is 00000000 cs 00000000 ss 00010000 rs 00010000 tfd 40 serr 008800= 00 cmd 0000d017 ahcich0: Timeout on slot 19 port 0 ahcich0: is 00000000 cs 00000000 ss 00080000 rs 00080000 tfd 40 serr 008800= 00 cmd 0000d317 ahcich0: Timeout on slot 22 port 0 ahcich0: is 00000000 cs 01800000 ss 01c00000 rs 01c00000 tfd 40 serr 008800= 00 cmd 0000d617 ahcich0: Timeout on slot 9 port 0 ahcich0: is 00000000 cs 0000fc00 ss 0000fe00 rs 0000fe00 tfd 40 serr 008800= 00 cmd 0000c917 ahcich0: Timeout on slot 17 port 0 ahcich0: is 00000000 cs 00000000 ss 00020000 rs 00020000 tfd 40 serr 008800= 00 cmd 0000d117 ahcich0: Timeout on slot 1 port 0 ahcich0: is 00000000 cs 00000000 ss 00000002 rs 00000002 tfd 40 serr 008800= 00 cmd 0000c117 ahcich0: Timeout on slot 24 port 0 ahcich0: is 00000000 cs 01000000 ss 01000000 rs 01000000 tfd c0 serr 008800= 00 cmd 0000d817 ahcich0: Timeout on slot 5 port 0 ahcich0: is 00000000 cs 00000000 ss 00000020 rs 00000020 tfd 40 serr 008800= 00 cmd 0000c517 ahcich0: Timeout on slot 8 port 0 ahcich0: is 00000000 cs 00000000 ss 00000100 rs 00000100 tfd 40 serr 008800= 00 cmd 0000c817 ahcich0: Timeout on slot 9 port 0 ahcich0: is 00000000 cs 00000000 ss 00000200 rs 00000200 tfd 40 serr 008800= 00 cmd 0000c917 ahcich0: Timeout on slot 12 port 0 ahcich0: is 00000000 cs 00000000 ss 00001000 rs 00001000 tfd 40 serr 008800= 00 cmd 0000cc17 ahcich0: Timeout on slot 26 port 0 ahcich0: is 00000000 cs 00000000 ss 04000000 rs 04000000 tfd 40 serr 008800= 00 cmd 0000da17 ahcich0: Timeout on slot 27 port 0 ahcich0: is 00000000 cs 00000000 ss 08000000 rs 08000000 tfd 40 serr 008800= 00 cmd 0000db17 ahcich0: Timeout on slot 28 port 0 ahcich0: is 00000000 cs 00000000 ss 10000000 rs 10000000 tfd 40 serr 008800= 00 cmd 0000dc17 ahcich0: Timeout on slot 4 port 0 ahcich0: is 00000000 cs 00000000 ss 00000010 rs 00000010 tfd 40 serr 008800= 00 cmd 0000c417 This message may contain confidential and privileged information. If it has= been sent to you in error, please reply to advise the sender of the error = and then immediately delete it. If you are not the intended recipient, do n= ot read, copy, disclose or otherwise use this message. The sender disclaims= any liability for such unauthorized use. PLEASE NOTE that all incoming e-m= ails sent to Weatherford e-mail accounts will be archived and may be scanne= d by us and/or by external service providers to detect and prevent threats = to our systems, investigate illegal or inappropriate behavior, and/or elimi= nate unsolicited promotional e-mails (spam). This process could result in d= eletion of a legitimate e-mail before it is read by its intended recipient = at our organization. Moreover, based on the scanning results, the full text= of e-mails and attachments may be made available to Weatherford security a= nd other personnel for review and appropriate action. If you have any conce= rns about this process, please contact us at dataprivacy@weatherford.com.