Date: Sat, 17 Feb 2007 00:10:50 -0500 From: Pete Carah <pete@altadena.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/109251: if_re cardbus card won't attach Message-ID: <E1HIHqU-0000NA-6i@port3.altadena.net> Resent-Message-ID: <200702170540.l1H5e67K098275@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1HIHqU-0000NA-6i>
