Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758176AbYACEOR (ORCPT ); Wed, 2 Jan 2008 23:14:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754753AbYACEOG (ORCPT ); Wed, 2 Jan 2008 23:14:06 -0500 Received: from rtr.ca ([76.10.145.34]:1180 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754150AbYACEOF (ORCPT ); Wed, 2 Jan 2008 23:14:05 -0500 Message-ID: <477C610A.30805@rtr.ca> Date: Wed, 02 Jan 2008 23:14:02 -0500 From: Mark Lord User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: Robert Hancock Cc: Allen Martin , Jeff Garzik , Tejun Heo , Gabor Gombas , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Kuan Luo , Peer Chen Subject: Re: sata_nv + ADMA + Samsung disk problem References: <20070808120804.GB5257@boogie.lpds.sztaki.hu> <20080101164416.GA29574@boogie.lpds.sztaki.hu> <477B0429.7040909@gmail.com> <477B0CFD.1030603@shaw.ca> <477BDEA5.8040701@garzik.org> <477C2A99.9010208@shaw.ca> In-Reply-To: <477C2A99.9010208@shaw.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 27 Robert Hancock wrote: > > What we're doing to enter legacy mode is essentially: > > -wait until ADMA status indicates IDLE bit set (max wait of 1 microsecond) > -clear GO bit in control register > -wait until status indicates LEGACY bit set (max wait of 1 microsecond) > > and to enter ADMA mode: > > -set GO bit in control register > -wait until status indicates LEGACY bit cleared and IDLE bit set (max > wait of 1 microsecond) .. If there are outstanding TCQ/NCQ commands (any drive), then this could take (much) longer to enter legacy mode, as the ADMA engine will wait for them all to finish. But for normal, "nothing outstanding" mode, it should be very quick. Cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/