public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: Ben Collins <ben.collins@ubuntu.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Cleanup libata HPA support
Date: Wed, 09 May 2007 17:27:05 -0600	[thread overview]
Message-ID: <464258C9.7040405@shaw.ca> (raw)
In-Reply-To: <1178692170.6962.146.camel@cunning>

Ben Collins wrote:
> On Tue, 2007-05-08 at 08:46 -0600, Robert Hancock wrote:
>> Ben Collins wrote:
>>> The original HPA patch that Kyle worked on has gone into current git
>>> without some fixes that we worked through late in the Ubuntu feisty
>>> release. Here's the main copy of the notes I sent to Alan a few weeks
>>> ago in regards to the original patch, and a repatch against current git
>>> to fix things up. Note we have released feisty with the patch attached
>>> (albeit we have HPA enabled by default), and we have not had any reports
>>> directly attributed to it. However, in gutsy (devel for next release,
>>> based on current stock linux-2.6.git), we are already seeing reports of
>>> the same issues we already fixed. 
>>>
>>> The issues we saw were mainly that some controllers didn't return the
>>> correct size from the SET_MAX command (sata_nv is a good example). So I
>>> added a re IDENTIFY after the SET_MAX, and compared all the numbers. If
>>> re-id was correct, but return value from SET_MAX wasn't we print a
>>> warning and use the IDENTIFY value regardless (since that's what the
>>> device is going to use).
>>>
>>> Because we re IDENTIFY, there was also no need to keep n_sectors_boot
>>> around, so that was removed. The ata_hpa_resize() was changed to handle
>>> everything in a single call (checks for HPA support of the device, and
>>> whether ignore_hpa is set or not), and it also sets dev->n_sectors
>>> before returning.
>>>
>>> So far with this patch, we were able to fix all the problems we were
>>> seeing with it (except the sata_nv issue where we had to revert to not
>>> using adma for NO_DATA transactions, already reported to libata-dev).
>>> We've not had any reports of further problems.
>> That sata_nv issue should not be present anymore in the current 
>> libata-dev tree.
> 
> That's correct, it is not, at least the machine exception problem isn't.
> However, the incorrect returns from SET_MAX are still an issue with that
> hw. No idea what is causing it.

Curious.. Do you have some output or other details from what was 
actually returned? Also was this on more than one drive model?

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


  reply	other threads:[~2007-05-09 23:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.7iNoP7Qs8RAGjCdw2nQZBKOCxZU@ifi.uio.no>
2007-05-08 14:46 ` [PATCH] Cleanup libata HPA support Robert Hancock
2007-05-09  6:29   ` Ben Collins
2007-05-09 23:27     ` Robert Hancock [this message]
2007-05-10  6:36       ` Ben Collins
2007-05-08 10:59 Ben Collins
2007-05-08 13:44 ` Mark Lord
2007-05-08 14:43   ` Ben Collins

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=464258C9.7040405@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=ben.collins@ubuntu.com \
    --cc=linux-kernel@vger.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