From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 01:54:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D8A7A16A403 for ; Sun, 17 Dec 2006 01:54:16 +0000 (UTC) (envelope-from robbie_3@netzero.net) Received: from outbound-mail.nyc.untd.com (outbound-mail.nyc.untd.com [64.136.20.164]) by mx1.FreeBSD.org (Postfix) with SMTP id 32D9A43CA7 for ; Sun, 17 Dec 2006 01:54:16 +0000 (GMT) (envelope-from robbie_3@netzero.net) Received: from webmail38.nyc.untd.com (webmail38.nyc.untd.com [10.141.27.178]) by smtpout05.nyc.untd.com with SMTP id AABC2KJ39AVNEA3J for (sender ); Sat, 16 Dec 2006 17:54:07 -0800 (PST) X-UNTD-OriginStamp: AeaoOif1lFrjLDnA/+nVFAeclJjvJ68UzWmA9OyQ3RQ1pZ6P6CCrGg== Received: (from robbie_3@netzero.net) by webmail38.nyc.untd.com (jqueuemail) id L9RQVDPD; Sat, 16 Dec 2006 17:53:22 PST Received: from [24.193.89.84] by webmail38.nyc.untd.com with HTTP: Sun, 17 Dec 2006 01:51:21 GMT X-Originating-IP: [24.193.89.84] Mime-Version: 1.0 From: "robbie_3@netzero.net" Date: Sun, 17 Dec 2006 01:51:21 GMT To: freebsd-questions@freebsd.org X-Mailer: Webmail Version 4.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Type: text/plain Message-Id: <20061216.175322.14831.1486731@webmail38.nyc.untd.com> X-ContentStamp: 103:51:214251738 X-MAIL-INFO: 10a9d82895d85c18dd9895d9c8dc6d41ed988d1d3d3988a531bcc139a8dd6d79395cadcd35bc05352508182861c15c48f8cc611859 X-UNTD-Peer-Info: 10.141.27.178|webmail38.nyc.untd.com|webmail38.nyc.untd.com|robbie_3@netzero.net Subject: Interrupt storm on an MS-1029 (AMD Turion 64) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2006 01:54:16 -0000 Is anyone aware of problems with FreeBSD on the MS-1029 notebook or is this a bona fide bug? -Robert Johnson, robbie_3@netzero.net STATEMENT OF PROBLEM =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FreeBSD 6.1 runs very slowly out of the box on my MS-1029 AMD Turion notebook computer. The first line from the output of 'ps -aux' tells that interrupt 19, in use by the ohci and cardbus systems, is consuming 80% of the CPU time: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 21 79.1 0.0 0 16 ?? LL 11:52AM 25:48.51 [irq19: cbb0 ohci ATTEMPTED RESOLUTIONS =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I attempted to disable the affected devices in the boot configuration file "/boot/device.hints." In all cases my 'hints' were ignored and the device drivers were loaded as normal. I also tried to do the equivalent with sysctls, also to no avail (though I might be doing the Wrong Thing): hint.ohci.0.disabled=3D"1" hint.usb.0.disabled=3D"1" hint.cardbus.0.disabled=3D"1" hint.pccard.0.disabled=3D"1" Booting in safe mode and with ACPI disabled did not help. I rebuilt the kernel with the cardbus driver disabled. This caused the cardbus to disappear from the problem process in 'ps' but the ohci driver was still using irq19 and was having an interrupt storm. In the compromised state of my computer it takes 48 hours to compile a kernel, I don't have access to another computer and I want to run with USB support, so I don't want to recompile again without USB support. I installed FreeBSD 6.0 and the problem was the same. I installed FreeBSD 5.3 and there was no problem (except that I needed to disable ACPI), nor was there a problem with NetBSD 3.0, nor Linux 2.4 or 2.6. = OpenBSD 3.9 also appears to suffer from an interrupt problem. DETAILED INFORMATION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The computer is a Microstar MS-1029 with an AMD MT-37 Turion processor running at 2.0ghz. The Motherboard uses an ATI Radeon Xpress 200P Chipset (North Bridge RX480M, South Bridge SB400). The Graphics Card is an ATI Mobility Radeon X700 with 128 MB of dedicated RAM. The system has 1024 MB of memory. The BIOS is "A1029AMS v2.70" I used the minimal installation from 6.1-RELEASE-amd64-disc1.iso # uname -a FreeBSD 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:04:14 UTC 2006 root@bloom.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 Windows XP reports the following information regarding IRQ 19: IRQ 19 Standard OpenHCD USB Host Controller OK IRQ 19 Standard OpenHCD USB Host Controller OK IRQ 19 Standard Enhanced PCI to USB Host Controller OK IRQ 19 Ricoh R/RL/5C476(II) or Compatible CardBus Controller OK The results of running other operating systems on the computer: FreeBSD 6.1 -! ohci (USB) and cardbus interrupt storm on IRQ 19 FreeBSD 6.0 -! identical problem FreeBSD 5.3 -- ACPI crashes on boot. No interrupt storm when booted without ACPI, kernel ignores spurious interrupt on IRQ 7 NetBSD 3.0 -- no problem OpenBSD 3.9 -! Apparently the same problem as with the FreeBSD 6 kernels... interrupts use 80+% of the cpu; the individual interrupts are not listed by ps... I don't know much about OpenBSD so I can't say more. Slackware 9.1 with Linux 2.4 kernel -- no interrupt problem (but disk access is slow, probably an old ATA driver) Slackware 11 with Linux 2.6 kernel -- no problem WindowsXP Professional with SP2 -- occasional spurious 'data' returned by ACPI hardware, runs fine otherwise. When I first installed FreeBSD 6.1, the install program ran fine, and at the end of the install process I checked the state of the processes using the holographic shell; there was no interrupt storm. I noticed in the boot process that the computer appears to run fine through the initial boot, but at around the point that it begins processing the rc files it slows down. # dmesg -a Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994= The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #0: Sun May 7 04:04:14 UTC 2006 root@bloom.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 Mobile Technology MT-37 (1989.82-MHz K8-class CPU= ) Origin =3D "AuthenticAMD" Id =3D 0x20f42 Stepping =3D 2 = Features=3D0x78bfbff Features2=3D0x1 AMD Features=3D0xe2500800 AMD Features2=3D0x1 real memory =3D 536084480 (511 MB) avail memory =3D 505630720 (482 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 21 acpi0: Power Button (fixed) acpi_ec0: port 0x62,0x66 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_perf0: invalid _PSS package acpi_throttle0: on cpu0 acpi_throttle0: CLK_VAL field overlaps THT_EN bit device_attach: acpi_throttle0 attach returned 6 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) ohci0: mem 0xfbdfd000-0xfbdfdfff irq 19 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xfbdfe000-0xfbdfefff irq 19 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered ehci0: mem 0xfbdff000-0xfbdfffff irq 19 at device 19.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 8 ports with 8 removable, self powered pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0= ata0: on atapci0 ata1: on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci2: on pcib2 rl0: port 0xe800-0xe8ff mem 0xfbfffc00-0xfbfffcff irq 18 at device 3.0 on pci2 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:13:d3:af:0a:b0 cbb0: irq 19 at device 4.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: irq 20 at device 4.1 on pci2 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 fwohci0: mem 0xfbfff000-0xfbfff7ff irq 21 at device 4.2 on pci2 fwohci0: OHCI version 1.0 (ROM=3D1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:10:dc:00:00:d9:2b:8b fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:10:dc:d9:2b:8b fwe0: Ethernet address: 02:10:dc:d9:2b:8b fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me) firewire0: bus manager 0 (me) ral0: mem 0xfbffc000-0xfbffdfff irq 16 at device 9.0 on pci2 ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525 ral0: Ethernet address: 00:11:09:2a:ae:b0 pci0: at device 20.5 (no driver attached) pci0: at device 20.6 (no driver attached) acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 acpi_acad0: on acpi0 battery0: on acpi0 orm0: at iomem 0xce800-0xcf7ff on isa0 ppc0: cannot reserve I/O port range sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa= 0 Timecounter "TSC" frequency 1989818882 Hz quality 800 Timecounters tick every 1.000 msec module_register_init: MOD_LOAD (amr_linux, 0xffffffff806205d0, 0) error = 6 ad0: 95396MB at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 Trying to mount root from ufs:/dev/ad0s2a Loading configuration files. Entropy harvesting: interrupts ethernet point_to_point kickstart =2E swapon: adding /dev/ad0s2b as swap device Starting file system checks: /dev/ad0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s2a: clean, 2638932 free (9300 frags, 328704 blocks, 0.3% fragmentation) Setting hostname: . lo0: flags=3D8049 mtu 16384 inet6 ::1 prefixlen 128 = inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 = inet 127.0.0.1 netmask 0xff000000 = Additional routing options: =2E Starting devd. hw.acpi.cpu.cx_lowest: = C1 -> = C1 Mounting NFS file systems: =2E Creating and/or trimming log files: =2E Starting syslogd. ELF ldconfig path: /lib /usr/lib /usr/lib/compat 32-bit compatibility ldconfig path: /usr/lib32 ldconfig: = warning: /usr/lib32 : = No such file or directory Initial amd64 initialization: =2E Additional ABI support: =2E Starting usbd. Starting local daemons: =2E Updating motd =2E Configuring syscons: blanktime =2E Starting cron. Local package initialization: =2E Additional TCP options: =2E Starting background file system checks in 60 seconds. Wed Aug 16 12:24:38 UTC 2006 Aug 16 12:25:08 login: ROOT LOGIN (root) ON ttyv0