From owner-freebsd-current@FreeBSD.ORG Tue Jul 11 20:32:13 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 3C7C816A4E1; Tue, 11 Jul 2006 20:32:13 +0000 (UTC) In-Reply-To: <20060712.044439.74753790.goto@snowy.to> from Yoshikazu GOTO at "Jul 12, 2006 04:44:39 am" To: goto@snowy.to (Yoshikazu GOTO) Date: Tue, 11 Jul 2006 20:32:13 +0000 (GMT) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20060711203213.3C7C816A4E1@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Cc: freebsd-current@freebsd.org Subject: Re: if_re does not work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 20:32:13 -0000 > > In theory the bus_alloc_resource(.., SYS_RES_IRQ, ...) should route an > > interrupt for the re0 device but it won't show up in the probe line in that > > case since the probe line is printed before re_attach() is called. In fact, > > in the failing case, it wasn't bus_alloc_resource() that failed, but > > bus_setup_intr(). This is most likely not an re0 issue however. > > > > goto-san, can you add printf's to i386/i386/intr_machdep.c:intr_add_handler() > > and kern/kern_intr.c:intr_event_add_handler() to see which of the EINVAL > > cases is being triggered? > > I added printf() to 2 functions (one in intr_add_handler() and two > in intr_event_add_handler()) and re-build my kernel and reboot my > ThinkPad X40. But I could not get any printf's messages. > > And I have a question. Why INTR_FAST was added in re_attach()? > When I deleted it and re-build if_re modules, my card was attached. INTR_FAST added because the driver was converted to use 'fast' interrupts. I really hope nobody's going to tell me that INTR_FAST isn't supported with cardbus. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wpaul@windriver.com | Wind River Systems ============================================================================= you're just BEGGING to face the moose =============================================================================