From root@port3.altadena.net  Sat Feb 17 05:30:07 2007
Return-Path: <root@port3.altadena.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 04A2316A409
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Feb 2007 05:30:07 +0000 (UTC)
	(envelope-from root@port3.altadena.net)
Received: from kestrel.altadena.net (kestrel.altadena.net [207.136.131.34])
	by mx1.freebsd.org (Postfix) with ESMTP id CBD1813C4B8
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Feb 2007 05:30:06 +0000 (UTC)
	(envelope-from root@port3.altadena.net)
Received: from c-69-143-147-7.hsd1.md.comcast.net ([69.143.147.7] helo=port3.altadena.net)
	by kestrel.altadena.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.65)
	(envelope-from <root@port3.altadena.net>)
	id 1HIHqV-000K1v-Lx
	for FreeBSD-gnats-submit@freebsd.org; Fri, 16 Feb 2007 21:10:51 -0800
Received: from root by port3.altadena.net with local (Exim 4.63)
	(envelope-from <root@port3.altadena.net>)
	id 1HIHqU-0000NA-6i
	for FreeBSD-gnats-submit@freebsd.org; Sat, 17 Feb 2007 00:10:50 -0500
Message-Id: <E1HIHqU-0000NA-6i@port3.altadena.net>
Date: Sat, 17 Feb 2007 00:10:50 -0500
From: Pete Carah <pete@altadena.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: if_re cardbus card won't attach
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         109251
>Category:       kern
>Synopsis:       [re] [patch] if_re cardbus card won't attach
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 17 05:40:03 GMT 2007
>Closed-Date:    Wed Oct 13 08:12:37 MDT 2010
>Last-Modified:  Wed Oct 13 08:12:37 MDT 2010
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Wed Jan 14 23:33:43 UTC 2009 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109251 
Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: andre 
Responsible-Changed-When: Mon Aug 23 18:15:00 UTC 2010 
Responsible-Changed-Why:  
Over to expert. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109251 
Responsible-Changed-From-To: yongari->imp 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Tue Oct 12 01:56:33 UTC 2010 
Responsible-Changed-Why:  
This does not look like re(4) issue. Over to cardbus(4) expert. 
Warner, could you take a look? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109251 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Wed Oct 13 08:11:57 MDT 2010 
State-Changed-Why:  
This is an old bug in 6.x that was fixed in 7.x and 8.x. 


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