From owner-freebsd-i386@FreeBSD.ORG Tue Apr 3 16:50:05 2007 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22B9716A413 for ; Tue, 3 Apr 2007 16:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 036DE13C4BF for ; Tue, 3 Apr 2007 16:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l33Go4jb089728 for ; Tue, 3 Apr 2007 16:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l33Go437089727; Tue, 3 Apr 2007 16:50:04 GMT (envelope-from gnats) Resent-Date: Tue, 3 Apr 2007 16:50:04 GMT Resent-Message-Id: <200704031650.l33Go437089727@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Russell Sutherland Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1F0016A419 for ; Tue, 3 Apr 2007 16:42:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 920F013C455 for ; Tue, 3 Apr 2007 16:42:55 +0000 (UTC) (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 l33GgrOc055684 for ; Tue, 3 Apr 2007 16:42:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l33GbpQg055070; Tue, 3 Apr 2007 16:37:51 GMT (envelope-from nobody) Message-Id: <200704031637.l33GbpQg055070@www.freebsd.org> Date: Tue, 3 Apr 2007 16:37:51 GMT From: Russell Sutherland To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/111196: SATA drives cause errors and cause system to hang X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 16:50:05 -0000 >Number: 111196 >Category: i386 >Synopsis: SATA drives cause errors and cause system to hang >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 03 16:50:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Russell Sutherland >Release: 6.2 >Organization: University of Toronto >Environment: FreeBSD backup.cns.utoronto.ca 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Fri Jan 19 09:53:48 EST 2007 root@backup.cns.utoronto.ca:/usr/obj/usr/src/sys/RPS i386 >Description: The machine shows disk errors when using one SATA drive. When I use two SATA drives (independently or with GEOM RAID-0) the system hangs intermittently after disk use. Here is the existing output from dmesg: # dmesg Copyright (c) 1992-2007 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 6.2-RELEASE #1: Fri Jan 19 09:53:48 EST 2007 root@backup.cns.utoronto.ca:/usr/obj/usr/src/sys/RPS Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (804.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff real memory = 536784896 (511 MB) avail memory = 515862528 (491 MB) kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 atapci0: port 0xb800-0xb807,0xb400-0xb403,0xb000-0xb007,0xa800-0xa803,0xa400-0xa40f mem 0xf5000000-0xf50001ff irq 5 at device 10.0 on pci2 ata2: on atapci0 ata3: on atapci0 fxp0: port 0xa000-0xa03f mem 0xf4800000-0xf4800fff,0xf4000000-0xf401ffff irq 9 at device 11.0 on pci2 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:b3:96:d1:13 ahc0: port 0x9800-0x98ff mem 0xf3800000-0xf3800fff irq 3 at device 12.0 on pci2 ahc0: [GIANT-LOCKED] aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8800-0x880f at device 31.1 on pci0 ata0: on atapci1 ata1: on atapci1 uhci0: port 0x8400-0x841f irq 12 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 31.3 (no driver attached) uhci1: port 0x8000-0x801f irq 9 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered fdc0: port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcbfff,0xcc000-0xd07ff,0xd4000-0xd57ff,0xd8000-0xd87ff on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 804023284 Hz quality 800 Timecounters tick every 1.000 msec ad0: 32634MB at ata0-master UDMA66 acd0: CDROM at ata1-master PIO4 ad4: 305245MB at ata2-master SATA150 sa0 at ahc0 bus 0 target 6 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit) Trying to mount root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted ad4: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=72259695 ad4: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=24614031 ad4: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=181025423 ad4: TIMEOUT - WRITE_DMA48 retrying (1 retry left) LBA=270973551 ad4: TIMEOUT - WRITE_DMA48 retrying (0 retries left) LBA=270973551 ad4: FAILURE - WRITE_DMA48 status=51 error=10 LBA=270973551 g_vfs_done():ad4s1a[WRITE(offset=138738417664, length=16384)]error = 5 ad4: TIMEOUT - WRITE_DMA48 retrying (1 retry left) LBA=300705359 ad4: TIMEOUT - WRITE_DMA48 retrying (0 retries left) LBA=300705359 ad4: FAILURE - WRITE_DMA48 status=51 error=10 LBA=300705359 g_vfs_done():ad4s1a[WRITE(offset=153961103360, length=16384)]error = 5 ad4: TIMEOUT - WRITE_DMA48 retrying (1 retry left) LBA=338340559 ad4: TIMEOUT - WRITE_DMA48 retrying (0 retries left) LBA=338340559 ad4: FAILURE - WRITE_DMA48 timed out LBA=338340559 g_vfs_done():ad4s1a[WRITE(offset=173230325760, length=16384)]error = 5 ad4: TIMEOUT - WRITE_DMA48 retrying (1 retry left) LBA=357550095 ad4: FAILURE - WRITE_DMA48 status=51 error=10 LBA=357550095 g_vfs_done():ad4s1a[WRITE(offset=183065608192, length=131072)]error = 5 >How-To-Repeat: Reboot machine with two SATA drives. The SATA drive which I have removed, in order to gain some semblance of stability is: WD 3200KS - 00PFB0 WD Caviar SE16 >Fix: None. >Release-Note: >Audit-Trail: >Unformatted: