Re: Seagate SATA 3GB/s drive connected to via vt8251 using ahci module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can you apply the following patch and report back what the kernel
says?  The following might generate quite a bit of log messages, but
if your boot drive doesn't generate spurious interrupts, it should be
bearable.

diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
index e261b37..be3ee0d 100644
--- a/drivers/scsi/ahci.c
+++ b/drivers/scsi/ahci.c
@@ -909,25 +909,18 @@ static void ahci_host_intr(struct ata_po
 	}
 
 	/* hmmm... a spurious interupt */
+	ata_port_printk(ap, KERN_INFO, "spurious interrupt "
+			"(irq_stat 0x%x active_tag %x sactive 0x%x)\n",
+			status, ap->active_tag, ap->sactive);
 
-	/* some devices send D2H reg with I bit set during NCQ command phase */
-	if (ap->sactive && status & PORT_IRQ_D2H_REG_FIS)
-		return;
-
-	/* ignore interim PIO setup fis interrupts */
-	if (ata_tag_valid(ap->active_tag)) {
-		struct ata_queued_cmd *qc =
-			ata_qc_from_tag(ap, ap->active_tag);
+	if (status & PORT_IRQ_SDB_FIS) {
+		struct ahci_port_priv *pp = ap->private_data;
+		u32 *sdb_fis = pp->rx_fis + 0x58;
 
-		if (qc && qc->tf.protocol == ATA_PROT_PIO &&
-		    (status & PORT_IRQ_PIOS_FIS))
-			return;
+		ata_port_printk(ap, KERN_INFO, "spurious SDB FIS "
+				"%08x:%08x ap->qc_active=%08x qc_active=%08x\n",
+				sdb_fis[0], sdb_fis[1], ap->qc_active, qc_active);
 	}
-
-	if (ata_ratelimit())
-		ata_port_printk(ap, KERN_INFO, "spurious interrupt "
-				"(irq_stat 0x%x active_tag %d sactive 0x%x)\n",
-				status, ap->active_tag, ap->sactive);
 }
 
 static void ahci_irq_clear(struct ata_port *ap)
-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux