From owner-freebsd-mips@freebsd.org Wed Dec 12 22:56:00 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DECB313291F7 for ; Wed, 12 Dec 2018 22:55:59 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh603-vm2.bullet.mail.ssk.yahoo.co.jp (nh603-vm2.bullet.mail.ssk.yahoo.co.jp [182.22.90.43]) by mx1.freebsd.org (Postfix) with SMTP id 3EBD386264 for ; Wed, 12 Dec 2018 22:55:56 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 12 Dec 2018 22:53:43 -0000 Received: from [182.22.91.129] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 12 Dec 2018 22:53:43 -0000 Received: from [127.0.0.1] by omp602.mail.ssk.yahoo.co.jp with NNFMP; 12 Dec 2018 22:53:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 667738.35043.bm@omp602.mail.ssk.yahoo.co.jp Received: (qmail 50946 invoked by uid 60001); 12 Dec 2018 22:53:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1544655223; bh=SkTXRCtKOtFymdSJnQ1KKm8knxFh6Y5F8Ct2xRKNOSY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=maTz/oCtwVBnpJj/4BJKkuqfm4n8tGG8b0pOMyuB89kn3fbf/8F+yBCD+MOEHEZeCG3Irq7NAY2XD5ZdLJncRfT/e6uZGa2VFiog4P8FrRiaWCaEluZafHnPLSxgkwHnCVAF41zFTwvZ8cZdF2eSbikNSVhzm1/LUnzuGQxaYAs= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TFPRrp8VT5fhqwhI3w9O2nAJmf4xOpEonAdIPizHntYjFzrHK+ky0enIgmWlhgU6qk/H0NJDKYDI178jr2ap7lMVhWqRmxLWet3SWzw1+aM2anN0q4/T2DTE5EkHNitSU8WaxtTCWbTwJ7T4+SEqKWge95kSB9nbLlgU05AE0EA=; Message-ID: <367298.45441.qm@web103901.mail.ssk.yahoo.co.jp> X-YMail-OSG: IfuVqhwVM1mWp4fdN0Bh_mB41HJOVOO7JPZ3.IElGo1ZCX.fYewHu1nBmXqDzFcnWCDttEKjwmI_rUNwnnKyWO9FI4TilXjk0tm5gcaI0.DPyoeVsWDUf4T3SWVPTgpCUSeSsaqwf6_AvqgrwPwLzkZ0yjvL.FKUYBCjZ5U.hYgCjEMcA.4c0NoAO8DhF.hDfaF90t8wIj9YtqJzzwWk11LOsdt4MQI2Ucs6eAL_nQp67L9oxUZMvOxZnNzOVVvSxNQUp1pdk7Vrhi_Dge3sFjC0.6pZ82h.gfZ2Wz0oa3l825FRV6eDWpLCOhjWmNdtUfHPm9JO.3TNjd5NaRzgJLhspDxDerLJurSn4dHzhKHybcV8G3_s6v2Lk8iv79a902L5jQWRyHhDVf57GQgYvVahQX.2i9SnUs6mNF2XwkU7M.Rp.3Oa8VvdJmCLMgXkfUYI4L31ZMB8pxGh9J8Zz04EviGhAzqynLas3HOma.kYwM9Y_XYqsT4xzN6YcdDtP_WMimgWrAQVtl5mVmQw68asBvag9bvZPVvEKnncntfsNEyGpcAdwaNtQyTvCaYqaS4_opIQrTZKD_4bXp8kujwf4K0V6IW7ErJrNrsu216GH4ol0f6qzw542CdwUBJY Received: from [203.165.243.65] by web103901.mail.ssk.yahoo.co.jp via HTTP; Thu, 13 Dec 2018 07:53:41 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: LEKpgaQVM1mDfxz46Cx5Ke7fHQtEeaD.lw8InmLwO9bAwPUE0abyIBljfrThWbBci.ihes38H.H0QEg7tBDvwTU0xjWZb8AXk8LjQcosf.R.FSwNP1HBmqv.7nrXhh7lE63t References: Date: Thu, 13 Dec 2018 07:53:41 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: MIPS future... To: Warner Losh , "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 3EBD386264 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=maTz/oCt; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.43 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [2.37 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; MX_GOOD(-0.01)[cached: mx3.mail.yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; IP_SCORE(0.93)[ipnet: 182.22.0.0/17(2.63), asn: 23816(2.11), country: JP(-0.09)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_SPAM_SHORT(0.85)[0.855,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; DMARC_NA(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(1.00)[0.998,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[43.90.22.182.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2018 22:56:00 -0000 =0A=0AHi=0A=0A=0A----- Original Message -----=0A>From: Warner Losh =0A>To: "freebsd-mips@freebsd.org" =0A>D= ate: 2018/12/13, Thu 07:15=0A>Subject: Re: MIPS future...=0A> =0A>On Wed, D= ec 12, 2018 at 11:15 AM Warner Losh wrote:=0A>=0A>> OK. To= be a good player in the FreeBSD ecosystem, we need to do=A0 a few=0A>> thi= ngs.=0A>>=0A>> First, we need to implement atomic_swap_64. hps did this for= mips64 and=0A>> committed it. He sent me some further patches for it that = I need to commit=0A>> when I get a change, maybe at the airport tonight.=0A= >>=0A>> But this brings up a couple of issues I'd like to bring up.=0A>>=0A= >> First, to implement atomic_swap_64 on mips-32 is hard. In that it's not= =0A>> just the canonical ldd/sdd sequence because those aren't available th= ere.=0A>> We can do the standard trick of reading STATUS0, clearing IE, sto= ring it,=0A>> do the operation and then restoring STATUS0. This is efficien= t enough for=0A>> the use in the kernel for the supported cores we have.=0A= >>=0A>> With two exceptions. First is running 32-bit kernels on 64-bit hard= ware.=0A>> We deprecated that with Octeon because of the weird hacks we nee= ded to do=0A>> too make it work. I'd like to universally deprecate this. Th= ere's little=0A>> benefit and a real cost to doing this. I'd like to remove= the SWARM_SMP,=0A>> XLP, and GXEMUL32 (or at least remove the smp option).= =0A>>=0A>> But there's JZ4780. It's a legit mips32 + SMP. It's on Image Cre= ator's=0A>> CI20. This was released in Nov 2014 with a refresh in March 201= 5. This is a=0A>> dead-end product line (there's no new cores and none new = that I can find).=0A>> This was a RPi competitor, but it was slower, less c= apable and more=0A>> expensive so it's kinda rare now. I'd say we need to d= e-support this=0A>> device. I know of only one user, and he's not responded= to my email. I=0A>> think 12 will have to be the last release we have this= in. Today, the only=0A>> affect is for some drivers that can't run on this= platform, but the writing=0A>> is on the wall.=0A>>=0A>> That brings me to= my next question: SWARM. Can we kill SWARM entirely?=0A>> It's for the BCM= 1250 part, released in sometime before 2000. It was super=0A>> popular beca= use it was the reference for a ton of things that followed. I=0A>> think it= 's run is over and we can remove it. I can find no users of it in=0A>> the = nyc dmesg database. Mine has been in a plastic bag since before my sone=0A>= > was born in 2006... So I'm thinking we can remove this platform. It was o= n=0A>> the edge last time I did a GC in mips-land.=0A>>=0A>> And then there= 's the even larger question: how many people are still using=0A>> mips32? I= t looks like a fair number, maybe, but I have no idea for sure, so=0A>> if = you do, please provide feedback on the platforms you are running FreeBSD=0A= >> 11 or newer on.=0A>>=0A>=0A>There's one last issue this brings up. When = writing the above code, I=0A>discovered I could use the non-racy DI instruc= tion. However, that was=0A>introduced with mips32r2. This was defined in 20= 02 and gear appeared in the=0A>market 2004 or 2005. I believe that all supp= orted SoCs have mips32r2. SWARM=0A>doesn't, which is another reason to kill= it: it's getting in the way and=0A>providing no benefit. Would anybody obj= ect to the minimum ISA being raised=0A>to mips32r2 for all 32-bit mips plat= forms?=0A>=0A>Warner=0A>_______________________________________________=0A>= freebsd-mips@freebsd.org mailing list=0A>https://lists.freebsd.org/mailman/= listinfo/freebsd-mips=0A>To unsubscribe, send any mail to "freebsd-mips-uns= ubscribe@freebsd.org"=0A>=0A>=0A>=0A=0Amips32 is called by 4K=0Amips32r2 is= called by 24K=0A=0AIn current FreeBSD mips support at 4K is Rakink RT2880 = and Atheros=0AAR531x. Ralink RT3050 later and Newer Atheros is 24K or 74K.= =0A=0A=0AAlso Broadcom BCM4712 and BCM5354 is 4K but it's still hangup. Las= t=0ABroadcom MIPS soc that is BCM4718 and BCM5357 is 74K.=0A=0AI have quest= ion. Can do generate 24K code by gcc 4.2.1 and binutils?=0A=0A=0AHiroki Mor= i=0A