From owner-freebsd-mips@FreeBSD.ORG Tue Oct 7 21:59:28 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2DA01065687 for ; Tue, 7 Oct 2008 21:59:28 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id AEAEC8FC16 for ; Tue, 7 Oct 2008 21:59:28 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: by gxk14 with SMTP id 14so7175009gxk.19 for ; Tue, 07 Oct 2008 14:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Hro3iyJ0p0i7ziGBAZvtBAVUJDS/v9592ECHd1+Chqg=; b=ZmWRDWDRPxXjlE9/8ALAKmNNNos7MIlyswKMyy0CXfwunF1ZwtF+dIpgYDQ+ur9epa 5HEKPCQofRKIvBNUC/3LObDwIXnvxjULM4hmhMAVeQ67mmdKglrG1pTy8A+DTvSs0+OO plEWxq/6ytRUk1qzKxd3qrpHxO+3Alt8amy4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=udUTfrQAYG5sSnH+RORW42b3pWuPguvuFDLk/uM42fRCLZ0Xqu/DfGhgyGU8rbTneK hOBXjjOdlTtHp46R9BDdh3KPI8iTd4JSj4/IOrGCItNrRovyTe/SFtPD5iTdNxr8mo8c PMXb/KHRVgfiAHmL80WmdgZ8Cf4F1GJvjNnro= Received: by 10.90.94.12 with SMTP id r12mr8109382agb.28.1223415076783; Tue, 07 Oct 2008 14:31:16 -0700 (PDT) Received: by 10.90.94.14 with HTTP; Tue, 7 Oct 2008 14:31:16 -0700 (PDT) Message-ID: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> Date: Tue, 7 Oct 2008 14:31:16 -0700 From: "alan yang" To: freebsd-mips@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 21:59:29 -0000 hi, there, i would like to port freebsd onto Cavium (CN5860 eval) wonder people could shed some light on which branch to get / where that's most close to Cavium. thanks in advance. alan From owner-freebsd-mips@FreeBSD.ORG Tue Oct 7 23:07:31 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18E66106568B for ; Tue, 7 Oct 2008 23:07:31 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 260678FC20 for ; Tue, 7 Oct 2008 23:07:30 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m97N696Q006159; Tue, 7 Oct 2008 17:06:09 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 07 Oct 2008 17:07:08 -0600 (MDT) Message-Id: <20081007.170708.-1540438263.imp@bsdimp.com> To: alancyang@gmail.com From: "M. Warner Losh" In-Reply-To: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> References: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 23:07:31 -0000 In message: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> "alan yang" writes: : i would like to port freebsd onto Cavium (CN5860 eval) wonder people : could shed some light on which branch to get / where that's most close : to Cavium. There's an out of tree 32-bit version that's been ported to the CN3800. There's some issues with the code such that I can't give it out right now, or I'd have it in the tree... Warner From owner-freebsd-mips@FreeBSD.ORG Wed Oct 8 22:26:06 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93F031065687 for ; Wed, 8 Oct 2008 22:26:06 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 453B28FC23 for ; Wed, 8 Oct 2008 22:26:06 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so733837yxb.13 for ; Wed, 08 Oct 2008 15:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=x9w4gxZVSf2OJ+v+qmBq3Mi+JNfwzoNNio9udn1CW/A=; b=FDYuYquZbXIGun8jcUhBoD//GCdMlSai4qXw8EoSBqXbWqkHUZ7DSpQaV7yEkzRkYL L7f5I/RJ4FlKxKP5xwRbw6OoD1L1REuKVciSv0b11HL3wN6GzvRgg+UFqRI/mdOQCwy0 xKzNjXO81pj/4TxzeZqO2mN4ciUjt17Ufp+eY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=NI6w5mMc6idhhNnpmyB6Q5QyN59N2eic05ByUIIDdeEFR0VdpxAc1cliIWvhcKSl4m SlYj7tjS2MztWBnFpjXQ5kftc8yy9yZrjxZiVufpjClYvaNPmXQE/CXQOn4tD9f8Yx+l m1V0LuxLSiUHfjWwS5nTF0CGxRCWR9ZKBhyLQ= Received: by 10.90.56.16 with SMTP id e16mr9973928aga.114.1223503226342; Wed, 08 Oct 2008 15:00:26 -0700 (PDT) Received: by 10.90.86.20 with HTTP; Wed, 8 Oct 2008 15:00:26 -0700 (PDT) Message-ID: <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> Date: Wed, 8 Oct 2008 15:00:26 -0700 From: "Jerry Toung" To: "M. Warner Losh" In-Reply-To: <20081007.170708.-1540438263.imp@bsdimp.com> MIME-Version: 1.0 References: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> <20081007.170708.-1540438263.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 22:26:06 -0000 if you can get the SDK from Cavium, that'll help. They wrote their code for Linux, but it is a very good start when going to FreeBSD. On Tue, Oct 7, 2008 at 4:07 PM, M. Warner Losh wrote: > In message: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> > "alan yang" writes: > : i would like to port freebsd onto Cavium (CN5860 eval) wonder people > : could shed some light on which branch to get / where that's most close > : to Cavium. > > There's an out of tree 32-bit version that's been ported to the > CN3800. There's some issues with the code such that I can't give it > out right now, or I'd have it in the tree... > > Warner > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Wed Oct 8 22:34:33 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34416106568A for ; Wed, 8 Oct 2008 22:34:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E4ED98FC1B for ; Wed, 8 Oct 2008 22:34:32 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m98MWYUj036333; Wed, 8 Oct 2008 16:32:34 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 08 Oct 2008 16:33:36 -0600 (MDT) Message-Id: <20081008.163336.-325781299.imp@bsdimp.com> To: jrytoung@gmail.com From: "M. Warner Losh" In-Reply-To: <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> References: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> <20081007.170708.-1540438263.imp@bsdimp.com> <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 22:34:33 -0000 In message: <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> "Jerry Toung" writes: : if you can get the SDK from Cavium, that'll help. : They wrote their code for Linux, but it is a very good : start when going to FreeBSD. The code I have is from Cavium, but I need to sort out some rights details... Also, the SDK code from Cavium is GPL'd, which makes it harder to just bring in... Warner : On Tue, Oct 7, 2008 at 4:07 PM, M. Warner Losh wrote: : : > In message: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> : > "alan yang" writes: : > : i would like to port freebsd onto Cavium (CN5860 eval) wonder people : > : could shed some light on which branch to get / where that's most close : > : to Cavium. : > : > There's an out of tree 32-bit version that's been ported to the : > CN3800. There's some issues with the code such that I can't give it : > out right now, or I'd have it in the tree... : > : > Warner : > _______________________________________________ : > freebsd-mips@freebsd.org mailing list : > http://lists.freebsd.org/mailman/listinfo/freebsd-mips : > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" : > From owner-freebsd-mips@FreeBSD.ORG Wed Oct 8 23:40:38 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2A0F10656A5 for ; Wed, 8 Oct 2008 23:40:38 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.240]) by mx1.freebsd.org (Postfix) with ESMTP id 775378FC16 for ; Wed, 8 Oct 2008 23:40:38 +0000 (UTC) (envelope-from alancyang@gmail.com) Received: by hs-out-0708.google.com with SMTP id 54so1453636hsz.11 for ; Wed, 08 Oct 2008 16:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=OWm1Cs3ZlWdfZ7Z6aFqT04pMU8vCC0TJOfX6B/m9Xw8=; b=roZ5+PHJDIv8pm5vvjF0rkVNHb3ozptxfcb4We+mMcabblj1Rf77nSEtLAoAZ3Qp77 XbXkoaH/WuuQidluNyiU8izeQ0ztlvjejPa6YXuXfSR5kfXRP4I+ktoWgRaun89FC4Cw Dcn/jgD1Wc3g47bgGLALlJHaQgd0sriQpFAxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VDqLzuLhlDb088tJgF17oS2AdI+SeEgbxpoXyRHNVuWfFZJwSF7PPgZLlRAgd7j/LD S9edLHOVoeoKOtNRTjP9QlNThxilBTWtK16H4TXM0EJYEMTY06hDiw7KfaI20JymzDZD K+UNAPl9H5dJ40KKue9eA+2/QyBLfuIztq6RE= Received: by 10.90.98.13 with SMTP id v13mr10129484agb.54.1223509237222; Wed, 08 Oct 2008 16:40:37 -0700 (PDT) Received: by 10.90.94.14 with HTTP; Wed, 8 Oct 2008 16:40:37 -0700 (PDT) Message-ID: <290865fd0810081640t519fae12v3fa3e0ae312b1dac@mail.gmail.com> Date: Wed, 8 Oct 2008 16:40:37 -0700 From: "alan yang" To: "M. Warner Losh" In-Reply-To: <20081008.163336.-325781299.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> <20081007.170708.-1540438263.imp@bsdimp.com> <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> <20081008.163336.-325781299.imp@bsdimp.com> Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 23:40:38 -0000 Hi, Warner, wounder you are looking at rough time line sorting out rights for a release. I have Cavium SDK, if people could shed some light on porting guidance / procedures I would start experimenting it. On Wed, Oct 8, 2008 at 3:33 PM, M. Warner Losh wrote: > In message: <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> > "Jerry Toung" writes: > : if you can get the SDK from Cavium, that'll help. > : They wrote their code for Linux, but it is a very good > : start when going to FreeBSD. > > The code I have is from Cavium, but I need to sort out some rights > details... Also, the SDK code from Cavium is GPL'd, which makes it > harder to just bring in... > > Warner > > : On Tue, Oct 7, 2008 at 4:07 PM, M. Warner Losh wrote: > : > : > In message: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> > : > "alan yang" writes: > : > : i would like to port freebsd onto Cavium (CN5860 eval) wonder people > : > : could shed some light on which branch to get / where that's most close > : > : to Cavium. > : > > : > There's an out of tree 32-bit version that's been ported to the > : > CN3800. There's some issues with the code such that I can't give it > : > out right now, or I'd have it in the tree... > : > > : > Warner > : > _______________________________________________ > : > freebsd-mips@freebsd.org mailing list > : > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > : > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > : > > From owner-freebsd-mips@FreeBSD.ORG Wed Oct 8 23:50:44 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18B601065696 for ; Wed, 8 Oct 2008 23:50:44 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (unknown [IPv6:2001:240:585:2:203:6dff:fe1a:4ddc]) by mx1.freebsd.org (Postfix) with ESMTP id A487E8FC1D for ; Wed, 8 Oct 2008 23:50:43 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from [10.1.1.53] ([10.1.1.53]) (authenticated bits=0) by lakerest.net (8.14.1/8.14.1) with ESMTP id m98NoWf4098801 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 8 Oct 2008 19:50:39 -0400 (EDT) (envelope-from rrs@lakerest.net) DKIM-Signature: a=rsa-sha1; c=simple/simple; d=lakerest.net; s=mail; t=1223509840; h=Cc:Message-Id:From:To:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date:References: X-Mailer; b=rmRHhjAl9RkSk+6oA8kIivypQQy/XNdsFweftEvVWuTJ2WlvaHxnOg7 Kz5EDaFDXQCbrvyV9D47vaG32Q4CINA== Message-Id: From: Randall Stewart To: "alan yang" In-Reply-To: <290865fd0810081640t519fae12v3fa3e0ae312b1dac@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Wed, 8 Oct 2008 19:50:31 -0400 References: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com> <20081007.170708.-1540438263.imp@bsdimp.com> <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com> <20081008.163336.-325781299.imp@bsdimp.com> <290865fd0810081640t519fae12v3fa3e0ae312b1dac@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 23:50:44 -0000 Alan: We did the port.. I helped lead here... had it working PERFECTLY on a 38xx 16 core machine (only one core.. did not do the SMP stuff.. it was on my todo list BEFORE I left cisco). But has warner points out there are ISSUES with the code. He has a MUCH better handle on the code release issues.. one company claims its there until some event happens... not sure of the details.. Basically until Cavium says yes you can release it and that the few files (there are only a couple) are your choice GPL and BSD license I don't see how we can proceed... This is a license issue ... NOT a technology issue. R On Oct 8, 2008, at 7:40 PM, alan yang wrote: > Hi, Warner, wounder you are looking at rough time line sorting out > rights for a release. > I have Cavium SDK, if people could shed some light on porting guidance > / procedures I would start experimenting it. > > On Wed, Oct 8, 2008 at 3:33 PM, M. Warner Losh wrote: >> In message: <86068e730810081500rb7e5f9cv392ac169a184f229@mail.gmail.com >> > >> "Jerry Toung" writes: >> : if you can get the SDK from Cavium, that'll help. >> : They wrote their code for Linux, but it is a very good >> : start when going to FreeBSD. >> >> The code I have is from Cavium, but I need to sort out some rights >> details... Also, the SDK code from Cavium is GPL'd, which makes it >> harder to just bring in... >> >> Warner >> >> : On Tue, Oct 7, 2008 at 4:07 PM, M. Warner Losh >> wrote: >> : >> : > In message: <290865fd0810071431r74fb563bi4f8f5ca443749dcb@mail.gmail.com >> > >> : > "alan yang" writes: >> : > : i would like to port freebsd onto Cavium (CN5860 eval) wonder >> people >> : > : could shed some light on which branch to get / where that's >> most close >> : > : to Cavium. >> : > >> : > There's an out of tree 32-bit version that's been ported to the >> : > CN3800. There's some issues with the code such that I can't >> give it >> : > out right now, or I'd have it in the tree... >> : > >> : > Warner >> : > _______________________________________________ >> : > freebsd-mips@freebsd.org mailing list >> : > http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> : > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org >> " >> : > >> > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips- > unsubscribe@freebsd.org" > ------------------------------ Randall Stewart 803-317-4952 (cell) 803-345-0391(direct) From owner-freebsd-mips@FreeBSD.ORG Thu Oct 9 02:54:52 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AD8E1065698 for ; Thu, 9 Oct 2008 02:54:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 046A18FC16 for ; Thu, 9 Oct 2008 02:54:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m992rG5o039251; Wed, 8 Oct 2008 20:53:16 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 08 Oct 2008 20:54:18 -0600 (MDT) Message-Id: <20081008.205418.1411163205.imp@bsdimp.com> To: rrs@lakerest.net From: "M. Warner Losh" In-Reply-To: References: <20081008.163336.-325781299.imp@bsdimp.com> <290865fd0810081640t519fae12v3fa3e0ae312b1dac@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 02:54:52 -0000 In message: Randall Stewart writes: : But has warner points out there are ISSUES with the code. He has a MUCH : better handle on the code release issues.. one company claims its there : until some event happens... not sure of the details.. The issues aren't technical, but the short version is that I've not received permission from the copyright owner to release the code. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Oct 9 15:32:23 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDE53106569B for ; Thu, 9 Oct 2008 15:32:23 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id A6B6A8FC1F for ; Thu, 9 Oct 2008 15:32:23 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Knx94-0005vp-7a for freebsd-mips@freebsd.org; Thu, 09 Oct 2008 08:09:42 -0700 Message-ID: <19900967.post@talk.nabble.com> Date: Thu, 9 Oct 2008 08:09:42 -0700 (PDT) From: "Izzy K." To: freebsd-mips@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: rjdfhorn_06@yahoo.com X-Mailman-Approved-At: Thu, 09 Oct 2008 16:35:11 +0000 Subject: MIPS...detecting least significant bit. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 15:32:23 -0000 I'm working on an assignment and have reached a road block. If I have a 16 bit integer like: 0000 0000 0000 0100 how would I check to see what the value in the LEAST significant bit is? Basically, how would I check to see if the least significant bit is 0 or 1? How would I code it? I am a beginner at MIPS...is there a simple instruction that detects this? Please help me. -- View this message in context: http://www.nabble.com/MIPS...detecting-least-significant-bit.-tp19900967p19900967.html Sent from the freebsd-mips mailing list archive at Nabble.com. From owner-freebsd-mips@FreeBSD.ORG Thu Oct 9 19:41:34 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A7FA106568A for ; Thu, 9 Oct 2008 19:41:34 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.187]) by mx1.freebsd.org (Postfix) with ESMTP id CE9B28FC08 for ; Thu, 9 Oct 2008 19:41:33 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so101099rne.12 for ; Thu, 09 Oct 2008 12:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=wkm3AoDm+n3H2PISSUp6gz6UUq9PI5nyq1SIlZ4m7yQ=; b=Hl1y15DFUiOSfem1yxl7LRNUC75R5r7fSF6kwBvlydLDz2f34f4waVOgSe8lUWR3HX MPdob8x1Bu1kh8ri9KZXqMQmqEatZ/HtsXjqUWB6OsOL4TpTwDVFmFyRbxKV7BhIrNg7 VaLGDdrpslu5Pmqa152z9TRdDQrC/BN/IkLyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=htmrXA5Kol2ZzExvjGgqWGy2xH3YTOIvKSv0R1nO7oTbM9xZcZ3ZKEjvLBYR9ndHEJ omfAJnbnGUBjJa0nThs3aSav1Fv9WWN+924zB+mTO5jR/ulU0J10fp3iZuxbK4m4YQ0s r5E1rCOQ3Dwyx1VmTwyWnlJUlV97H1n3hp9PU= Received: by 10.90.103.13 with SMTP id a13mr385157agc.69.1223580938919; Thu, 09 Oct 2008 12:35:38 -0700 (PDT) Received: by 10.90.86.20 with HTTP; Thu, 9 Oct 2008 12:35:38 -0700 (PDT) Message-ID: <86068e730810091235q3f41b5a3w4dbc38fb23164483@mail.gmail.com> Date: Thu, 9 Oct 2008 12:35:38 -0700 From: "Jerry Toung" To: "M. Warner Losh" In-Reply-To: <20081008.205418.1411163205.imp@bsdimp.com> MIME-Version: 1.0 References: <20081008.163336.-325781299.imp@bsdimp.com> <290865fd0810081640t519fae12v3fa3e0ae312b1dac@mail.gmail.com> <20081008.205418.1411163205.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 19:41:34 -0000 On Wed, Oct 8, 2008 at 7:54 PM, M. Warner Losh wrote: > > > > The issues aren't technical, but the short version is that I've not > received permission from the copyright owner to release the code. > > > Hi Warner, are you able to run the build on FreeBSD or is it cross-built ? what version of your FreeBSD is running on CN38xx ? thank you, Jerry From owner-freebsd-mips@FreeBSD.ORG Thu Oct 9 19:47:38 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B950106568A for ; Thu, 9 Oct 2008 19:47:38 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id E30DA8FC2D for ; Thu, 9 Oct 2008 19:47:37 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so36651wra.27 for ; Thu, 09 Oct 2008 12:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=2UIFKUGODvIYd9YMryk3HmX7+ORUvUWxJAzeINsJj7M=; b=wzS86Pyl+FNKYMY6tZxjbioylumTmCReLBU4akDPIBNDw5O8oKsSDaimCAQtQTtIlY GSW9WEAXs+oB7WKeblzSy0kBHZwddz7v8cXt/gorp7ZER6DTtNn0RWDITm5W7D9DWERj CTGSY0jXnNjGTQN21WJCfAXfZIuiOgq5hCiwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=KWNbDdTrCJgbePTGdZkdk05rC1rCi2Kqnp1IED61mW/ib+iSXTzqvVBu5RlpzstHjT fOWugWoJsfH04igNPPIWw7dAuIwG2qGDT49QgcrvjQkP07KwJRGDJ9F19nL11fajZ3Rj Dnhh/hfuEH81HkZDRSLVuJ97oV09b+3tEiQnU= Received: by 10.151.107.8 with SMTP id j8mr608150ybm.163.1223578719290; Thu, 09 Oct 2008 11:58:39 -0700 (PDT) Received: by 10.150.137.11 with HTTP; Thu, 9 Oct 2008 11:58:39 -0700 (PDT) Message-ID: <5f67a8c40810091158y4a334f17g7ee25f67888e84e8@mail.gmail.com> Date: Thu, 9 Oct 2008 14:58:39 -0400 From: "Zaphod Beeblebrox" To: "Izzy K." In-Reply-To: <19900967.post@talk.nabble.com> MIME-Version: 1.0 References: <19900967.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: MIPS...detecting least significant bit. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 19:47:38 -0000 On Thu, Oct 9, 2008 at 11:09 AM, Izzy K. wrote: > > I'm working on an assignment and have reached a road block. If I have a 16 > bit integer like: > > 0000 0000 0000 0100 > > how would I check to see what the value in the LEAST significant bit is? > Basically, how would I check to see if the least significant bit is 0 or 1? > How would I code it? I am a beginner at MIPS...is there a simple > instruction > that detects this? Please help me. My first guess at the solution (and forgive me for not knowing the MIPS instruction set --- so I'm just speaking in general machine language terms) is to loop while left shifting and testing with an AND 0x01. You need to count the loops to know when you encountered the first bit set. Now... often the result of the left shift sets a status register based on the previous value of the 0 bit (carry or underflow?) ... so your loop might be an instruction shorter --- not requiring the AND --- if this is the case. Now... this all seems rather fundamental. Even the brute force case of AND'ing with a bunch of values might pipeline well. Are you sure you should be taking this course? From owner-freebsd-mips@FreeBSD.ORG Thu Oct 9 19:51:53 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F09A1065686 for ; Thu, 9 Oct 2008 19:51:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 48B8A8FC21 for ; Thu, 9 Oct 2008 19:51:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m99JpAcH057407; Thu, 9 Oct 2008 13:51:10 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 09 Oct 2008 13:52:13 -0600 (MDT) Message-Id: <20081009.135213.-1585756288.imp@bsdimp.com> To: jrytoung@gmail.com From: "M. Warner Losh" In-Reply-To: <86068e730810091235q3f41b5a3w4dbc38fb23164483@mail.gmail.com> References: <20081008.205418.1411163205.imp@bsdimp.com> <86068e730810091235q3f41b5a3w4dbc38fb23164483@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Cavium port X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 19:51:53 -0000 In message: <86068e730810091235q3f41b5a3w4dbc38fb23164483@mail.gmail.com> "Jerry Toung" writes: : On Wed, Oct 8, 2008 at 7:54 PM, M. Warner Losh wrote: : : > : > : > : > The issues aren't technical, but the short version is that I've not : > received permission from the copyright owner to release the code. : > : > : > Hi Warner, : are you able to run the build on FreeBSD or is it cross-built ? Both, although the version I'm running now is cross-built. I'll be doing native builds soon enough... : what version of your FreeBSD is running on CN38xx ? FreeBSD -current as of Tuesday. Prior versions of -current have worked as well. Warner From owner-freebsd-mips@FreeBSD.ORG Thu Oct 9 19:55:35 2008 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ED22106568B for ; Thu, 9 Oct 2008 19:55:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 377788FC20 for ; Thu, 9 Oct 2008 19:55:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m99Jr7Om057421; Thu, 9 Oct 2008 13:53:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 09 Oct 2008 13:54:10 -0600 (MDT) Message-Id: <20081009.135410.1613257537.imp@bsdimp.com> To: zbeeble@gmail.com From: "M. Warner Losh" In-Reply-To: <5f67a8c40810091158y4a334f17g7ee25f67888e84e8@mail.gmail.com> References: <19900967.post@talk.nabble.com> <5f67a8c40810091158y4a334f17g7ee25f67888e84e8@mail.gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@FreeBSD.org, rjdfhorn_06@yahoo.com Subject: Re: MIPS...detecting least significant bit. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 19:55:35 -0000 In message: <5f67a8c40810091158y4a334f17g7ee25f67888e84e8@mail.gmail.com> "Zaphod Beeblebrox" writes: : On Thu, Oct 9, 2008 at 11:09 AM, Izzy K. wrote: : : > : > I'm working on an assignment and have reached a road block. If I have a 16 : > bit integer like: : > : > 0000 0000 0000 0100 : > : > how would I check to see what the value in the LEAST significant bit is? : > Basically, how would I check to see if the least significant bit is 0 or 1? : > How would I code it? I am a beginner at MIPS...is there a simple : > instruction : > that detects this? Please help me. : : : My first guess at the solution (and forgive me for not knowing the MIPS : instruction set --- so I'm just speaking in general machine language terms) : is to loop while left shifting and testing with an AND 0x01. You need to : count the loops to know when you encountered the first bit set. Now... : often the result of the left shift sets a status register based on the : previous value of the 0 bit (carry or underflow?) ... so your loop might be : an instruction shorter --- not requiring the AND --- if this is the case. : : Now... this all seems rather fundamental. Even the brute force case of : AND'ing with a bunch of values might pipeline well. Are you sure you should : be taking this course? Or you could just call ffs. FFS(3) FreeBSD Library Functions Manual FFS(3) NAME ffs, ffsl, fls, flsl -- find first or last bit set in a bit string Warner