From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 16 16:00:46 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6BBF16A4CF for ; Fri, 16 Jul 2004 16:00:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE4A543D5A for ; Fri, 16 Jul 2004 16:00:46 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6GG0kJ0034632 for ; Fri, 16 Jul 2004 16:00:46 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6GG0kSZ034622; Fri, 16 Jul 2004 16:00:46 GMT (envelope-from gnats) Resent-Date: Fri, 16 Jul 2004 16:00:46 GMT Resent-Message-Id: <200407161600.i6GG0kSZ034622@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joe Morris Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DC2116A4CE for ; Fri, 16 Jul 2004 15:52:40 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0922A43D39 for ; Fri, 16 Jul 2004 15:52:40 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6GFqdhK034806 for ; Fri, 16 Jul 2004 15:52:39 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i6GFqdEG034805; Fri, 16 Jul 2004 15:52:39 GMT (envelope-from nobody) Message-Id: <200407161552.i6GFqdEG034805@www.freebsd.org> Date: Fri, 16 Jul 2004 15:52:39 GMT From: Joe Morris To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/69158: Cisco MPI350 problems related to irq sharing X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 16:00:46 -0000 >Number: 69158 >Category: kern >Synopsis: Cisco MPI350 problems related to irq sharing >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 16 16:00:46 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Joe Morris >Release: 4.10-p2, 5.2.1-p9, 5.2-CURRENT >Organization: >Environment: FreeBSD Laptopia.joesnetwork 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #2: Fri Jul 16 09:13:13 EDT 2004 root@Laptopia.joesnetwork:/usr/obj/usr/src/sys/LAPTOPIA i386 >Description: I have an IBM Thinkpad R40, and FreeBSD hardware support has been outstanding for everything but my Cisco MPI350 wireless card. At first, wireless would either quit or lock up entirely, sometimes with strange kernel messages, sometimes with no warning at all. So, I went into the BIOS and changed the INTC irq to 9 (INTC seems to control the irqs of my wireless and uhci2). Ever since I gave an0 a unique irq (shared only with uhci2), the wireless has worked perfectly, until I plug in a USB device. When I plug in a USB mouse, I either have a solid lock-up of the system, or I get the following repeatedly: an0: failed to read RID ff50 7f00 2 3fe 0, 3 an0: failed to read RID ff50 7f00 2 3fe 0, 3 an0: failed to read RID ff50 4a0c 230b 3fe 0, 3 After a short time, ifconfig reports the status of an0 as "no carrier". I have also run Linux 2.6.7 and Windows XP on here with complete success, but FreeBSD 4.x and 5.x have issues with my irq setup. Even setting the BIOS irq settings to "Auto" doesn't solve the problem, and in fact makes it worse (guaranteed lock-ups, since the Cisco card is sharing an irq with a system-critical device). I would be happy to submit any information you may need! I'm sure it would also help if I told you that in 4.10 GENERIC I was getting "stray irq 7", which was my parallel port, even when the port was disabled in the BIOS. Now that I've changed irqs, I can't even use the parallel port at all (ppc0: cannot reserve I/O port range), but I'm sure more BIOS fiddling would change that, this is still annoying. Below is a sample dmesg output. As you will notice, I was hot-plugging a USB mouse into my USB ports to see if a problem would arise, and then I'd try to reinsert the if_an module. Thanks for your time! Copyright (c) 1992-2004 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 4.10-RELEASE-p2 #2: Fri Jul 16 09:13:13 EDT 2004 root@Laptopia.joesnetwork:/usr/obj/usr/src/sys/LAPTOPIA Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Pentium(R) M processor 1400MHz (1398.82-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x695 Stepping = 5 Features=0xa7e9f9bf real memory = 267780096 (261504K bytes) avail memory = 256303104 (250296K bytes) Preloaded elf kernel "kernel" at 0xc042e000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 12 entries at 0xc00fded0 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 uhci0: port 0x1800-0x181f irq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f irq 11 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 9 at d evice 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xc0000000-0xc00003ff irq 11 at d evice 29.7 on pci0 ehci_pci_attach: companion usb0 ehci_pci_attach: companion usb1 ehci_pci_attach: companion usb2 usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: (0x8086) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 pcic0: irq 11 at device 0.0 on pci2 pcic0: PCI Memory allocated: 0x88000000 pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq] pccard0: on pcic0 pci2: (vendor=0x14b9, dev=0xa504) at 2.0 irq 9 fwohci0: vendor=104c, dev=8026 fwohci0: <1394 Open Host Controller Interface> mem 0xc0204000-0xc0207fff,0xc0209 000-0xc02097ff irq 11 at device 7.0 on pci2 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:06:1b:00:20:11:1a:a1 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:06:1b:11:1a:a1 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) fxp0: port 0x8400-0x843f mem 0xc02080 00-0xc0208fff irq 11 at device 8.0 on pci2 fxp0: Ethernet address 00:06:1b:db:d9:8c inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1860-0x186f,0-0x3,0-0x7,0-0x3,0-0 x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=0x8086, dev=0x24c3) at 31.3 irq 11 pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc 00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0 pcm0: pci0: (vendor=0x8086, dev=0x24c6) at 31.6 irq 11 orm0: