Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761830AbXEULLO (ORCPT ); Mon, 21 May 2007 07:11:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755963AbXEULK6 (ORCPT ); Mon, 21 May 2007 07:10:58 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:60058 "EHLO the-village.bc.nu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754508AbXEULK5 (ORCPT ); Mon, 21 May 2007 07:10:57 -0400 Date: Mon, 21 May 2007 12:15:37 +0100 From: Alan Cox To: Tejun Heo Cc: Robert Hancock , linux-kernel , ide , l.genoni@oltrelinux.com Subject: Re: something strange in libata-core.c for kernel 2.6.22-rc3 Message-ID: <20070521121537.48dd2b2c@the-village.bc.nu> In-Reply-To: <465161AF.6030002@gmail.com> References: <46515983.6030206@shaw.ca> <465161AF.6030002@gmail.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1163 Lines: 26 > Yeah, that's consistent to what I've seen on my machine which is a > variant of A8N. No matter what value I through at _STM, _GTM just > echoed the result thus always leading to 80c configuration. > > > I guess this means that what we have to do is trust that the BIOS set up > > a reasonable mode and base the cable detect on that (either by reading > > back the boot-up controller registers, or by calling GTM). I imagine > > this is what the Windows default IDE driver is doing (just using the > > boot-up mode and feeding it back using GTM/STM on suspend/resume cycles). > > Alan, what do you think? Interesting, sounds like it is still useful rather than just reading the registers as the GTM/STM seem to survive resume cycles which drive config may not (eg if the driver is loaded after a s2ram/resume. If it just echoes back we should also be able to detect this by using knowingly invalid values. Alan - 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/