From nobody@FreeBSD.org  Fri Jul 16 15:52:40 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0DC2116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <jcmorris@bsu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Cisco MPI350 problems related to irq sharing
X-Send-Pr-Version: www-2.3

>Number:         69158
>Category:       kern
>Synopsis:       [an] Cisco MPI350 wireless card problems related to irq sharing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 16 16:00:46 GMT 2004
>Closed-Date:    Mon May 21 19:09:39 GMT 2007
>Last-Modified:  Mon May 21 19:09:39 GMT 2007
>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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,C
LFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
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: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=8086 device=3341)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4c57 graphics accelerator> at 0.0 irq 11
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1800-0x181f irq 11 at 
device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1820-0x183f irq 11 at 
device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> 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: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1840-0x185f irq 9 at d
evice 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> 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: <EHCI (generic) USB 2.0 controller> 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: <EHCI (generic) USB 2.0 controller> 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: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pcic0: <TI PCI-1510 PCI-CardBus Bridge> 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: <PC Card 16-bit bus (classic)> on pcic0
pci2: <unknown card> (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: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:06:1b:11:1a:a1
sbp0: <SBP-2/SCSI over FireWire> 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: <Intel 82801DB (ICH4) Pro/100 VE Ethernet> 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: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=8086 device=24cc)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 ATA100 controller> 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: <unknown card> (vendor=0x8086, dev=0x24c3) at 31.3 irq 11
pcm0: <Intel ICH4 (82801DB)> port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc
00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0
pcm0: <Analog Devices AD1981B AC97 Codec>
pci0: <unknown card> (vendor=0x8086, dev=0x24c6) at 31.6 irq 11
orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff,0xd
c000-0xdffff,0xe0000-0xeffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
ppc0: cannot reserve I/O port range
ad0: 35031MB <IC25N040ATMR04-0> [71175/16/63] at ata0-master UDMA100
acd0: CD-RW <HL-DT-STCD-RW/DVD DRIVE GCC-4240N> at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
an0: <Cisco Aironet MPI350> port 0x8000-0x80ff mem 0xc0400000-0xc07fffff,0xc0200
000-0xc0203fff irq 9 at device 2.0 on pci2
an0: got RSSI <-> dBM map
an0: Ethernet address: 00:02:8a:d8:61:29
ppc0: cannot reserve I/O port range
ums0: Microsoft Microsoft 3-Button Mouse with IntelliEye?, rev 2.00/0.00, addr 2
, iclass 3/1
ums0: 3 buttons and Z dir.
an0: failed to read RID ff50 7f00 2 3fe 0, 3
ums0: at uhub1 port 2 (addr 2) disconnected
ums0: detached
an0: failed to read RID ff50 4a0c 230b 3fe 0, 3
an0: failed to read RID ff50 7f00 2 3fe 0, 3
ums0: Microsoft Microsoft 3-Button Mouse with IntelliEye?, rev 2.00/0.00, addr 2
, iclass 3/1
ums0: 3 buttons and Z dir.
an0: failed to read RID ff50 7f00 2 3fe 0, 3
ums0: at uhub1 port 1 (addr 2) disconnected
ums0: detached
an0: failed to read RID ff50 7f00 2 3fe 0, 3
an0: failed to read RID ff50 7f00 2 3fe 0, 3
ums0: Microsoft Microsoft 3-Button Mouse with IntelliEye?, rev 2.00/0.00, addr 2
, iclass 3/1
ums0: 3 buttons and Z dir.
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
an0: detached
an0: <Cisco Aironet MPI350> port 0x8000-0x80ff mem 0xc0400000-0xc07fffff,0xc0200
000-0xc0203fff irq 9 at device 2.0 on pci2
an0: read record failed
device_probe_and_attach: an0 attach returned 5
ppc0: cannot reserve I/O port range
>How-To-Repeat:
      Use the Cisco card in conjunction with a device sharing its irq.
>Fix:
      Don't use a device using the same irq as the wireless card.
>Release-Note:
>Audit-Trail:

From: Joe Morris <heartboy@ptd.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/69158: Cisco MPI350 problems related to irq sharing
Date: Fri, 16 Jul 2004 14:24:56 -0400

 I'm sorry, I just realized I misphrased something.  When I say "lock-up" 
 I don't mean just wireless not working, I mean the entire system locks 
 up solid, with the only solution being a hard reset.  This irq problem 
 may run deeper than just the wireless, though I've not seen any oddities 
 other than wireless problems.
 
 Joe

From: Michel Bovey <michel@bmf.ch>
To: freebsd-gnats-submit@FreeBSD.org, jcmorris@bsu.edu
Cc:  
Subject: Re: kern/69158: Cisco MPI350 problems related to irq sharing
Date: Thu, 22 Jul 2004 01:22:53 +0200

 --=-tfrefIh4Myi1OEchcHWR
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 My IBM Thinkpad T30 is experiencing the same problem since I have
 upgraded from FreeBSD 4.9 to FreeBSD 4.10 p2.
 
 $ dmesg | grep -i irq
 pci1: <ATI model 4c57 graphics accelerator> at 0.0 irq 11
 uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port
 0x1800-0x181f irq 11 at device 29.0 on pci0
 uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port
 0x1820-0x183f irq 11 at device 29.1 on pci0
 uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port
 0x1840-0x185f irq 11 at device 29.2 on pci0
 pcic0: <TI PCI-1520 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11
 at device 0.0 on pci2
 pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa
 irq]
 pcic1: <TI PCI-1520 PCI-CardBus Bridge> mem 0x51000000-0x51000fff irq 5
 at device 0.1 on pci2
 pcic1: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa
 irq]
 an0: <Cisco Aironet MPI350> port 0x8000-0x80ff mem
 0xd0400000-0xd07fffff,0xd0200000-0xd0203fff irq 11 at device 2.0 on pci2
 fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x8400-0x843f mem
 0xd0204000-0xd0204fff irq 11 at device 8.0 on pci2
 ata0: at 0x1f0 irq 14 on atapci0
 ata1: at 0x170 irq 15 on atapci0
 pci0: <unknown card> (vendor=3D0x8086, dev=3D0x2483) at 31.3 irq 5
 pcm0: <Intel ICH3 (82801CA)> port 0x18c0-0x18ff,0x1c00-0x1cff irq 5 at
 device 31.5 on pci0
 pci0: <unknown card> (vendor=3D0x8086, dev=3D0x2486) at 31.6 irq 5
 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
 isa0
 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio1 at port 0x2f8-0x2ff irq 3 on isa0
 
 Typical error message in /var/log/messages:
 Jul 22 01:00:37 bear4 /kernel: an0: failed to read RID ff50 7f21 21 0
 2eab, 3
 
 As work around I have downgraded back to FreeBSD 4.9.
 
 Regards
 Michel Bovey
 
 --=-tfrefIh4Myi1OEchcHWR
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQBA/vrNUWpNyTEh0x8RAiZ2AJ433/8s7RkviEUuu6UfCtr5GfE48ACfeYUc
 I1ixVLafMjXWw4iQTE3X4JA=
ESTp
 -----END PGP SIGNATURE-----
 
 --=-tfrefIh4Myi1OEchcHWR--

From: "Morris, Joseph C" <jcmorris@bsu.edu>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/69158: Cisco MPI350 problems related to irq sharing
Date: Fri, 23 Jul 2004 14:57:00 -0500

 I, too, have tried 4.9, and while wireless appears to work (for the time
 being),  4.9 seems to have many issues with USB and apm on my laptop,
 including hotplugging not working, issues with USB mass storage devices,
 and failures to resume from suspend.
 
 Joe

From: "Morris, Joseph C" <jcmorris@bsu.edu>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/69158: Cisco MPI350 problems related to irq sharing
Date: Fri, 30 Jul 2004 13:57:46 -0500

 Just a brief update. I just downloaded the latest snapshot from
 5-CURRENT (July 30, 2004). My system has not had any hard lock-ups, but
 my Cisco card does go down frequently when something is plugged into
 uhci2, since they both share the same irq.  When running ifconfig, it
 reports "status: no carrier" still. Usually unloading and reinserting
 the if_an module brings it back up for a little bit, but if anything is
 plugged into uhci2 the wireless connection is guaranteed to be lost at
 some point.  I no longer get any odd kernel messages, but the problem
 still stands: if a device is using the same irq that the Cisco card is
 using, the wireless connection is guaranteed to be lost. Thanks guys!
 
 jcm

From: Gavin Atkinson <ga9@york.ac.uk>
To: bug-followup@FreeBSD.org, jcmorris@bsu.edu
Cc:  
Subject: Re: kern/69158: [an] Cisco MPI350 wireless card problems related
	to irq sharing
Date: Mon, 21 May 2007 19:06:36 +0100

 Submitter says problem is now resolved in kern/75407.  This PR should
 now be closed.
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon May 21 19:09:37 UTC 2007 
State-Changed-Why:  
Gavin: Submitter says problem is now resolved in kern/75407.  This PR 
should now be closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69158 
>Unformatted:
