From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: linux-ide@vger.kernel.org, stable@kernel.org
Subject: Re: [PATCH] sata_sil: ignore and clear spurious IRQs while executing commands by polling
Date: Sat, 24 Feb 2007 20:52:39 -0500 [thread overview]
Message-ID: <45E0EBE7.2030707@garzik.org> (raw)
In-Reply-To: <20070224133036.GB20322@htj.dyndns.org>
Tejun Heo wrote:
> sata_sil used to trigger HSM error if IRQ occurs during polling
> command. This didn't matter because polling wasn't used in sata_sil.
> However, as of 2.6.20, all IDENTIFYs are performed by polling and
> device detection sometimes fails due to spurious IRQ. This patch
> makes sata_sil ignore and clear spurious IRQ while executing commands
> by polling.
>
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> ---
> This fixes bug#7996 and IMHO should also be included in -stable.
> Thanks.
>
> diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
> index 1487255..aaff357 100644
> --- a/drivers/ata/sata_sil.c
> +++ b/drivers/ata/sata_sil.c
> @@ -386,9 +386,15 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2)
> goto freeze;
> }
>
> - if (unlikely(!qc || qc->tf.ctl & ATA_NIEN))
> + if (unlikely(!qc))
> goto freeze;
>
> + if (unlikely(qc->tf.flags & ATA_TFLAG_POLLING)) {
> + /* this sometimes happens, just clear IRQ */
> + ata_chk_status(ap);
> + return;
applied
next prev parent reply other threads:[~2007-02-25 1:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-24 13:30 [PATCH] sata_sil: ignore and clear spurious IRQs while executing commands by polling Tejun Heo
2007-02-25 1:52 ` Jeff Garzik [this message]
2007-03-07 1:30 ` patch sata_sil-ignore-and-clear-spurious-irqs-while-executing-commands-by-polling.patch queued to -stable tree gregkh
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=45E0EBE7.2030707@garzik.org \
--to=jeff@garzik.org \
--cc=htejun@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=stable@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).