linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Tejun Heo <tj@kernel.org>, Ben Hutchings <ben@decadent.org.uk>,
	Jeff Garzik <jgarzik@redhat.com>,
	IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: libata: implement on-demand HPA unlocking
Date: Wed, 09 Feb 2011 16:28:24 -0500	[thread overview]
Message-ID: <4D5306F8.6050106@cfl.rr.com> (raw)
In-Reply-To: <20110209211351.3d7eff85@lxorguk.ukuu.org.uk>

On 2/9/2011 4:13 PM, Alan Cox wrote:
> Correct. The vendors however primarily used it for completely different
> things. Also trusting the BIOS is generally not a good idea.

I disagree.  Trusting the bios /generally/ is exactly what you should
do.  When it is known to be broken in specific cases, then sure, over
ride it, but /generally/ you should assume it knows what it's talking about.

>> ubuntu forums and bug tracker each year of people with HPA problems and
>> it always seems to be a small area, as opposed to hiding everything
>> above 128 MB or something.
> 
> Possibly because we unlock them in the distro cases.

I meant that the reports I have seen show the kernel prints listing the
size before and after the unlock, and they are always very close.

> So the best option from a kernel point of view appears to be to unlock
> the drive but to remember and enable user space to retrieve the
> parameters.
> 
> In essence "what geometry do I care about" is policy for application code
> like dmraid, and it can be better refined there. However we can't refine
> it there if we don't unlock.

That assumes that the bios is reserving the HPA for no good reason at
all and it is safe to ignore it.  This does not seem to be a good
assumption based on both the ATA spec and the behavior of Windows.  At
any rate, the decision to NOT unlock by default seems to have been made
years ago when libata was written, and certain distributions decided to
risk breaking compatibility with hardware that runs Windows just fine in
favor of not breaking upgrades from systems installed with the old ide
driver that did default to unlocking.

The discussion at hand is about a change made a few months ago that is a
good compromise between always unlocking, and never unlocking.  Both of
those have problems, so a good compromise can have the benefits of both,
and the drawbacks of neither.  Furthermore, it is already in the kernel,
so continuing to argue about whether it should have been done or not
seems a moot point.

  reply	other threads:[~2011-02-09 21:28 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 20:23 libata: implement on-demand HPA unlocking Phillip Susi
2011-02-09  8:59 ` Tejun Heo
2011-02-09 15:20   ` Phillip Susi
2011-02-09 15:37     ` Alan Cox
2011-02-09 15:36       ` Tejun Heo
2011-02-09 18:48         ` Jeff Garzik
2011-02-09 19:45           ` Phillip Susi
2011-02-10  9:44             ` Tejun Heo
2011-02-10 18:47               ` Phillip Susi
2011-02-10 19:07                 ` Tejun Heo
2011-02-09 19:39         ` Phillip Susi
2011-02-09 19:36       ` Phillip Susi
2011-02-09 20:47         ` Greg Freemyer
2011-02-09 21:12           ` Phillip Susi
2011-02-09 21:13         ` Alan Cox
2011-02-09 21:28           ` Phillip Susi [this message]
2011-02-09 21:39             ` Alan Cox
2011-02-10  0:23               ` Phillip Susi
2011-02-10 12:46                 ` Alan Cox
2011-02-10 18:58                   ` Phillip Susi
2011-02-10 19:19                     ` Tejun Heo
2011-02-11 18:16                       ` Phillip Susi
2011-02-10 12:49                 ` Bartlomiej Zolnierkiewicz
2011-02-10 19:20                   ` Phillip Susi
2011-02-10 19:35                     ` Alan Cox
2011-02-11 18:22                       ` Phillip Susi
2011-02-10 19:37                     ` Alan Cox
2011-02-09 21:41         ` Tejun Heo
2011-02-10  0:35           ` Phillip Susi
2011-02-10  1:46             ` Robert Hancock
2011-02-10  9:13               ` Tejun Heo
2011-02-10 19:11                 ` Phillip Susi
2011-02-10 19:31                   ` Alan Cox
2011-02-11 18:18                     ` Phillip Susi
2011-02-11 18:25                       ` Alan Cox
2011-02-11 18:38                         ` Phillip Susi
2011-02-10 19:32                   ` Tejun Heo
2011-02-10 19:34                     ` Tejun Heo
2011-02-11 18:30                     ` Phillip Susi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D5306F8.6050106@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=ben@decadent.org.uk \
    --cc=jgarzik@redhat.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).