From owner-freebsd-amd64@FreeBSD.ORG Fri Nov 26 21:35:17 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C9E916A4CE; Fri, 26 Nov 2004 21:35:17 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3530A43D49; Fri, 26 Nov 2004 21:35:17 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.1/8.13.1) with ESMTP id iAQLZGnZ057650; Fri, 26 Nov 2004 13:35:16 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: <200411231631.00945.jhb@FreeBSD.org> References: <200411231500.55841.jhb@FreeBSD.org> <200411231631.00945.jhb@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0F35A925-3FF3-11D9-8DD8-000D93C47836@xcllnt.net> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Fri, 26 Nov 2004 13:35:14 -0800 To: John Baldwin X-Mailer: Apple Mail (2.619) cc: amd64@freebsd.org cc: powerpc@freebsd.org cc: Robert Watson cc: ia64@freebsd.org Subject: Re: Patch to optimize "bare" critical sections X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2004 21:35:17 -0000 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. > > *cough* Ahem, http://www.FreeBSD.org/~jhb/patches/spinlock.patch No problems on ia64. I haven't loaded the machine to see if I get the wedge Robert was talking about, but I'm not too worried about that at the moment. FYI, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net