From: Tejun Heo <tj@kernel.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Hans Werner <hwerner4@gmx.de>,
Sergei Shtylyov <sshtylyov@ru.mvista.com>
Subject: Re: [PATCH #upstream 2/2] libata: implement spurious irq handling for SFF and apply it to piix
Date: Fri, 22 Jan 2010 09:36:36 +0900 [thread overview]
Message-ID: <4B58F314.9070606@kernel.org> (raw)
In-Reply-To: <4B588664.4040602@garzik.org>
On 01/22/2010 01:52 AM, Jeff Garzik wrote:
>> Hmmm... I was a bit worried about the case Alan mentioned several
>> times where access to AltStatus while data transfer is going on can
>> lead to silent data corruption.
>
> If a drive is in Bus-Idle, as I mentioned, then there is no active data
> transfer.
Oh, you meant reading status instead of altstatus?
>> Does this happen often? What I find more common is just plain
>> timeouts, so I think it would improve our exception latency if we
>> apply different timeouts for each trial. ie. For the first RW try,
>> set the timeout to 7 secs. For the second, 15 and then to 30. This
>> wouldn't harm the correctness while allowing libata to react much
>> faster to transient failures.
>
> Lost interrupts do not happen often, but they do happen. Google finds
> plenty of examples.
Yeap, but genuine timeouts seem to happen more commonly and shortening
initial timeout would also work for non-SFF controllers, so I think
it would be better to do that instead.
>> Another thing is I can think of which can improve our robustness is
>> dynamic irqpoll support such that when screaming IRQ happens, IRQ
>> subsystem not only shuts down the IRQ line but also begins selectively
>> irqpolling it.
>
> Does this ever happen when data transfer is active? AFAIK this happens
> during probe or reset or set-xfer or bus-idle or some other auxiliary
> moment in time.
It usually does but there are other components too. A USB host in my
x61s often causes IRQ storm after STR cycle. There also was a strange
I2C device which shared IRQ line with ATA controller and killed the
IRQ line when the system status changed. It's just that with
shareable IRQs, there's no reason the kernel should be this
vulnereable to these not-so-uncommon failure modes.
Thanks.
--
tejun
next prev parent reply other threads:[~2010-01-22 0:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 1:46 [PATCH #upstream 1/2] libata: cleanup ata_sff_interrupt() Tejun Heo
2010-01-19 1:49 ` [PATCH #upstream 2/2] libata: implement spurious irq handling for SFF and apply it to piix Tejun Heo
2010-01-20 19:33 ` Jeff Garzik
2010-01-20 23:45 ` Tejun Heo
2010-01-21 12:14 ` Alan Cox
2010-01-21 16:52 ` Jeff Garzik
2010-01-22 0:36 ` Tejun Heo [this message]
2010-01-20 19:29 ` [PATCH #upstream 1/2] libata: cleanup ata_sff_interrupt() Jeff Garzik
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=4B58F314.9070606@kernel.org \
--to=tj@kernel.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=hwerner4@gmx.de \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
/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).