From owner-freebsd-ia64@FreeBSD.ORG Tue Nov 23 21:36:45 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D488116A4CE for ; Tue, 23 Nov 2004 21:36:45 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E64343D45 for ; Tue, 23 Nov 2004 21:36:45 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 15071 invoked from network); 23 Nov 2004 21:36:45 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 23 Nov 2004 21:36:44 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iANLaXfM037718; Tue, 23 Nov 2004 16:36:41 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: powerpc@FreeBSD.org, amd64@FreeBSD.org, ia64@FreeBSD.org, Robert Watson Date: Tue, 23 Nov 2004 16:31:00 -0500 User-Agent: KMail/1.6.2 References: <200411231500.55841.jhb@FreeBSD.org> In-Reply-To: <200411231500.55841.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411231631.00945.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 21:36:46 -0000 On Tuesday 23 November 2004 03:00 pm, John Baldwin wrote: > Basically, I have a patch to divorce the interrupt disable/deferring to > only happen inside of spinlocks using a new spinlock_enter/exit() API > (where a spinlock_enter/exit includes a critical section as well) but that > plain critical sections won't have to do such a thing. I've tested it on > i386, alpha, and sparc64 already, and it has also been tested on arm. I'm > unable to get a cross-built powerpc kernel to link (linker dies with a > signal 6), but the compile did finish. I have cross-compiled ia64 and > amd64 > successfully, but have not run tested due to ENOHARDWARE. So, I would > appreciate it if a few folks could try the patch out on ppc, ia64, and > amd64 to make sure it works ok. Thanks. > > http://www.FreeBSD.org/~jhb/spinlock.patch *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch Sorry about that. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org