From owner-freebsd-sparc64@FreeBSD.ORG Sun Aug 28 19:56:26 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35FA3106566B for ; Sun, 28 Aug 2011 19:56:26 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id EFF848FC0A for ; Sun, 28 Aug 2011 19:56:25 +0000 (UTC) Received: by qyk4 with SMTP id 4so1458750qyk.13 for ; Sun, 28 Aug 2011 12:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=Pin9xMA7hl8p0dxJbghWJ7XXUcl39asjVkR4e+T9Afc=; b=LEvbFW0w/ZjaGxS6iArraezsZrdKNVW5JiTDoHIGVwS0HdKFv3F16xFbxHpAH3P0FV RUsmLWWM1tl8/OIMO4tVlsQvlho/dURmBnUb2wPYS/mkDBB/m3irnfqvKyrD6VZSZm05 UVMw/4MbBfbqoogmdV8bV7wJ/TkkRo0rIJETw= Received: by 10.229.189.10 with SMTP id dc10mr4221678qcb.112.1314559737067; Sun, 28 Aug 2011 12:28:57 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.229.94.148 with HTTP; Sun, 28 Aug 2011 12:28:37 -0700 (PDT) From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Sun, 28 Aug 2011 21:28:37 +0200 X-Google-Sender-Auth: mPaOxvOQCBFzXIgT_OYX3j_sM34 Message-ID: To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Can't compile tools/netrate/[netblast|netsend] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 19:56:26 -0000 Hi all, I'm trying to compile netblast on my Sun Blade 150, but I can't because there is alignement error in the code: [root@sparc64]/usr/src/tools/tools/netrate/netblast#make Warning: Object directory not changed from original /usr/src/tools/tools/netrate/netblast cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c netblast.c cc1: warnings being treated as errors netblast.c: In function 'blast_loop': netblast.c:115: warning: cast increases required alignment of target type *** Error code 1 Stop in /usr/src/tools/tools/netrate/netblast As I'm not a C coder, and googling about alignment, I've learn that only x86 platform "hide" this problem, but I didn't find dummy patch for fix this kind of problem. Does anyone have a solution ? Thanks, Olivier From owner-freebsd-sparc64@FreeBSD.ORG Sun Aug 28 22:27:02 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21656106566B for ; Sun, 28 Aug 2011 22:27:02 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id AD91F8FC0C for ; Sun, 28 Aug 2011 22:27:01 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p7SMQwNb009763; Mon, 29 Aug 2011 00:26:58 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p7SMQwcg009762; Mon, 29 Aug 2011 00:26:58 +0200 (CEST) (envelope-from marius) Date: Mon, 29 Aug 2011 00:26:58 +0200 From: Marius Strobl To: Olivier Cochard-Labb? Message-ID: <20110828222658.GA9698@alchemy.franken.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: Can't compile tools/netrate/[netblast|netsend] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 22:27:02 -0000 On Sun, Aug 28, 2011 at 09:28:37PM +0200, Olivier Cochard-Labb? wrote: > Hi all, > > I'm trying to compile netblast on my Sun Blade 150, but I can't > because there is alignement error in the code: > > [root@sparc64]/usr/src/tools/tools/netrate/netblast#make > Warning: Object directory not changed from original > /usr/src/tools/tools/netrate/netblast > cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror > -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual > -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter > -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c > netblast.c > cc1: warnings being treated as errors > netblast.c: In function 'blast_loop': > netblast.c:115: warning: cast increases required alignment of target type > *** Error code 1 > > Stop in /usr/src/tools/tools/netrate/netblast > > As I'm not a C coder, and googling about alignment, I've learn that > only x86 platform "hide" this problem, but I didn't find dummy patch > for fix this kind of problem. > Does anyone have a solution ? > Index: netblast.c =================================================================== --- netblast.c (revision 223862) +++ netblast.c (working copy) @@ -26,6 +26,7 @@ * $FreeBSD$ */ +#include #include #include #include @@ -108,11 +109,9 @@ blast_loop(int s, long duration, u_char *packet, u * previous send, the error will turn up the current send * operation, causing the current sequence number also to be * skipped. - * - * XXXRW: Note alignment assumption. */ if (packet_len >= 4) { - *((u_int32_t *)packet) = htonl(counter); + be32enc(packet, counter); counter++; } if (send(s, packet, packet_len, 0) < 0) From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 29 11:07:17 2011 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82DD7106567A for ; Mon, 29 Aug 2011 11:07:17 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 71F098FC31 for ; Mon, 29 Aug 2011 11:07:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7TB7HOp089399 for ; Mon, 29 Aug 2011 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7TB7Gbk089397 for freebsd-sparc64@FreeBSD.org; Mon, 29 Aug 2011 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Aug 2011 11:07:16 GMT Message-Id: <201108291107.p7TB7Gbk089397@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 11:07:17 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f sparc/145211 sparc64 [panic] Memory modified after free o sparc/142102 sparc64 [nfs] [panic] FreeBSD 8.0 kernel panics on sparc64 whe o sparc/141918 sparc64 [ehci] ehci_interrupt: unrecoverable error, controller s sparc/139134 sparc64 kernel output corruption f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 [hang] system is hung during boot from CD o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 10 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 29 17:38:18 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A346106566C for ; Mon, 29 Aug 2011 17:38:18 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id DC2E78FC1A for ; Mon, 29 Aug 2011 17:38:17 +0000 (UTC) Received: by qyk9 with SMTP id 9so4342767qyk.13 for ; Mon, 29 Aug 2011 10:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=/ivK4AaV0ok0ImY91X8TQa7Ost7hPNVqsmKe993t1pg=; b=BHYAxlk0dHoBV0AMbWuawZL6E/uObQWhyb9opHBdWxxkANd57cSUAUn06JQefrrv1e TtiXhHDlGsPiLRhh5ksQaLKv9LvHC2GJ2eEESHIW8/UJExp8WIqlkqfEXoPagmXpBbBv 7A99DoVnLx5TR3hkceGYy752dFIiAM79CVgs8= Received: by 10.229.24.11 with SMTP id t11mr1721031qcb.36.1314639497201; Mon, 29 Aug 2011 10:38:17 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.229.94.148 with HTTP; Mon, 29 Aug 2011 10:37:57 -0700 (PDT) In-Reply-To: <20110828222658.GA9698@alchemy.franken.de> References: <20110828222658.GA9698@alchemy.franken.de> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Mon, 29 Aug 2011 19:37:57 +0200 X-Google-Sender-Auth: a_haB7Tt22bCPMpYDEX6pk_OlMo Message-ID: To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-sparc64@freebsd.org Subject: Re: Can't compile tools/netrate/[netblast|netsend] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 17:38:18 -0000 On Mon, Aug 29, 2011 at 12:26 AM, Marius Strobl wrote: > --- netblast.c =A0(revision 223862) > +++ netblast.c =A0(working copy) > @@ -26,6 +26,7 @@ Thanks a lot's Marius: your patch's working great ! I've created a PR with your patch. Regards, Olivier From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 29 17:40:14 2011 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3868106566C for ; Mon, 29 Aug 2011 17:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D06DC8FC18 for ; Mon, 29 Aug 2011 17:40:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7THeDAo054053 for ; Mon, 29 Aug 2011 17:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7THeDhA054052; Mon, 29 Aug 2011 17:40:13 GMT (envelope-from gnats) Resent-Date: Mon, 29 Aug 2011 17:40:13 GMT Resent-Message-Id: <201108291740.p7THeDhA054052@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olivier Cochard-Labbe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE7A4106566C for ; Mon, 29 Aug 2011 17:36:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 93C978FC15 for ; Mon, 29 Aug 2011 17:36:02 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7THa2JF076514 for ; Mon, 29 Aug 2011 17:36:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7THa2as076513; Mon, 29 Aug 2011 17:36:02 GMT (envelope-from nobody) Message-Id: <201108291736.p7THa2as076513@red.freebsd.org> Date: Mon, 29 Aug 2011 17:36:02 GMT From: Olivier Cochard-Labbe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: sparc64/160289: Patch for compile tools/netrate/[netblast|netsend] on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 17:40:14 -0000 >Number: 160289 >Category: sparc64 >Synopsis: Patch for compile tools/netrate/[netblast|netsend] on sparc64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 29 17:40:13 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbe >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD sparc64.bsdrp.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Mar 6 17:26:52 CET 2011 root@sparc64.bsdrp.net:/usr/obj/usr/src/sys/GENERIC sparc64 >Description: I'm trying to compile netblast on my Sun Blade 150, but I can't because there is alignement error in the code: [root@sparc64]/usr/src/tools/tools/netrate/netblast#make Warning: Object directory not changed from original /usr/src/tools/tools/netrate/netblast cc -O2 -pipe -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c netblast.c cc1: warnings being treated as errors netblast.c: In function 'blast_loop': netblast.c:115: warning: cast increases required alignment of target type *** Error code 1 Stop in /usr/src/tools/tools/netrate/netblast >How-To-Repeat: On a sparc64 machine: /usr/src/tools/tools/netrate/netblast;make or: /usr/src/tools/tools/netrate/netsend;make >Fix: With the help of Marius Strobl (marius@alchemy.franken.de) from the freebsd-sparc64 mailing-list, here is the patch for fixing theses problems. Patch attached with submission follows: diff -ruN netrate.orig/netblast/netblast.c netrate/netblast/netblast.c --- netrate.orig/netblast/netblast.c 2011-08-29 19:20:21.000000000 +0200 +++ netrate/netblast/netblast.c 2011-08-29 19:19:38.000000000 +0200 @@ -26,6 +26,7 @@ * $FreeBSD: src/tools/tools/netrate/netblast/netblast.c,v 1.3.10.1.6.1 2010/12/21 17:09:25 kensmith Exp $ */ +#include #include #include #include @@ -108,11 +109,9 @@ * previous send, the error will turn up the current send * operation, causing the current sequence number also to be * skipped. - * - * XXXRW: Note alignment assumption. */ if (packet_len >= 4) { - *((u_int32_t *)packet) = htonl(counter); + be32enc(packet, counter); counter++; } if (send(s, packet, packet_len, 0) < 0) diff -ruN netrate.orig/netsend/netsend.c netrate/netsend/netsend.c --- netrate.orig/netsend/netsend.c 2011-08-29 19:20:21.000000000 +0200 +++ netrate/netsend/netsend.c 2011-08-29 19:22:16.000000000 +0200 @@ -26,6 +26,7 @@ * $FreeBSD: src/tools/tools/netrate/netsend/netsend.c,v 1.9.10.1.6.1 2010/12/21 17:09:25 kensmith Exp $ */ +#include #include #include #include @@ -164,11 +165,9 @@ * previous send, the error will turn up the current send * operation, causing the current sequence number also to be * skipped. - * - * XXXRW: Note alignment assumption. */ if (packet_len >= 4) { - *((u_int32_t *)packet) = htonl(counter); + be32enc(packet, counter); counter++; } if (send(s, packet, packet_len, 0) < 0) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 29 19:14:17 2011 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 500A9106564A; Mon, 29 Aug 2011 19:14:17 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 27D778FC14; Mon, 29 Aug 2011 19:14:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7TJEHKD043935; Mon, 29 Aug 2011 19:14:17 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7TJEHwr043931; Mon, 29 Aug 2011 19:14:17 GMT (envelope-from linimon) Date: Mon, 29 Aug 2011 19:14:17 GMT Message-Id: <201108291914.p7TJEHwr043931@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-sparc64@FreeBSD.org, freebsd-bin@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: misc/160289: [tools] [patch] Patch to compile tools/netrate/[netblast|netsend] on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 19:14:17 -0000 Old Synopsis: Patch for compile tools/netrate/[netblast|netsend] on sparc64 New Synopsis: [tools] [patch] Patch to compile tools/netrate/[netblast|netsend] on sparc64 Responsible-Changed-From-To: freebsd-sparc64->freebsd-bin Responsible-Changed-By: linimon Responsible-Changed-When: Mon Aug 29 19:12:49 UTC 2011 Responsible-Changed-Why: Reclassify, since it's not in the machine-dependent code. http://www.freebsd.org/cgi/query-pr.cgi?pr=160289 From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 30 00:15:41 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A52151065675 for ; Tue, 30 Aug 2011 00:15:41 +0000 (UTC) (envelope-from josefvirek@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 678B68FC0C for ; Tue, 30 Aug 2011 00:15:41 +0000 (UTC) Received: by gxk28 with SMTP id 28so6322826gxk.13 for ; Mon, 29 Aug 2011 17:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rKW04dmlRywS9Nm2u0Z6vC6kUertDYfMQECUEGPLIKI=; b=V7QxqoIjreCHIC6JnaZpV2j2glAiPcTbPvKfA59Pk9nQaLm4OZE1ObGyqh/dLzGvip pQ+oskz+A1DFgBc+TR/VGUmf9svU+cnmVHqd5B084rkQjFNtAhJOHpqjIew0F/mrbreQ nFfXadgNyyZEFsj9g+WWRFbUWUxe7x5zf0pZw= MIME-Version: 1.0 Received: by 10.42.117.7 with SMTP id r7mr5360603icq.472.1314663340038; Mon, 29 Aug 2011 17:15:40 -0700 (PDT) Received: by 10.42.135.138 with HTTP; Mon, 29 Aug 2011 17:15:40 -0700 (PDT) In-Reply-To: <20110823115808.GA73912@alchemy.franken.de> References: <20110823115808.GA73912@alchemy.franken.de> Date: Mon, 29 Aug 2011 17:15:40 -0700 Message-ID: From: Herr Virek To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: V440 with 1.593GHz CPU has scsi errors on LSILogic 1030 Ultra4 controller X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 00:15:41 -0000 On Tue, Aug 23, 2011 at 4:58 AM, Marius Strobl wrote: > On Mon, Aug 22, 2011 at 03:57:45PM -0700, Herr Virek wrote: >> Hello. >> >> I have a four cpu V440 running current well for a while now. >> >> Tried to install on another V440 with this CPU and I have scsi errors >> until panic when booting off CD or a hard drive with 8.2 installed >> >> Has anyone seen issues with this particular CPU? >> >> http://www.sunshack.org/data/sh/2.1.8/infoserver.central/data/syshbk/Devices/System_Board/SYSBD_SunFireV440_CPU.html#6788 >> >> I've swapped disks and optical drives a few times. >> >> S10 U8 seems OK so I'm not sure where to start on this one. I've also >> tried with auto-boot? false and true. >> > > My V440 suffers from the same symptom at times. In that case a > probe-scsi-all in the PROM boot monitor doesn't report the disk > either or acts up in odd ways though, so I think this is due to > a defective SCSI backplane rather than an OS issue, especially > since these disks just work fine in another machine. If that > happens shuffling around the disks within the V440 for a while > typically helps. > If Solaris really doesn't have problems with this machine the > only other thing I can think of is that 9.0-CURRENT as well as > 8.2-STABLE but not 8.2-RELEASE have a workaround which disables > PCI bus parking if a Cassini device is present as these can > cause bus hangs if bus parking is enabled. This workaround > (which is based on information gleaned from the OpenSolaris > source) is intended for V480 with defective centerplanes but > might also help V440. > > Marius > > Thanks Marius Soon as I removed cas2 FreeBSD boots. cas2: mem 0x200000-0x3fffff at device 1.0 on pci4 - Eric From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 30 08:45:53 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81C81106564A for ; Tue, 30 Aug 2011 08:45:53 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 1731A8FC0C for ; Tue, 30 Aug 2011 08:45:52 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p7U8jpUx025343; Tue, 30 Aug 2011 10:45:51 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p7U8jpMi025342; Tue, 30 Aug 2011 10:45:51 +0200 (CEST) (envelope-from marius) Date: Tue, 30 Aug 2011 10:45:51 +0200 From: Marius Strobl To: Herr Virek Message-ID: <20110830084551.GA25304@alchemy.franken.de> References: <20110823115808.GA73912@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: V440 with 1.593GHz CPU has scsi errors on LSILogic 1030 Ultra4 controller X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 08:45:53 -0000 On Mon, Aug 29, 2011 at 05:15:40PM -0700, Herr Virek wrote: > On Tue, Aug 23, 2011 at 4:58 AM, Marius Strobl > wrote: > > On Mon, Aug 22, 2011 at 03:57:45PM -0700, Herr Virek wrote: > >> Hello. > >> > >> I have a four cpu V440 running current well for a while now. > >> > >> Tried to install on another V440 with this CPU and I have scsi errors > >> until panic when booting off CD or a hard drive with 8.2 installed > >> > >> Has anyone seen issues with this particular CPU? > >> > >> http://www.sunshack.org/data/sh/2.1.8/infoserver.central/data/syshbk/Devices/System_Board/SYSBD_SunFireV440_CPU.html#6788 > >> > >> I've swapped disks and optical drives a few times. > >> > >> S10 U8 seems OK so I'm not sure where to start on this one. I've also > >> tried with auto-boot? false and true. > >> > > > > My V440 suffers from the same symptom at times. In that case a > > probe-scsi-all in the PROM boot monitor doesn't report the disk > > either or acts up in odd ways though, so I think this is due to > > a defective SCSI backplane rather than an OS issue, especially > > since these disks just work fine in another machine. If that > > happens shuffling around the disks within the V440 for a while > > typically helps. > > If Solaris really doesn't have problems with this machine the > > only other thing I can think of is that 9.0-CURRENT as well as > > 8.2-STABLE but not 8.2-RELEASE have a workaround which disables > > PCI bus parking if a Cassini device is present as these can > > cause bus hangs if bus parking is enabled. This workaround > > (which is based on information gleaned from the OpenSolaris > > source) is intended for V480 with defective centerplanes but > > might also help V440. > > > > Marius > > > > > > Thanks Marius > > Soon as I removed cas2 FreeBSD boots. > > cas2: mem 0x200000-0x3fffff at device > 1.0 on pci4 > Have you tested how the machine behaves with a recent head or stable/8 and the card inserted? Marius From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 30 15:27:30 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDFD8106564A for ; Tue, 30 Aug 2011 15:27:30 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 4568D8FC14 for ; Tue, 30 Aug 2011 15:27:29 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p7UFRPLi028621; Tue, 30 Aug 2011 17:27:25 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p7UFRPZ1028620; Tue, 30 Aug 2011 17:27:25 +0200 (CEST) (envelope-from marius) Date: Tue, 30 Aug 2011 17:27:25 +0200 From: Marius Strobl To: Peter Jeremy Message-ID: <20110830152725.GA28552@alchemy.franken.de> References: <20110526234728.GA69750@server.vk2pj.dyndns.org> <20110527120659.GA78000@alchemy.franken.de> <20110601231237.GA5267@server.vk2pj.dyndns.org> <20110608224801.GB35494@alchemy.franken.de> <20110613235144.GA12470@server.vk2pj.dyndns.org> <20110813143807.GY48988@alchemy.franken.de> <20110816214820.GA35017@server.vk2pj.dyndns.org> <20110817094541.GJ48988@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110817094541.GJ48988@alchemy.franken.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: 'make -j16 universe' gives SIReset X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 15:27:30 -0000 On Wed, Aug 17, 2011 at 11:45:41AM +0200, Marius Strobl wrote: > On Wed, Aug 17, 2011 at 07:48:20AM +1000, Peter Jeremy wrote: > > On 2011-Aug-13 16:38:07 +0200, Marius Strobl wrote: > > >Could you please give the following patch with SCHED_4BSD (cpu_switch() > > >still is missing support for SCHED_ULE) with something like -j128 > > >buildworlds a try on your V890? > > >http://people.freebsd.org/~marius/sparc64_replace_sched_lock_w_atomic.diff > > > > Getting better but still not perfect. It survived a couple of -j128 > > buildworlds with another six -j16 buildworlds running in parallel. > > Thanks! > > > > > But it still has the same issue pho's stress test - a thr1 process is > > blocked in urdlck. The improvement is that there's only one stuck > > process and it took 7? hrs at INCARNATIONS=150 instead of 1-2 hours. > > (And it runs out of witness locks). > > > > Well, the sole purpose of that patch is to get rid of the MD sched_lock > usage in order to be able to add support for SCHED_ULE in a next step. > It's not obvious why this should have an impact on the problem with > userland mutex code. In fact using sched_lock provided more protection > than solving this via atomic operations, which should still be sufficient > for what we need to guarantee though. If at all I'd expect the patch to > create problems in case I've overlooked something, not to solve any :) > If it indeed has a positive impact on the the userland mutex problem then > my best guess is that this is a side-effect of the memory barriers the > patch adds to the context switching. That would indicate that the cause > of the problem in fact are missing memory barriers in the userland mutex > code, which IMO is one of the suspicious things regarding that code. Looking into the implementation of atomic operations reveals that with the memory model used for running both the kernel and all of the userland we currently actually include redundant memory barriers in some cases. Could you please re-fetch the patch from the above URL and test it again (hopefully for the last time) with buildworlds? It works just fine here but there again could be issues that are more likely to be triggered with more CPUs. Regarding the problem with the userland mutex code could you please try whether the following patch makes a difference? Given that the previous version of the above one as a side-effect made that problem harder to trigger it's probably a good idea to test the second patch separately. http://people.freebsd.org/~marius/sparc64_casuword_membar.diff Marius From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 31 05:35:05 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DFE3106566B for ; Wed, 31 Aug 2011 05:35:05 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.freebsd.org (Postfix) with ESMTP id B10BF8FC0A for ; Wed, 31 Aug 2011 05:35:04 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p7V5YttH015833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Aug 2011 15:34:57 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id p7V5Ytg3040311; Wed, 31 Aug 2011 15:34:55 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id p7V5YrXp040310; Wed, 31 Aug 2011 15:34:53 +1000 (EST) (envelope-from peter) Date: Wed, 31 Aug 2011 15:34:53 +1000 From: Peter Jeremy To: Marius Strobl Message-ID: <20110831053453.GA37259@server.vk2pj.dyndns.org> References: <20110526234728.GA69750@server.vk2pj.dyndns.org> <20110527120659.GA78000@alchemy.franken.de> <20110601231237.GA5267@server.vk2pj.dyndns.org> <20110608224801.GB35494@alchemy.franken.de> <20110613235144.GA12470@server.vk2pj.dyndns.org> <20110813143807.GY48988@alchemy.franken.de> <20110816214820.GA35017@server.vk2pj.dyndns.org> <20110817094541.GJ48988@alchemy.franken.de> <20110830152725.GA28552@alchemy.franken.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <20110830152725.GA28552@alchemy.franken.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-sparc64@freebsd.org Subject: Re: 'make -j16 universe' gives SIReset X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 05:35:05 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Aug-30 17:27:25 +0200, Marius Strobl wr= ote: >> > >http://people.freebsd.org/~marius/sparc64_replace_sched_lock_w_atomic= =2Ediff =2E.. >Could you please re-fetch the patch from the above URL and test it again >(hopefully for the last time) with buildworlds? It works just fine here >but there again could be issues that are more likely to be triggered with >more CPUs. Survived 8 parallel -j16 buildworlds. >Regarding the problem with the userland mutex code could you please try >whether the following patch makes a difference? Given that the previous >version of the above one as a side-effect made that problem harder to >trigger it's probably a good idea to test the second patch separately. >http://people.freebsd.org/~marius/sparc64_casuword_membar.diff I've backed out the sched_lock_w_atomic patch, applied that and just started another stress test run. --=20 Peter Jeremy --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk5dx/0ACgkQ/opHv/APuIcgrgCfZhtCnUUuAh/EgIZQOiIG7Dax BuYAn3y+aBBCz2Kh4yEiiGyhwi7R1kZk =nlOG -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb-- From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 31 21:25:10 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29AA0106564A for ; Wed, 31 Aug 2011 21:25:10 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail27.syd.optusnet.com.au (mail27.syd.optusnet.com.au [211.29.133.168]) by mx1.freebsd.org (Postfix) with ESMTP id AAB738FC0A for ; Wed, 31 Aug 2011 21:25:09 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail27.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p7VLP2xr014889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Sep 2011 07:25:03 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id p7VLP0Gg025982; Thu, 1 Sep 2011 07:25:00 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id p7VLOw0R025981; Thu, 1 Sep 2011 07:24:58 +1000 (EST) (envelope-from peter) Date: Thu, 1 Sep 2011 07:24:58 +1000 From: Peter Jeremy To: Marius Strobl Message-ID: <20110831212458.GA25926@server.vk2pj.dyndns.org> References: <20110526234728.GA69750@server.vk2pj.dyndns.org> <20110527120659.GA78000@alchemy.franken.de> <20110601231237.GA5267@server.vk2pj.dyndns.org> <20110608224801.GB35494@alchemy.franken.de> <20110613235144.GA12470@server.vk2pj.dyndns.org> <20110813143807.GY48988@alchemy.franken.de> <20110816214820.GA35017@server.vk2pj.dyndns.org> <20110817094541.GJ48988@alchemy.franken.de> <20110830152725.GA28552@alchemy.franken.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <20110830152725.GA28552@alchemy.franken.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-sparc64@freebsd.org Subject: Re: 'make -j16 universe' gives SIReset X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 21:25:10 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Aug-30 17:27:25 +0200, Marius Strobl wr= ote: >Regarding the problem with the userland mutex code could you please try >whether the following patch makes a difference? Given that the previous >version of the above one as a side-effect made that problem harder to >trigger it's probably a good idea to test the second patch separately. >http://people.freebsd.org/~marius/sparc64_casuword_membar.diff As far as I can tell, that applies to /usr/src/sys/sparc64/sparc64/support.S and only affects the kernel. If so, then with it applied, the stress tests ran for about 5=BDhrs and then a thr1 process got wedged in urdlck. --=20 Peter Jeremy --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk5epqoACgkQ/opHv/APuIfOOwCgnD0ibUVboZ2UzWvhNVyH6Mqw VjEAoJcizct3pSp01DzmJGjf5o6FuFvd =hRnl -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm-- From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 2 15:32:12 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4961106564A for ; Fri, 2 Sep 2011 15:32:12 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 606828FC0A for ; Fri, 2 Sep 2011 15:32:12 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p82FW6MU051178; Fri, 2 Sep 2011 17:32:06 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p82FW6Tb051177; Fri, 2 Sep 2011 17:32:06 +0200 (CEST) (envelope-from marius) Date: Fri, 2 Sep 2011 17:32:06 +0200 From: Marius Strobl To: Peter Jeremy Message-ID: <20110902153206.GR40781@alchemy.franken.de> References: <20110526234728.GA69750@server.vk2pj.dyndns.org> <20110527120659.GA78000@alchemy.franken.de> <20110601231237.GA5267@server.vk2pj.dyndns.org> <20110608224801.GB35494@alchemy.franken.de> <20110613235144.GA12470@server.vk2pj.dyndns.org> <20110813143807.GY48988@alchemy.franken.de> <20110816214820.GA35017@server.vk2pj.dyndns.org> <20110817094541.GJ48988@alchemy.franken.de> <20110830152725.GA28552@alchemy.franken.de> <20110831212458.GA25926@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110831212458.GA25926@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: 'make -j16 universe' gives SIReset X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2011 15:32:12 -0000 On Thu, Sep 01, 2011 at 07:24:58AM +1000, Peter Jeremy wrote: > On 2011-Aug-30 17:27:25 +0200, Marius Strobl wrote: > >Regarding the problem with the userland mutex code could you please try > >whether the following patch makes a difference? Given that the previous > >version of the above one as a side-effect made that problem harder to > >trigger it's probably a good idea to test the second patch separately. > >http://people.freebsd.org/~marius/sparc64_casuword_membar.diff > > As far as I can tell, that applies to /usr/src/sys/sparc64/sparc64/support.S > and only affects the kernel. If so, then with it applied, the stress > tests ran for about 5?hrs and then a thr1 process got wedged in urdlck. > Yes, the patch is a workaround for the fact that there are no acquire and release versions of casuword*(9), which seems to be part of the problem given that adding a memory barrier makes it considerably harder to trigger the problem and given that the code appears to otherwise work fine on at least x86 (where unlike sparc64 memory barriers are seldom necessary). The userland part of the userland mutex code already uses the acquire and release variants of atomic operations. Unfortunately, that code is rather complex, at least for me, so it's hard to judge whether parts that look suspicious are actually okay or are subject to races. Marius