From owner-freebsd-current@FreeBSD.ORG Wed Apr 25 09:11:28 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C12C16A408 for ; Wed, 25 Apr 2007 09:11:28 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.freenix.fr (keltia.freenix.org [82.230.37.243]) by mx1.freebsd.org (Postfix) with ESMTP id C7D3813C457 for ; Wed, 25 Apr 2007 09:11:27 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from localhost (localhost [127.0.0.1]) by keltia.freenix.fr (Postfix/TLS) with ESMTP id 4113C39378; Wed, 25 Apr 2007 11:11:26 +0200 (CEST) Received: from keltia.freenix.fr ([127.0.0.1]) by localhost (keltia.freenix.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29641-04; Wed, 25 Apr 2007 11:11:25 +0200 (CEST) Received: by keltia.freenix.fr (Postfix/TLS, from userid 101) id BDE7D39375; Wed, 25 Apr 2007 11:11:25 +0200 (CEST) Date: Wed, 25 Apr 2007 11:11:25 +0200 From: Ollivier Robert To: freebsd-current@freebsd.org, Daniel O'Connor Message-ID: <20070425091125.GA29642@keltia.freenix.fr> References: <20070424051420.GA84831@mero.morphisms.net> <200704241942.40874.doconnor@gsoft.com.au> <462DEB4A.6050700@freebsd.org> <200704242205.06243.doconnor@gsoft.com.au> <20070425071329.GC73385@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070425071329.GC73385@funkthat.com> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 6.2 / Dell D820 SMP User-Agent: Mutt/1.5.14 (2007-02-12) X-Virus-Scanned: amavisd-new at keltia.freenix.fr Cc: Subject: Re: ATA FLUSHCACHE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 25 Apr 2007 09:11:28 -0000 According to John-Mark Gurney: > >From the ATA spec: > If there is data in the write cache, that data shall be written to the > media. The BSY bit shall remain set to one until all data has been > successfully written or an error occurs. > NOTE -- This command may take longer than 30 s to complete. > > So, if I read the timeout correctly as 1 second, that's woefully short.. Default for all commands except FLUSHCACHE seems to be 5s with 2 retries. FLUSHCACHE is timeout is 1s w/o retries at all in ata-disk.c. As I said, allowing one retry makes it running longer it still panics. It panics inside UMA only if the FLUSHCACHE timeout occurs on both disks at the same time, I've not been able to track it back and I don't have my Macintel today with me. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr Darwin sidhe.keltia.net Kernel Version 8.8.2: Thu Sep 28 20:43:26 PDT 2006 i386