linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
	linux-ide@vger.kernel.org, Mark Lord <liml@rtr.ca>
Subject: Re: [PATCH 5/13] ide: add IDE_HFLAG_ERROR_STOPS_FIFO host flag
Date: Sat, 08 Sep 2007 11:15:52 -0400	[thread overview]
Message-ID: <46E2BCA8.30402@garzik.org> (raw)
In-Reply-To: <20070908161755.10902b54@the-village.bc.nu>

Alan Cox wrote:
> On Thu, 6 Sep 2007 04:13:56 -0400
> Jeff Garzik <jeff@garzik.org> wrote:
> 
>> On Wed, Sep 05, 2007 at 11:52:57PM +0200, Bartlomiej Zolnierkiewicz wrote:
>>> Add IDE_HFLAG_ERROR_STOPS_FIFO host flag and use it instead
>>> of hwif->err_stops_fifo.  As a side-effect this change fixes
>>> hwif->err_stops_fifo not being restored by ide_hwif_restore().
>>>
>>> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>>> ---
>>>  drivers/ide/ide-io.c           |    3 ++-
>>>  drivers/ide/pci/pdc202xx_new.c |    3 +--
>>>  drivers/ide/pci/pdc202xx_old.c |    8 ++++----
>>>  include/linux/ide.h            |    3 ++-
>>>  4 files changed, 9 insertions(+), 8 deletions(-)
>> Hum, I wonder if libata needs something like this.
> 
> You'd have to add the drain data on error hack first, right now we will
> reset in that case (which for one or two devices has another problem in
> that it won't clear a stuck FIFO)

Nod.  There was nothing ever wrong with Mark's drain patch, I just never 
saw a solid justification for it outside of root 
accidentally/intentionally misprogramming things -- a situation whereall 
sorts of lockups and hangs and explosions can occur, even with the 
fifo-drain change.  We could fill the kernel with code protecting root 
from himself.

But I was thinking for ATAPI it would be useful to report how much data 
was drained from the FIFO, for improved diagnostics.  And if there are 
other conditions that imply draining would be useful, by all means lets 
merge it.

	Jeff




  reply	other threads:[~2007-09-08 15:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 21:52 [PATCH 5/13] ide: add IDE_HFLAG_ERROR_STOPS_FIFO host flag Bartlomiej Zolnierkiewicz
2007-09-06  8:13 ` Jeff Garzik
2007-09-08 15:17   ` Alan Cox
2007-09-08 15:15     ` Jeff Garzik [this message]
2007-09-08 15:27       ` Alan Cox
2007-09-08 16:42         ` Jeff Garzik
2007-09-08 18:38           ` Alan Cox

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=46E2BCA8.30402@garzik.org \
    --to=jeff@garzik.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=bzolnier@gmail.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).