From owner-freebsd-current@FreeBSD.ORG Thu Aug 6 19:57:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2B4C106564A for ; Thu, 6 Aug 2009 19:57:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 570738FC1A for ; Thu, 6 Aug 2009 19:57:34 +0000 (UTC) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 250895061; Thu, 06 Aug 2009 22:57:32 +0300 Message-ID: <4A7B357C.5010203@FreeBSD.org> Date: Thu, 06 Aug 2009 22:56:44 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.21 (X11/20090405) MIME-Version: 1.0 To: Juergen Lock References: <20090806191848.GA14171@triton.kn-bremen.de> In-Reply-To: <20090806191848.GA14171@triton.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: (es)ata drives may need an explicit spinup command? 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: Thu, 06 Aug 2009 19:57:36 -0000 Juergen Lock wrote: > So I tested esata on a siis pcie card with a 750G Seagate Freeagent Pro > drive and it does work - until the drive falls into powersave mode > after being idle for a little while. :( (I had the drive on 1394 > before on another box where it was able to recover from this condition, > but not on usb or esata - and the drive's 1394 interface died a while > ago and also esata is faster anyway...) > > And now I came across this patch for the linux ata driver: > http://git.kernel.org/?p=linux/kernel/git/jgarzik/libata-dev.git;a=commitdiff;h=169439c2e35f01e7832a9b4fc8a7446980c3d593;hp=1e999736cafdffc374f22eed37b291129ef82e4e > > So my question is, could the same be done in our ata code? > I have a slight :) hope it would help this drive too at least as it > does seem to work on Linux... I am not sure it is related to your case, as you said your drive works for some time after plug. If drive spun-down automatically due to inactivity, it should spin-up automatically also, as OS unable to track that transition. 30 seconds of ATA command timeout should be sufficient for drive to do this. Do you have any other symptoms? -- Alexander Motin