From owner-freebsd-stable@FreeBSD.ORG Fri Mar 12 17:47:01 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EAED106566C; Fri, 12 Mar 2010 17:47:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 78D598FC08; Fri, 12 Mar 2010 17:46:59 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so427052fga.13 for ; Fri, 12 Mar 2010 09:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=5B9dR/1UpT5Prv7lOp0tbpE08c0pK+eC9CH6bt+eWo8=; b=rf+z4M3fZVO29tOgK3aruy9dNXg5kUMvw598sNOuGSa/obnyoqzZN/cdB4rc6iZml1 /Obym/umLzcHsvK570x0fhtGAT9sRrIlcFSZAfow5qelxzZFhu6bqze5aei58+VaGcSq B+bLluKlDOyAx08W7Y63h4Qygf8tNjNo5wg0M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=uas1t9mivSEt3hcNBv/6n2yQPJ49sQ3QeriCCe/GyzeEqXzNxaPHkPbbo+bjv4uf1Z mQS1DoQtJ2DoTXQ+TY3mOLdnFaROEUbk6J+Kf6n03SL5Eig2QmU/XYufyIa6+ZalkttC 8G4Rwv3uvigKkQWsCi2LOCGNmc0DKNvwNgTTw= Received: by 10.87.63.4 with SMTP id q4mr4266034fgk.59.1268416019083; Fri, 12 Mar 2010 09:46:59 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id e11sm1882708fga.1.2010.03.12.09.46.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 09:46:57 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 12 Mar 2010 09:46:55 -0800 From: Pyun YongHyeon Date: Fri, 12 Mar 2010 09:46:55 -0800 To: Pierre Beyssac Message-ID: <20100312174655.GG16314@michelle.cdnetworks.com> References: <20100312121409.GA79294@fasterix.frmug.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <20100312121409.GA79294@fasterix.frmug.org> User-Agent: Mutt/1.4.2.3i Cc: mav@freebsd.org, freebsd-stable@freebsd.org Subject: Re: 8-STABLE interrupt storm on atapci(?), Dell Inspiron 580 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 17:47:01 -0000 --/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: 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: on bge0 > ukphy0: 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--