Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2010 09:46:55 -0800
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Pierre Beyssac <pb@freebsd.org>
Cc:        mav@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: 8-STABLE interrupt storm on atapci(?), Dell Inspiron 580
Message-ID:  <20100312174655.GG16314@michelle.cdnetworks.com>
In-Reply-To: <20100312121409.GA79294@fasterix.frmug.org>
References:  <20100312121409.GA79294@fasterix.frmug.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Mar 12, 2010 at 01:14:09PM +0100, Pierre Beyssac wrote:
> Hello,
> 
> I'm having "interrupt storm detected" messages on a Dell Inspiron
> 580 running up-to-date 8-STABLE (amd64 arch). The interrupts seem
> to come from one of the atapci controllers, apparently atapci0 (main
> controller, with a SATA disk and an ATAPI optical drive).
> 
> ata_interrupt gets called at a variable rate, between 1000-150000
> times per second, constantly, even when the disk is not used.
> 
> >From adding debug sysctl code in ata-all.c:ata_interrupt_locked()
> I have been able to check that:
> 	ch->running is NULL (breaks loop in "do we have a running request")
> 	ch->state=0
> 	ch->unit=0 ch->devices=1 (ATA_ATA_MASTER) most of the time.
> 
> Here's attached dmesg output, pciconf -lv output, kernel configuration
> and vmstat -i output. A -current kernel exhibits the same behaviour.
> 
> Any hint/idea how to debug this further would be really appreciated...
> -- 
> Pierre Beyssac	      	    		pb@fasterix.frmug.org

[...]


> bge0: <Broadcom BCM57780 A1, ASIC rev. 0x57780001> mem 0xfbff0000-0xfbffffff irq 17 at device 0.0 on pci3
> bge0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xfbff0000
> bge0: adjust device control 0x2000 -> 0x5000
> bge0: attempting to allocate 1 MSI vectors (1 supported)
> msi: routing MSI IRQ 256 to local APIC 0 vector 50
> bge0: using IRQ 256 for MSI
> bge0: CHIP ID 0x57780001; ASIC REV 0x57780; CHIP REV 0x577800; PCI-E
> bge0: Disabling fastboot
> bge0: Disabling fastboot
> miibus0: <MII bus> on bge0
> ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
> ukphy0: OUI 0x00d897, model 0x0019, rev. 1
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is not related with your interrupt storm issue but something
is wrong here. I think brgphy(4) should be used for bge(4). Have no
idea why the OUI has a different value.
Would you try attached patch and let me know whether brgphy(4)
get attached to the PHY?

> ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
> bge0: bpf attached
> bge0: Ethernet address: 00:25:64:f4:27:26
> bge0: [MPSAFE]
> bge0: [FILTER]

[...]


--/04w6evG8XlLl3ft
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="BCM57780.diff"

Index: sys/dev/mii/miidevs
===================================================================
--- sys/dev/mii/miidevs	(revision 205052)
+++ sys/dev/mii/miidevs	(working copy)
@@ -81,6 +81,7 @@
 oui xxALTIMA			0x000895	Altima Communications
 oui xxBROADCOM			0x000818	Broadcom Corporation
 oui xxBROADCOM_ALT1		0x0050ef	Broadcom Corporation
+oui xxBROADCOM_ALT2		0x00d897	Broadcom Corporation
 oui xxICS			0x00057d	Integrated Circuit Systems
 oui xxSEEQ			0x0005be	Seeq
 oui xxSIS			0x000760	Silicon Integrated Systems
@@ -150,6 +151,7 @@
 model xxBROADCOM_ALT1 BCM5784	0x003a BCM5784 10/100/1000baseTX PHY
 model xxBROADCOM_ALT1 BCM5709C	0x003c BCM5709C 10/100/1000baseTX PHY
 model xxBROADCOM_ALT1 BCM5761	0x003d BCM5761 10/100/1000baseTX PHY
+model xxBROADCOM_ALT2 BCM57780	0x0019 BCM57780 10/100/1000baseTX PHY
 model BROADCOM2 BCM5906		0x0004 BCM5906 10/100baseTX PHY
 
 /* Cicada Semiconductor PHYs (now owned by Vitesse?) */
Index: sys/dev/mii/brgphy.c
===================================================================
--- sys/dev/mii/brgphy.c	(revision 205052)
+++ sys/dev/mii/brgphy.c	(working copy)
@@ -139,6 +139,7 @@
 	MII_PHY_DESC(xxBROADCOM_ALT1, BCM5784),
 	MII_PHY_DESC(xxBROADCOM_ALT1, BCM5709C),
 	MII_PHY_DESC(xxBROADCOM_ALT1, BCM5761),
+	MII_PHY_DESC(xxBROADCOM_ALT2, BCM57780),
 	MII_PHY_DESC(BROADCOM2, BCM5906),
 	MII_PHY_END
 };

--/04w6evG8XlLl3ft--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100312174655.GG16314>