From owner-freebsd-hackers Fri May 3 23:27:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (dhcp45-25.dis.org [216.240.45.25]) by hub.freebsd.org (Postfix) with ESMTP id 80B6637B416 for ; Fri, 3 May 2002 23:27:45 -0700 (PDT) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.6) with ESMTP id g446Q9h00791; Fri, 3 May 2002 23:26:09 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200205040626.g446Q9h00791@mass.dis.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: mjacob@feral.com Cc: hackers@freebsd.org Subject: Re: naive i386 && FreeBSD interrupt question In-reply-to: Your message of "Thu, 18 Apr 2002 12:27:33 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 03 May 2002 23:26:09 -0700 From: Michael Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > This was -stable- but it's really a hacker's question. > > I really am *not* much of an i386 weenie and I'll have to admit that I don't > fully understand the interrupt mask scheme and I ran into a troubling problem > . > > I was running some very extensive tests on a dual processor (but not SMP > configured) system- I was in the middle of calling busdma_load from the isp > driver when I got interrupted and blew up fielding an isp interrupt. You call isp_intr out of isp_watchdog; any chance that the timeout could have gone off and dumped you in there? Otherwise, no, you should not have had your interrupt handler reentered while it was masked. You shouldn't have to call splsoftvm() when calling the busdma code; it should take whatever locks it needs at the time. Knowing the contents of cpl vs. the CAM spl mask and the actual interrupt in question would be useful, as would the stack backtrace from the explosion (ie. when you say "got interrupted" was the backtrace through the actual interrupt entry point?) = Mike -- To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. - Theodore Roosevelt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message