Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NULlt-0004ca-QE for mharc-grub-devel@gnu.org; Mon, 11 Jan 2010 10:01:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NULlr-0004bb-Fz for grub-devel@gnu.org; Mon, 11 Jan 2010 10:01:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NULln-0004Yi-Vt for grub-devel@gnu.org; Mon, 11 Jan 2010 10:01:31 -0500 Received: from [199.232.76.173] (port=49054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NULln-0004Ya-Mb for grub-devel@gnu.org; Mon, 11 Jan 2010 10:01:27 -0500 Received: from mailout11.t-online.de ([194.25.134.85]:54133) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NULlm-0005wH-O5 for grub-devel@gnu.org; Mon, 11 Jan 2010 10:01:26 -0500 Received: from fwd04.aul.t-online.de by mailout11.t-online.de with smtp id 1NULli-0008Rs-00; Mon, 11 Jan 2010 16:01:22 +0100 Received: from [10.3.2.2] (VgkUwTZBYhGunUg4s4d2UTbiS+FrIpNuq5e2TlXtUna3hbDnuQNxcVuY6HSukAXgqe@[217.235.214.112]) by fwd04.aul.t-online.de with esmtp id 1NULlO-0n79bE0; Mon, 11 Jan 2010 16:01:02 +0100 Message-ID: <4B4B3D2E.2080406@t-online.de> Date: Mon, 11 Jan 2010 16:01:02 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091017 SeaMonkey/2.0 MIME-Version: 1.0 To: The development of GNU GRUB References: <4116f8730912081527x68a1b08fna00a51c761814e46@mail.gmail.com> <1NILU5-1tskuO0@fwd04.aul.t-online.de> <4116f8730912271724s71cb7b6cpe0be558cdd6abe71@mail.gmail.com> In-Reply-To: <4116f8730912271724s71cb7b6cpe0be558cdd6abe71@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: VgkUwTZBYhGunUg4s4d2UTbiS+FrIpNuq5e2TlXtUna3hbDnuQNxcVuY6HSukAXgqe X-TOI-MSGID: c81d1d1e-3bf1-41cf-87bb-8245b8b3da40 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Request: hdparm module with -X X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 15:01:31 -0000 Nando wrote: > It's great to have hdparm output added. Another fixup that would be > needed would be setting the ATAPI cable mode to be 80pin, rather than > the slower 40pin. Users who add hard drives in place of PATA optical > drives are liked affected. Eg: > > http://forum.notebookreview.com/showthread.php?p=5519419 (HP 2510P / > optical drive caddy) > http://www.gottabemobile.com/forum/forum_posts.asp?TID=8260&PID=55271 > (Dell > XT / not sure why) > > Comments/suggestions? > AFAICS this is not possible: Cable detection can be done either by host sensing the PDIAG:CBLID signal, by relying on sensing info from the device, or a combination of both. This is rather complex such that false results may be not unlikely. The device reports the state of PDIAG:CBLID in IDENTIFY word 93. The original Linux hdparm prints this info as: "HW reset results: CBLID- above/below Vih". (I will add this to GRUB hdparm). There is no standard ATA command to change what the device reports in word 93. The host OS driver may or may not use this info from the device to detect cable type. Reference: T13/1532D Vol 2 Rev 4b (ATA-7 Parallel Transport) section 8.2.11 and annex D. Christian