From owner-freebsd-ia64@FreeBSD.ORG Tue Nov 23 20:00:58 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 9F34A16A4D1 for ; Tue, 23 Nov 2004 20:00:58 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA52043D6D for ; Tue, 23 Nov 2004 20:00:56 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 7344 invoked from network); 23 Nov 2004 20:00:56 -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 20:00:56 -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 iANK0msL037155; Tue, 23 Nov 2004 15:00:49 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: powerpc@FreeBSD.org, amd64@FreeBSD.org, ia64@FreeBSD.org Date: Tue, 23 Nov 2004 15:00:55 -0500 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200411231500.55841.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Robert Watson Subject: 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 20:00:58 -0000 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 -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org