From owner-freebsd-stable Mon May 20 10:55:53 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.deltanet.com (mail.deltanet.com [216.237.144.132]) by hub.freebsd.org (Postfix) with ESMTP id 44FE137B41A for ; Mon, 20 May 2002 10:55:37 -0700 (PDT) Received: from mammoth.eat.frenchfries.net (da001d1294.lax-ca.osd.concentric.net [208.36.180.19]) by mail.deltanet.com (8.11.6/8.11.6) with ESMTP id g4KHYiO02295 for ; Mon, 20 May 2002 10:34:45 -0700 Received: by mammoth.eat.frenchfries.net (Postfix, from userid 1000) id 9524350E5; Mon, 20 May 2002 10:54:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mammoth.eat.frenchfries.net (Postfix) with ESMTP id 9284A49F5; Mon, 20 May 2002 10:54:15 -0700 (PDT) Date: Mon, 20 May 2002 10:54:15 -0700 (PDT) From: Paul Herman X-X-Sender: pherman@mammoth.eat.frenchfries.net To: "M. Warner Losh" Cc: gallatin@cs.duke.edu, Subject: Re: ipl problem in wi_hostapp.c ? In-Reply-To: <20020520.104632.10320851.imp@village.org> Message-ID: <20020520104220.V495-100000@mammoth.eat.frenchfries.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 20 May 2002, M. Warner Losh wrote: > I'm sure there's an IPL priblem in wi_hostap. Don't use it til I > get a fix MFC'd. Bruce and I have been discussing things (mostly > bruce telling me when I'm trying to be a dumb-ass splwise, which > I was). Far from it beeing a solution, but replacing splsoftclock() with splhigh() did indeed stop my machine panicing. I take it then, it's more complicated than using a different priority level? Just curious, what is then the reason that splsoftclock() has the magical property of clearing all other SWI_* bits? I ask because the folowing change to ipl_funcs.c also stopped the panic I was experiencing. Machine is still running for now.... :-) ========== RCS file: /u02/ncvs/src/sys/i386/isa/Attic/ipl_funcs.c,v retrieving revision 1.32.2.4 diff -u -1 -r1.32.2.4 ipl_funcs.c --- ipl_funcs.c 26 Jul 2001 18:53:02 -0000 1.32.2.4 +++ ipl_funcs.c 20 May 2002 17:07:42 -0000 @@ -267,3 +267,3 @@ GENSPL(splsoftcamnet, |=, SWI_CAMNET_MASK, 10) -GENSPL(splsoftclock, =, SWI_CLOCK_MASK, 11) +GENSPL(splsoftclock, |=, SWI_CLOCK_MASK, 11) GENSPL(splsofttty, |=, SWI_TTY_MASK, 12) -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message