From: Tejun Heo <tj@kernel.org>
To: Antonio Toma <antonio.toma@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: Regression between 2.6.34 and 2.6.35 ?
Date: Wed, 01 Dec 2010 15:45:52 +0100 [thread overview]
Message-ID: <4CF65FA0.5050903@kernel.org> (raw)
In-Reply-To: <AANLkTi=Xnm8A0gBh9jcijTMdQ-YkajCM47YH07iBVF19@mail.gmail.com>
Hello,
On 11/30/2010 07:53 PM, Antonio Toma wrote:
> here is usual information (interrupts and boot logs) after compiling
> and installing 2.6.36.1
> The issue is still there.
> Please, let me know how to patch for further debugging.
Can you please apply the following patch, see whether the behavior
changes and report the kernel log?
Thanks.
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index d05387d..b8bc453 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -1532,11 +1532,10 @@ static unsigned int __ata_sff_port_intr(struct ata_port *ap,
if (!(qc->dev->flags & ATA_DFLAG_CDB_INTR))
return ata_sff_idle_irq(ap);
break;
- case HSM_ST:
- case HSM_ST_LAST:
- break;
- default:
+ case HSM_ST_IDLE:
return ata_sff_idle_irq(ap);
+ default:
+ break;
}
/* check main status, clearing INTRQ if needed */
@@ -2821,7 +2820,7 @@ unsigned int ata_bmdma_port_intr(struct ata_port *ap, struct ata_queued_cmd *qc)
VPRINTK("ata%u: host_stat 0x%X\n", ap->print_id, host_stat);
/* if it's not our irq... */
- if (!(host_stat & ATA_DMA_INTR))
+ if (!(host_stat & (ATA_DMA_INTR | ATA_DMA_ERR)))
return ata_sff_idle_irq(ap);
/* before we do anything else, clear DMA-Start bit */
@@ -2830,6 +2829,7 @@ unsigned int ata_bmdma_port_intr(struct ata_port *ap, struct ata_queued_cmd *qc)
if (unlikely(host_stat & ATA_DMA_ERR)) {
/* error when transfering data to/from memory */
+ ata_port_printk(ap, KERN_WARNING, "XXX AC_ERR_HOST_BUS\n");
qc->err_mask |= AC_ERR_HOST_BUS;
ap->hsm_task_state = HSM_ST_ERR;
}
next prev parent reply other threads:[~2010-12-01 14:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTi=g4F0mgS-w2jFs0r_PAcEk5bytdyAGP+rWJ-J5@mail.gmail.com>
[not found] ` <4CEFC051.7090800@kernel.org>
[not found] ` <AANLkTi=koJHKvqv6iuvuc-j3HGtSR+YJqaDQmM9JrViO@mail.gmail.com>
2010-11-29 16:01 ` Regression between 2.6.34 and 2.6.35 ? Tejun Heo
2010-11-30 18:53 ` Antonio Toma
2010-12-01 14:45 ` Tejun Heo [this message]
2010-12-02 20:09 ` Antonio Toma
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=4CF65FA0.5050903@kernel.org \
--to=tj@kernel.org \
--cc=antonio.toma@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.