linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [OOPS?] 2.6-test11 : problem about irq18.
@ 2003-12-08 18:48 Jon Burgess
       [not found] ` <3FD5E454.2030404@inp-net.eu.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Burgess @ 2003-12-08 18:48 UTC (permalink / raw)
  To: raphael.rigo; +Cc: linux kernel

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

Raphaël Rigo wrote:

 > Dec 7 18:27:45 pici kernel: Disabling IRQ #18
 >
 > I am using a P4 2.6 Ghz without HT activated
 > 512 MB DDR PC3200 on an ASUS P4P800 Deluxe MB.
 > HardDrive is on SATA (native mode) : Maxtor 6Y120MO.

Sounds like the known problem with an interrupt storm with the ICH5
See "Issue #2" at 
http://www.ussg.iu.edu/hypermail/linux/kernel/0312.0/0597.html

 > 2.4.23 doesn't have this problem but keeps using 30-50% CPU even if I 
do nothing.

Try vmstat, I expect you'll see ~100k IRQ/s

You could try using the ata_piix driver (located amongst the SCSI drivers).

If that still doesn't help, you could try adding the patch attached to 
drivers/scsi/libata-core.c
this should make the ata_piix driver catch the spurious interrupts

    Jon


[-- Attachment #2: libata-spurious2.diff --]
[-- Type: text/plain, Size: 1322 bytes --]

--- libata-core.c-orig	2003-12-07 01:54:19.000000000 +0000
+++ libata-core.c	2003-12-07 16:25:11.961806872 +0000
@@ -2386,6 +2386,37 @@
 }
 
 /**
+ *	ata_chk_spurious_int - Check for spurious interrupts
+ *	@ap: port to which command is being issued
+ *
+ *	Examines the DMA status registers and clears
+ *      unexpected interrupts
+ *
+ *	LOCKING:
+ */
+static inline void ata_chk_spurious_int(struct ata_port *ap) {
+	int host_stat;
+	
+	if (ap->flags & ATA_FLAG_MMIO) {
+		void *mmio = (void *) ap->ioaddr.bmdma_addr;
+		host_stat = readb(mmio + ATA_DMA_STATUS);
+	} else
+		host_stat = inb(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS);
+	
+	if ((host_stat & (ATA_DMA_INTR | ATA_DMA_ERR | ATA_DMA_ACTIVE)) == ATA_DMA_INTR) {
+		if (ap->flags & ATA_FLAG_MMIO) {
+			void *mmio = (void *) ap->ioaddr.bmdma_addr;
+			writeb(host_stat & ~ATA_DMA_ERR, mmio + ATA_DMA_STATUS);
+		} else
+			outb(host_stat & ~ATA_DMA_ERR, ap->ioaddr.bmdma_addr + ATA_DMA_STATUS);
+		
+		DPRINTK("ata%u: Caught spurious interrupt, status 0x%X\n", ap->id, host_stat);
+		udelay(1);
+	}
+}
+
+
+/**
  *	ata_interrupt -
  *	@irq:
  *	@dev_instance:
@@ -2417,6 +2448,7 @@
 			qc = ata_qc_from_tag(ap, ap->active_tag);
 			if (qc && ((qc->flags & ATA_QCFLAG_POLL) == 0))
 				handled += ata_host_intr(ap, qc);
+			ata_chk_spurious_int(ap);
 		}
 	}
 

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [2.6.1-rc2] SATA problem.
@ 2004-01-06 18:08 Raphael Rigo
  0 siblings, 0 replies; 5+ messages in thread
From: Raphael Rigo @ 2004-01-06 18:08 UTC (permalink / raw)
  To: linux-kernel

Hello,
I have a problem related to Serial ATA : i have an Asus P4P800 Deluxe 
motherboard (ICH5) with 2xCD and 1xSATA HD.
I have the SATA HD working correctly but i can't get the CDs to work. If 
I compile both in the kernel I get :
handlers :
(ide_intr+0x0/0x1b4)
(ata_interrupt+0x0/0x1e8)
that is, both libata and old piix driver try to get access on CDs (as 
Jon Burgess kindly explained to me :)).
If I remove the piix then the system boots correctly.
Any idea on how to fix it ?

Another little thing : the HD activity LED is always on...

Raphaël Rigo.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-06 20:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-08 18:48 [OOPS?] 2.6-test11 : problem about irq18 Jon Burgess
     [not found] ` <3FD5E454.2030404@inp-net.eu.org>
     [not found]   ` <3FD60552.5090903@jburgess.uklinux.net>
     [not found]     ` <3FD6094C.5040502@inp-net.eu.org>
     [not found]       ` <3FD60C5D.6010203@jburgess.uklinux.net>
     [not found]         ` <3FD60EC9.8040709@inp-net.eu.org>
     [not found]           ` <3FD614DB.7090207@jburgess.uklinux.net>
     [not found]             ` <3FD61615.30507@inp-net.eu.org>
     [not found]               ` <3FD6197B.1070704@jburgess.uklinux.net>
     [not found]                 ` <3FD62990.80708@inp-net.eu.org>
2004-01-06 18:32                   ` [2.6.1-rc2] SATA problem Jon Burgess
2004-01-06 19:01                     ` Matthias Hentges
2004-01-06 20:06                       ` Raphaël RIGO
2004-01-06 18:08 Raphael Rigo

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).