From owner-freebsd-stable@FreeBSD.ORG Thu Mar 27 09:12:38 2008 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 1F22F106566B for ; Thu, 27 Mar 2008 09:12:38 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id 818E38FC17 for ; Thu, 27 Mar 2008 09:12:37 +0000 (UTC) (envelope-from antik@bsd.ee) Received: by zzz.ee (Postfix, from userid 3019) id 517CE27845F; Thu, 27 Mar 2008 10:54:14 +0200 (EET) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: en ca X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from andrei.demo (adsl215.uninet.ee [194.204.62.215]) by zzz.ee (Postfix) with ESMTP id 5A2FB2783DE; Thu, 27 Mar 2008 10:54:04 +0200 (EET) From: Andrei Kolu To: freebsd-stable@freebsd.org Date: Thu, 27 Mar 2008 10:54:03 +0200 User-Agent: KMail/1.9.7 References: <200803251439.01506.antik@bsd.ee> In-Reply-To: <200803251439.01506.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803271054.03647.antik@bsd.ee> Cc: freebsd-usb@freebsd.org Subject: Re: strange statistics about ohci with systat and top X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2008 09:12:38 -0000 On Tuesday 25 March 2008 14:39:01 Andrei Kolu wrote: > Anyone notice anything strange here? Why ohci (usb) got so huge number of > interrupts? Even if I have no usb devices connected to this box. > > 39.6%Sys =A037.9%Intr =A00.0%User =A00.0%Nice 22.5%Idle > > # systat -vm > > Interrupts > 101k total > 96514 ohci0 ohci > ata0 irq14 > 587 twa0 irq16 > em1 irq25 > 2000 cpu0: time > 2000 cpu1: time > > FreeBSD 7.0-STABLE-200803 #0: Mon Mar 10 18:53:59 UTC 2008 > > That irq problem was detected originally with ps/2 keyboard without any u= sb > device attached (dmesg info here is taken later). And I tried to use usb > flash drive but it was showing up like umass0 storage and was unable to > mount it normally (I can use it on 6.2, 6.3 and 7.0 versions just fine > though). Maybe something is wrong with freebsd kernel udev implementation- > I got twa device (that is 3ware sata raid controller) but my system > recognizes this raid as da0 disk.... > > How can I resolve this problem? By disabling USB in bios? > Board is Tyan S3870 > http://tyan.com/support_download_bios.aspx?model=3DB.GT20B3870 > Latest motherboard bios and and raid controller firmware applied. > > On same motherboard FreeBSD-s version 6.2, 6.3 and 7.0 (32 and 64 bit) ha= ng > during initial boot- only version that worked is latest stable 7. > > -------------------------------------------------------------------------= =2D- >--- # dmesg > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =A0 =A0 =A0 =A0 The Regents of the University of California. All rights r= eserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-STABLE-200803 #0: Mon Mar 10 18:53:59 UTC 2008 > =A0 =A0 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Dual Core AMD Opteron(tm) Processor 270 (1995.01-MHz K8-class CPU) > =A0 Origin =3D "AuthenticAMD" =A0Id =3D 0x20f12 =A0Stepping =3D 2 > =A0 > Features=3D0x178bfbffA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=3D0x1 > =A0 AMD Features=3D0xe2500800 > =A0 AMD Features2=3D0x3 > =A0 Cores per package: 2 > usable memory =3D 2134601728 (2035 MB) > avail memory =A0=3D 2059890688 (1964 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > =A0cpu0 (BSP): APIC ID: =A00 > =A0cpu1 (AP): APIC ID: =A01 > MADT: Forcing active-low polarity and level trigger for SCI > ioapic0 irqs 0-15 on motherboard > ioapic1 irqs 16-31 on motherboard > ioapic2 irqs 32-47 on motherboard > kbd1 at kbdmux0 > ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > acpi0: Sleep Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7ff00000 (3) failed > Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0 > cpu0: on acpi0 > powernow0: on cpu0 > cpu1: on acpi0 > powernow1: on cpu1 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pcib2: at device 13.0 on pci1 > pci2: on pcib2 > 3ware device driver for 9000 series storage controllers, version: > 3.70.05.001 twa0: <3ware 9000 series Storage Controller> port 0xcc00-0xcc= 3f > mem 0xf4000000-0xf5ffffff,0xff3ff000-0xff3fffff irq 16 at device 3.0 on > pci2 twa0: [ITHREAD] > twa0: INFO: (0x15: 0x1300): Controller details:: Model 9550SX-4LP, 4 port= s, > Firmware FE9X 3.08.00.016, BIOS BE9X 3.08.00.004 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 2.1 on pci0 > ata0: on atapci0 > ata0: [ITHREAD] > ata1: on atapci0 > ata1: [ITHREAD] > isab0: at device 2.2 on pci0 > isa0: on isab0 > ohci0: port 0xe000-0xe0ff mem > 0xff6b8000-0xff6b8fff irq 10 at device 3.0 on pci0 > ohci0: [GIANT-LOCKED] > ohci0: [ITHREAD] > usb0: OHCI version 1.0, legacy support > usb0: SMM does not respond, resetting > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: <(0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0 > uhub0: 2 ports with 2 removable, self powered > ohci1: port 0xe400-0xe4ff mem > 0xff6b9000-0xff6b9fff irq 10 at device 3.1 on pci0 > ohci1: [GIANT-LOCKED] > ohci1: [ITHREAD] > usb1: OHCI version 1.0, legacy support > usb1: SMM does not respond, resetting > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: <(0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1 > uhub1: 2 ports with 2 removable, self powered > ehci0: port 0xe800-0xe8ff mem > 0xff6ba000-0xff6bafff irq 10 at device 3.2 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb2: EHCI version 1.0 > usb2: companion controllers, 2 ports each: usb0 usb1 > usb2: on ehci0 > usb2: USB revision 2.0 > uhub2: <(0x1166) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2 > uhub2: 4 ports with 4 removable, self powered > em0: port > 0xdc00-0xdc3f mem 0xff680000-0xff69ffff,0xff660000-0xff67ffff irq 24 at > device 4.0 on pci0 em0: Ethernet address: 00:e0:81:41:3e:5c > em0: [FILTER] > em1: port > 0xd880-0xd8bf mem 0xff620000-0xff63ffff,0xff600000-0xff61ffff irq 25 at > device 5.0 on pci0 em1: Ethernet address: 00:e0:81:41:3e:5d > em1: [FILTER] > vgapci0: port 0xec00-0xec7f mem > 0xf8000000-0xfbffffff,0xff6c0000-0xff6fffff at device 6.0 on pci0 > acpi_button0: on acpi0 > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 sio0: type 16550A > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > sio1: [FILTER] > fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 = on > acpi0 > fdc0: [FILTER] > orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > ppc0: cannot reserve I/O port range > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=3D0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > uhub3: on > uhub0 > uhub3: 4 ports with 4 removable, self powered > ukbd0: on uhub3 > kbd2 at ukbd0 > ums0: on uhub3 > ums0: 5 buttons and Z dir. > Timecounters tick every 1.000 msec > acd0: CDROM at ata0-slave UDMA33 > SMP: AP CPU #1 Launched! > da0 at twa0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-5 device > da0: 100.000MB/s transfers > da0: 572184MB (1171832832 512 byte sectors: 255H 63S/T 72943C) > Trying to mount root from ufs:/dev/da0s1a > -------------------------------------------------------------------------= =2D- OK, I managed to fix this issue by commenting out OHCI from kernel. #device ohci # OHCI PCI->USB interface "systat -vm" shows now "31 ehci0 10" instead of "96514 ohci0 ohci". Affected systems are: Tyan S3870 and B3870 motherboards.