From owner-freebsd-current Sun Feb 9 23:14:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0245237B401 for ; Sun, 9 Feb 2003 23:14:16 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A34E43FD7 for ; Sun, 9 Feb 2003 23:12:55 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0103.cvx40-bradley.dialup.earthlink.net ([216.244.42.103] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18i87W-0007gM-00; Sun, 09 Feb 2003 23:12:51 -0800 Message-ID: <3E47509D.EA90194A@mindspring.com> Date: Sun, 09 Feb 2003 23:11:25 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Nate Lawson Cc: current@freebsd.org Subject: Re: bus_setup_intr() vs. ether_ifattach() race References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41a1be98705b92b6c7f97a7b75f954ff0666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nate Lawson wrote: > Which is the correct order to do these two functions? If the irq is > enabled before the device is attached, it seems a response cannot be sent > if a packet arrives before the attach. The right way seems to be to > attach the device before setting up an irq but does this have side > effects? The main side effect is that probes that require IRQs in order to determine if the device is there (e.g. AMD Lance, etc.) will never be able to probe true, unless the interrupt is routed to an IRQ handler. On the other hand, it should probably not be the standard IRQ handler that gets invoked, as a result of the probe, but one that is specific to probing. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message