From owner-freebsd-hardware Tue Nov 5 16:35:47 2002 Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 148F537B401 for ; Tue, 5 Nov 2002 16:35:41 -0800 (PST) Received: from web13504.mail.yahoo.com (web13504.mail.yahoo.com [216.136.175.83]) by mx1.FreeBSD.org (Postfix) with SMTP id B141F43E91 for ; Tue, 5 Nov 2002 16:35:40 -0800 (PST) (envelope-from rcarr6502@yahoo.com) Message-ID: <20021106003540.11623.qmail@web13504.mail.yahoo.com> Received: from [64.162.212.38] by web13504.mail.yahoo.com via HTTP; Tue, 05 Nov 2002 16:35:40 PST Date: Tue, 5 Nov 2002 16:35:40 -0800 (PST) From: Robert Carr Subject: 4.7-STABLE, ata0 command timeout problem To: freebsd-hardware@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I upgraded my Compaq iPAQ (Seagate? ST38410A drive) from 4.6 to 4.7-STABLE last month. Since then, I've noticed two problems. (1) dmesg and /dev/console are now reporting these errors several times an hour: ad0: WRITE command timeout tag=0 serv=0 - resetting ata0: resetting devices .. done ad0: READ command timeout tag=0 serv=0 - resetting ata0: resetting devices .. done (2) Just prior to the errors, the drive sounds like it's spinning up briefly, makes a raspy, light grinding noise, the system hangs for a few seconds, then returns to normal and produces the above errors. I've never heard the drive make these noises before. The drive otherwise _appears_ to operate fine; I hear it purring along nicely whenever there's disk activity. I haven't found any corruption issues (so far). In looking through the archives, it appears others have had the "command timeout" problem (and at least one person has mentioned freezing/pausing while it occurred) throughout FreeBSD 4.x. I haven't noticed it at all until FreeBSD 4.7, though I hadn't been keeping the system up for more than a few hours a day until the 4.7 upgrade (now the system is on constantly). hw.ata.ata_dma was set to 1. I added hw.ata.ata_dma=”0” to /boot/loader.conf and rebooted and neither problem has gone away. Presently: $ sysctl -a | grep ata hw.ata.ata_dma: 0 hw.ata.wc: 1 hw.ata.tags: 0 hw.ata.atapi_dma: 0 Does anyone have a solution to the problem spawning these error messages? Is the drive-noise related? I'm at a loss what to try next. Should I try disabling write-caching? Any advice would be greatly appreciated. ============== SYSTEM INFO ================= $ uname -a FreeBSD 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Oct 12 23:25:09 PDT 2002 i386 $ dmesg | grep ata atapci0: port 0x2460-0x246f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ata1-slave: ATAPI identify retries exceeded ad0: 8063MB [16383/16/63] at ata0-master PIO4 acd0: CDROM at ata1-master PIO4 ata0: resetting devices .. ata0-slave: ATA identify retries exceeded ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ata0: resetting devices .. done ------------------ # atacontrol cap 0 0 ATA channel 0, Master, device ad0: ATA/ATAPI revision 5 device model ST38410A serial number 6CS1D5WT firmware revision 3.13 cylinders 16383 heads 16 sectors/track 63 lba supported 16514064 sectors lba48 not supported dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes dma queued no no 0/00 SMART yes yes microcode download yes yes security yes yes power management yes yes advanced power management yes yes 64/40 automatic acoustic management no no 0/00 0/00 ------------------ Copyright (c) 1992-2002 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 4.7-STABLE #0: Sat Oct 12 23:25:09 PDT 2002 :/usr/obj/usr/src/sys/KERNEL Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (498.34-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 133169152 (130048K bytes) config> di sn0 config> di lnc0 config> di ie0 config> di fe0 config> di ed0 config> di cs0 config> q avail memory = 124313600 (121400K bytes) Preloaded elf kernel "kernel" at 0xc0526000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc052609c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 4 entries at 0xc00edf20 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: at 1.0 irq 11 pcib1: at device 30.0 on pci0 pci1: on pcib1 fxp0: port 0x1000-0x103f mem 0x40000000-0x400f ffff,0x40100000-0x40100fff irq 11 at device 1.0 on pci1 fxp0: Ethernet address inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x2460-0x246f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x2440-0x245f irq 11 at device 31.2 on pci0 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 chip1: port 0x2400-0x243f,0x2000-0x 20ff irq 11 at device 31.5 on pci0 orm0: