From owner-freebsd-ia64@FreeBSD.ORG Wed Nov 24 15:41:21 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 EF16A16A51D for ; Wed, 24 Nov 2004 15:41:21 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEC8043D2F for ; Wed, 24 Nov 2004 15:41:21 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30716 invoked from network); 24 Nov 2004 15:41:20 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 24 Nov 2004 15:41:20 -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 iAOFf5WY043775; Wed, 24 Nov 2004 10:41:16 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Marcel Moolenaar Date: Wed, 24 Nov 2004 10:26:35 -0500 User-Agent: KMail/1.6.2 References: <200411231500.55841.jhb@FreeBSD.org> <200411231631.00945.jhb@FreeBSD.org> <9C77F94E-3DC8-11D9-A2B1-000D93C47836@xcllnt.net> In-Reply-To: <9C77F94E-3DC8-11D9-A2B1-000D93C47836@xcllnt.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411241026.35486.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: amd64@FreeBSD.org cc: powerpc@FreeBSD.org cc: ia64@FreeBSD.org 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: Wed, 24 Nov 2004 15:41:22 -0000 On Tuesday 23 November 2004 10:26 pm, Marcel Moolenaar wrote: > On Nov 23, 2004, at 1:31 PM, John Baldwin wrote: > > 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. > > The patch doesn't apply cleanly. Can you create a patch against HEAD > and not your lock branch? Doh, the patch has been updated to be against HEAD now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org