Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 16:07:08 +0000
From:      "Caza, Aaron" <Aaron.Caza@ca.weatherford.com>
To:        Steven Hartland <killing@multiplay.co.uk>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   RE: AHCI Timeouts on SATA III with Intel 520 SSDs
Message-ID:  <ED7E934D2E032D439E7B8BE4B8D82FAD022A05@032-SN2MPN1-052.032d.mgd.msft.net>
In-Reply-To: <C2E19F6EFEB848D982C4C633F16C7116@multiplay.co.uk>
References:  <AEDFABC67B24DD4DABD377A367AB98AD124DB2@032-SN1MPN1-005.032d.mgd.msft.net> <C2E19F6EFEB848D982C4C633F16C7116@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Yes.  In my case, the problem turned out to be a marginal SATA-III port on =
the motherboard which was determined after swapping SSDs, SATA cables, etce=
tera to finally pin down the problem.  When trouble-shooting this issue, I =
recall googling a particular missive by Alexander Motion in which he indica=
tes these problems are potentially due to any number of hardware-related re=
asons hence the exhaustive search for the culprit which, as he suggested, d=
id indeed turn out to be the hardware.    It's actually rather interesting =
how borderline hardware can be - the port in question could handle an Intel=
 510 SSD running at full SATA-III speed but an Intel 520 pushed it over the=
 brink.

-----Original Message-----
From: Steven Hartland [mailto:killing@multiplay.co.uk]
Sent: Friday, July 27, 2012 7:52 AM
To: Caza, Aaron; freebsd-hackers@freebsd.org
Subject: Re: AHCI Timeouts on SATA III with Intel 520 SSDs

Did you get anywhere with this?

Seeing a similar thing on some new Patsburg based machines with KINGSTON SS=
D's on 8.3-RELEASE.

    Regards
    Steve

----- Original Message -----
From: "Caza, Aaron" <Aaron.Caza@ca.weatherford.com>
To: <freebsd-hackers@freebsd.org>
Sent: Monday, February 13, 2012 9:58 PM
Subject: AHCI Timeouts on SATA III with Intel 520 SSDs


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 experience AHCI Timeouts when connected to the SA=
TA III ports.  If, however, I connect the drives to the
SATA-II ports on the same system the drives do not 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 kernel usi=
ng '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  SATA-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: <INTEL SSDSC2CW120A3 400i> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=3D0x179ae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3=
,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,TSCDLT,AESNI,XSAVE,AVX>
  AMD Features=3D0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=3D0x1<LAHF>
  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: <Shuttl Shuttle >
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 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <Shuttl Shuttle> 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: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0xfe000000-0xfe3ff=
fff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
pci0: <simple comms> at device 22.0 (no driver attached)
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe603000-0xfe6033ff irq 16=
 at device 26.0 on pci0
usbus0: EHCI version 1.0
usbus0: <EHCI (generic) USB 2.0 controller> on ehci0
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0
pci3: <ACPI PCI bus> on pcib3
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfe500000-0xfe507fff irq 17=
 at device 0.0 on pci3
xhci0: 32 byte context size.
usbus1 on xhci0
pcib4: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci4: <ACPI PCI bus> on pcib4
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xfe400000-0xfe407fff irq 18=
 at device 0.0 on pci4
xhci1: 32 byte context size.
usbus2 on xhci1
pcib5: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0
pci5: <ACPI PCI bus> on pcib5
re0: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0xe000-0x=
e0ff mem 0xd0004000-0xd0004fff,0xd0000000-0xd0003fff
irq 19 at device 0.0 on pci5
re0: Using 1 MSI-X message
re0: Chip rev. 0x2c000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseT=
X-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow=
-master, auto, auto-flow
re0: Ethernet address: 80:ee:73:14:6d:b1
pcib6: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
pci6: <ACPI PCI bus> on pcib6
ehci1: <EHCI (generic) USB 2.0 controller> mem 0xfe602000-0xfe6023ff irq 23=
 at device 29.0 on pci0
usbus3: EHCI version 1.0
usbus3: <EHCI (generic) USB 2.0 controller> on ehci1
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel Cougar Point AHCI SATA controller> 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: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
hpet0: <High Precision Event Timer> 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: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcd7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
est2: <Enhanced SpeedStep Frequency Control> on cpu2
p4tcc2: <CPU Frequency Thermal Control> on cpu2
est3: <Enhanced SpeedStep Frequency Control> on cpu3
p4tcc3: <CPU Frequency Thermal Control> 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: <Intel> at usbus0
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> 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: <Intel> at usbus3
uhub3: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <INTEL SSDSC2CW120A3 400i> 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: <INTEL SSDSC2CW120A3 400i> 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: <vendor 0x8087> at usbus0
uhub4: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on =
usbus0
ugen3.2: <vendor 0x8087> at usbus3
uhub5: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> 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: <Dell> at usbus3
ukbd0: <Dell Dell USB Keyboard, class 0/0, rev 1.10/3.06, addr 3> 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 inte=
nded recipient, do not read, copy, disclose or
otherwise use this message. The sender disclaims any liability for such una=
uthorized use. PLEASE NOTE that all incoming e-mails
sent to Weatherford e-mail accounts will be archived and may be scanned by =
us and/or by external service providers to detect and
prevent threats to our systems, investigate illegal or inappropriate behavi=
or, and/or eliminate unsolicited promotional e-mails
(spam). This process could result in deletion 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-m=
ails and attachments may be made available to
Weatherford security and other personnel for review and appropriate action.=
 If you have any concerns about this process, please
contact us at dataprivacy@weatherford.com.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This e.mail is private and confidential between Multiplay (UK) Ltd. and the=
 person or entity to whom it is addressed. In the event of misdirection, th=
e recipient is prohibited from using, copying, printing or otherwise dissem=
inating it or any information contained in it.

In the event of misdirection, illegible or incomplete transmission please t=
elephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.


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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ED7E934D2E032D439E7B8BE4B8D82FAD022A05>