* [PATCH] sata_sil: ignore and clear spurious IRQs while executing commands by polling
@ 2007-02-24 13:30 Tejun Heo
2007-02-25 1:52 ` Jeff Garzik
2007-03-07 1:30 ` patch sata_sil-ignore-and-clear-spurious-irqs-while-executing-commands-by-polling.patch queued to -stable tree gregkh
0 siblings, 2 replies; 3+ messages in thread
From: Tejun Heo @ 2007-02-24 13:30 UTC (permalink / raw)
To: Jeff Garzik, linux-ide; +Cc: stable
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;
+ }
+
/* Check whether we are expecting interrupt in this state */
switch (ap->hsm_task_state) {
case HSM_ST_FIRST:
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sata_sil: ignore and clear spurious IRQs while executing commands by polling
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
2007-03-07 1:30 ` patch sata_sil-ignore-and-clear-spurious-irqs-while-executing-commands-by-polling.patch queued to -stable tree gregkh
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2007-02-25 1:52 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide, stable
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* patch sata_sil-ignore-and-clear-spurious-irqs-while-executing-commands-by-polling.patch queued to -stable tree
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
@ 2007-03-07 1:30 ` gregkh
1 sibling, 0 replies; 3+ messages in thread
From: gregkh @ 2007-03-07 1:30 UTC (permalink / raw)
To: htejun, gregkh, jeff, linux-ide; +Cc: stable
This is a note to let you know that we have just queued up the patch titled
Subject: sata_sil: ignore and clear spurious IRQs while executing commands by polling
to the 2.6.20-stable tree. Its filename is
sata_sil-ignore-and-clear-spurious-irqs-while-executing-commands-by-polling.patch
A git repo of this tree can be found at
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>From stable-bounces@linux.kernel.org Sat Feb 24 05:32:07 2007
From: Tejun Heo <htejun@gmail.com>
Date: Sat, 24 Feb 2007 22:30:36 +0900
Subject: sata_sil: ignore and clear spurious IRQs while executing commands by polling
To: Jeff Garzik <jeff@garzik.org>, <linux-ide@vger.kernel.org>
Cc: stable@kernel.org
Message-ID: <20070224133036.GB20322@htj.dyndns.org>
Content-Disposition: inline
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.
This fixes bug#7996 and IMHO should also be included in -stable.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- 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;
+ }
+
/* Check whether we are expecting interrupt in this state */
switch (ap->hsm_task_state) {
case HSM_ST_FIRST:
_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable
Patches currently in stable-queue which might be from htejun@gmail.com are
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-07 1:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-03-07 1:30 ` patch sata_sil-ignore-and-clear-spurious-irqs-while-executing-commands-by-polling.patch queued to -stable tree gregkh
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).