From owner-freebsd-current@FreeBSD.ORG Tue Aug 3 11:54:13 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C88AE16A4CE for ; Tue, 3 Aug 2004 11:54:13 +0000 (GMT) Received: from av1-1-sn4.m-sp.skanova.net (av1-1-sn4.m-sp.skanova.net [81.228.10.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6229C43D46 for ; Tue, 3 Aug 2004 11:54:13 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: by av1-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id 3DDFC38030; Tue, 3 Aug 2004 13:54:12 +0200 (CEST) Received: from smtp2-2-sn4.m-sp.skanova.net (smtp2-2-sn4.m-sp.skanova.net [81.228.10.182]) by av1-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 2EE3237E5F; Tue, 3 Aug 2004 13:54:12 +0200 (CEST) Received: from gadget (h130n1fls11o822.telia.com [213.64.66.130]) by smtp2-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 01CD337E49; Tue, 3 Aug 2004 13:54:11 +0200 (CEST) From: "Daniel Eriksson" To: "'Ville-Pertti Keinonen'" , Date: Tue, 3 Aug 2004 13:54:22 +0200 Organization: Home Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: <410E74F7.1070000@will.iki.fi> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: RE: ATA driver races with interrupts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 11:54:13 -0000 Ville-Pertti Keinonen wrote: > Partitions from ad10 and ad12 were mounted on /sata1 and /sata2,=20 > respectively, both containing tens of gigabytes of files. >=20 > By issuing >=20 > $ find /sata1 -type f -exec md5 '{}' \; & find /sata2 -type f=20 > -exec md5=20 > '{}' \; & >=20 > the system would lock up or detach one of the disks in less=20 > than 5 seconds. >=20 > With the attached version of my patch, it completed successfully. My system also survives the stress-test after applying the patch, but it fails to fix all of my problems. One way for me to reliably mess my system up is to install /usr/ports/sysutils/smartmontools and then try to enable SMART on both = the SATA discs (smartctl -s on /dev/ad20 && smartctl -s on /dev/ad22). This results in the first channel totally locking up, to the point where not = even a reboot unlocks it (BIOS hangs, or if the SATA BIOS is turned off then FreeBSD hangs when detecting the channel on the controller). Trying to access the disc results in the process hanging indefinately without = error message and with no way to kill it. The above problem is the same with or without your patch. However, = without your patch I usually get an interrupt storm, followed by a detached disc = and then a channel lockup. With your patch I get no storm and the disc is = not detached (but the channel still locks up hard). I'm not sure if this is a hardware problem or not. I've tried switching channels for the two discs (one Maxtor, one Western Digital), but it = seems it is always the first channel that locks up. That seems to indicate = that it's not a disc problem. It could still be a problem with the = motherboard. Unfortunately I don't know how to proceed with troubleshooting this. /Daniel Eriksson