From owner-freebsd-sparc64@FreeBSD.ORG Sat Nov 4 11:30:38 2006 Return-Path: X-Original-To: sparc64@freebsd.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44D1E16A4C8; Sat, 4 Nov 2006 11:30:38 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-2.cisco.com (sj-iport-2-in.cisco.com [171.71.176.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 649A343D55; Sat, 4 Nov 2006 11:30:33 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-2.cisco.com with ESMTP; 04 Nov 2006 03:30:34 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAEoITEWrR7PDh2dsb2JhbACMSQEBAQgOKg X-IronPort-AV: i="4.09,387,1157353200"; d="scan'208"; a="350078624:sNHT24828856" Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-3.cisco.com (8.12.11.20060308/8.12.11) with ESMTP id kA4BUXd5025403; Sat, 4 Nov 2006 03:30:33 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id kA4BUXAo022058; Sat, 4 Nov 2006 03:30:33 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 4 Nov 2006 03:30:32 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 4 Nov 2006 03:30:32 -0800 Message-ID: <454C79B3.9080609@cisco.com> Date: Sat, 04 Nov 2006 06:29:55 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Jeremy References: <20061104060421.6145773068@freebsd-current.sentex.ca> <20061104070047.GA98215@what-creek.com> <20061104110644.GE854@turion.vk2pj.dyndns.org> In-Reply-To: <20061104110644.GE854@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Nov 2006 11:30:32.0694 (UTC) FILETIME=[A389E160:01C70004] DKIM-Signature: a=rsa-sha1; q=dns; l=995; t=1162639833; x=1163503833; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:Randall=20Stewart=20 |Subject:Re=3A=20[head=20tinderbox]=20failure=20on=20sparc64/sun4v; X=v=3Dcisco.com=3B=20h=3DdlYYRt/rc+u/Ae65nzXQdpNRGMA=3D; b=JhxMQDpW3ql5K5tpAzqD/hdsi6KWpZ6MuGAKhrN6x8z/rwtd5fP/K/Waxw913JkU4Q6TDqcl bTV31EkXW67JRDqOBxDjdnhPplUmbCF/L78fi7lQCVdHdJVivANCojyE; Authentication-Results: sj-dkim-3.cisco.com; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com verified; ); Cc: FreeBSD Tinderbox , John Birrell , current@freebsd.org, sparc64@freebsd.org Subject: Re: [head tinderbox] failure on sparc64/sun4v 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: Sat, 04 Nov 2006 11:30:38 -0000 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. > Ahh... cool.. I have been wondering if I should not just waste a few more bytes and move all 16 bit counts that we play with atomically to 32 bit.. I will do so.. it will make life easier for all concerned :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)