From owner-freebsd-current@FreeBSD.ORG Mon Nov 6 22:09:26 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71F8016A49E; Mon, 6 Nov 2006 22:09:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 490FC43D7B; Mon, 6 Nov 2006 22:09:00 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id kA6M8tke051455; Mon, 6 Nov 2006 17:08:56 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 6 Nov 2006 16:49:55 -0500 User-Agent: KMail/1.9.1 References: <20061104060421.6145773068@freebsd-current.sentex.ca> <20061104110644.GE854@turion.vk2pj.dyndns.org> In-Reply-To: <20061104110644.GE854@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611061649.56193.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 06 Nov 2006 17:08:58 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2167/Mon Nov 6 14:31:46 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: current@freebsd.org, Peter Jeremy , Kip Macy , FreeBSD Tinderbox , sparc64@freebsd.org, John Birrell Subject: Re: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 22:09:26 -0000 On Saturday 04 November 2006 06:06, Peter Jeremy wrote: > On Fri, 2006-Nov-03 23:46:27 -0800, Kip Macy wrote: > >Sparc64 only supports CAS on 4 and 8 byte quantities. The only > >operation it support on 16 bytes is load. > > The '16' in 'atomic_add_16' is bits. Few RISC architectures can > support atomic operations (or primitives to build atomic ops) on > anything other than their native word side and 32 bits. > > The problem is that SCTP is using a 16-bit refcnt and trying to > manipulate it atomically. This is problematic on anything except i386 > and amd64. The easiest solution seems to be to change refcnt to an > [u]int - though I'm not sure what other impacts this may have. And if possible it should just use 'refcount_*()' instead of 'atomic_*()' directly. -- John Baldwin