kern/109251: if_re cardbus card won't attach
Pete Carah
pete at altadena.net
Sat Feb 17 05:40:06 UTC 2007
>Number: 109251
>Category: kern
>Synopsis: if_re cardbus card won't attach
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 17 05:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Pete Carah
>Release: FreeBSD 6.2-STABLE i386
>Organization:
Altadena Internet
>Environment:
System: FreeBSD port3.altadena.net 6.2-STABLE FreeBSD 6.2-STABLE #10: Thu Feb 15 10:30:29 EST 2007 pete at port3.altadena.net:/usr/obj/usr/src/sys/PORT3 i386
>Description:
Cardbus if_re (netgear GA511) won't attach with message
"couldn't set up irq". Cardbus (at least in this Compaq) doesn't
support INTR_FAST.
>How-To-Repeat:
Insert GA511 card, look at dmesg
>Fix:
--- if_re.c.orig Thu Feb 1 19:48:55 2007
+++ if_re.c Fri Feb 16 23:55:54 2007
@@ -1292,6 +1292,10 @@
/* Hook interrupt last to avoid having to lock softc */
error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET | INTR_MPSAFE |
INTR_FAST, re_intr, sc, &sc->rl_intrhand);
+ /* FAST won't work on a cardbus card, so try without it.
+ I leave previous call in case it is a real PCI card */
+ if (error)
+ error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET |
+ INTR_MPSAFE, re_intr, sc, &sc->rl_intrhand);
if (error) {
device_printf(dev, "couldn't set up irq\n");
ether_ifdetach(ifp);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list