From owner-freebsd-bugs Sat Dec 21 17:50: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BF9237B401 for ; Sat, 21 Dec 2002 17:50:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74F6D43EE5 for ; Sat, 21 Dec 2002 17:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBM1o2NS016124 for ; Sat, 21 Dec 2002 17:50:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBM1o2ul016123; Sat, 21 Dec 2002 17:50:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B92A37B401 for ; Sat, 21 Dec 2002 17:41:01 -0800 (PST) Received: from nollie.summersault.com (nollie.summersault.com [208.10.44.140]) by mx1.FreeBSD.org (Postfix) with SMTP id D9C4B43EDC for ; Sat, 21 Dec 2002 17:41:00 -0800 (PST) (envelope-from mark@summersault.com) Received: (qmail 72736 invoked by uid 1002); 22 Dec 2002 01:40:50 -0000 Message-Id: <20021222014050.72735.qmail@nollie.summersault.com> Date: 22 Dec 2002 01:40:50 -0000 From: Mark Stosberg Reply-To: Mark Stosberg To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/46455: trouble with VIA EPIA 5000 system- WRITE command failed Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46455 >Category: i386 >Synopsis: trouble with VIA EPIA 5000 system- WRITE command failed >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 21 17:50:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Mark Stosberg >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: >Description: I recently upgraded my home FreeBSD machine to a system based around the VIA EPIA 5000 motherboard. (Which is a great system that's small, fanless, and cheap ). FreeBSD 4.7 has worked well on this hardware with a few exceptions. Currently I'm experiencing a critical problem that leaves my computer unusable after just an hour or so of uptime. There appears to a problem with hard disk writes, followed by immediate failure of my USB keyboard to work. Here's what the logs report: ### Dec 18 18:53:14 asana /kernel: ad1: WRITE command timeout tag=0 serv=0 - resetting Dec 18 18:53:49 asana /kernel: ata0: resetting devices .. done Dec 18 18:53:49 asana /kernel: ad1: WRITE command timeout tag=0 serv=0 - resetting Dec 18 18:53:49 asana /kernel: ata0: resetting devices .. done Dec 18 18:53:49 asana /kernel: ad1: WRITE command timeout tag=0 serv=0 - resetting Dec 18 18:53:49 asana /kernel: ata0: resetting devices .. done Dec 18 18:53:49 asana /kernel: ad1: WRITE command timeout tag=0 serv=0 - resetting Dec 18 18:53:49 asana /kernel: ad1: timeout waiting for cmd=ef s=d0 e=00 Dec 18 18:53:49 asana /kernel: ad1: trying fallback to PIO mode Dec 18 18:53:49 asana /kernel: ata0: resetting devices .. done Dec 18 18:56:21 asana /kernel: uhub1: at uhub0 port 2 (addr 2) disconnected Dec 18 18:56:21 asana /kernel: ukbd0: detached Dec 18 18:56:31 asana /kernel: uhub1: detached Dec 18 18:58:45 asana /kernel: uhub0: port error, restarting port 2 Dec 18 18:59:06 asana /kernel: uhub0: device problem, disabling port 1 ### What's happening with the USB related entries there is that I have un-plugged and re-plugged the keyboard, but it won't recognize it at this point. My "dmesg" output is attached for full system details. Here are some additional notes: - The drive is brand new, attached with new 80 wire IDE cables. - I've been trying to get APM to work, specifically get the hard drive to spin down. I never got that to work, and eventually tried disabling APM in kernel.conf and rc.conf. Either way, these desk errors still happen. I suspect that the APM workings of FreeBSD and/or the BIOS could be related. - My USB keyboard (the "Happy Hacking" keyboard), has exhibited other weird behavior before. At least once, some weird characters were ghost-typed into the terminal window I was working in, and then the computer rebooted with a kernel panic. Another time, the keyboard registered the same key press over and over, even though the key wasn't being pressed. I use the exact same model on a Mac at work without problems. - My computer dual-boots into Linux from the same drive. I have now been using Linux for a couple of days without any problems with disk writes, or the USB keyboard. Considering this, along with the drive and hardware being new, I strongly suspect that the issue is with FreeBSD's interaction with the hardware and not the hardeware itself. I asked around on the "-hardware" list first and didn't get a response. I could upgrade the system to -CURRENT if that might help. Thanks for any suggestions! Mark http://mark.stosberg.com/ >How-To-Repeat: I have not yet been able to isolate what causes the problem. However, with guidance, I could perhaps turn on some debugging to better illuminate what's happening. >Fix: Here's my "dmesg" output: --- --- Copyright (c) 1991-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-RELEASE #0: Wed Dec 18 19:40:55 EST 2002 root@asana.summersault.com:/usr/src/sys/compile/ASANA_EDEN-2002-12-18 Timecounter "i8254" frequency 1193182 Hz CPU: VIA C3 Samuel 2 (533.36-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x673 Stepping = 3 Features=0x803035 real memory = 260046848 (253952K bytes) config> enable apm avail memory = 249487360 (243640K bytes) Preloaded elf kernel "kernel" at 0xc037e000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc037e09c. Preloaded elf module "snd_via82c686.ko" at 0xc037e0ec. Preloaded elf module "snd_pcm.ko" at 0xc037e194. md0: Malloc disk Using $PIR table, 5 entries at 0xc00fdc70 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 10 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0xd000-0xd00f at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 3 at device 17.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Chicony Generic USB Hub, class 9/0, rev 1.10/1.00, addr 2 uhub1: 1 port with 0 removable, bus powered ukbd0: Chicony PFU-65 USB Keyboard, rev 1.10/1.00, addr 3, iclass 3/1 kbd0 at ukbd0 uhci1: port 0xd800-0xd81f irq 3 at device 17.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered chip1: at device 17.4 on pci0 pcm0: port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 5 at device 17.5 on pci0 vr0: port 0xe800-0xe8ff mem 0xe4001000-0xe40010ff irq 10 at device 18.0 on pci0 vr0: Ethernet address: 00:40:63:c1:1a:5f miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xec00-0xec7f mem 0xe4000000-0xe400007f irq 11 at device 20.0 on pci0 xl0: Ethernet address: 00:01:02:bd:77:24 miibus1: on xl0 xlphy0: <3Com internal media interface> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: