From owner-freebsd-mips@freebsd.org Thu Dec 13 20:00:54 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 649861332765 for ; Thu, 13 Dec 2018 20:00:54 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB78C6FA4A for ; Thu, 13 Dec 2018 20:00:53 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72b.google.com with SMTP id o89so1912151qko.0 for ; Thu, 13 Dec 2018 12:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gViqBm8tYwfMh3i+NU29VZOXwAz2ApMlkKhbMq9tCQc=; b=AMHiFxIKETktbV/3gPRcNlL05wLADHU/K1culPi43jk+AsbX/fL8DaSsEkDFfSZ0n9 2riNC7o+8Gy3ahnVpjXIMaSx/nkx5p+qGDJltZdNwvq0vfNtvrBd/4errabrCfnwHBzE SPH6Fgy2DulteSsGEtDpKEE6Yh0qmiDuHWTIw6ZVSTe13+Sz8et7v8r1g0ZSjwURQxEF MvntTExG1BlSdsZah4pKr30JQNgepRn3oH1G8e4g8CsmOugxMiibjP4/3KyqruJkFWtN d0PLqiIzx/sEHG6/ERMjbv0YVh3VUYt+7O/ACQehj6j15oTtikHmt9653CoQ+847OqU0 lCeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gViqBm8tYwfMh3i+NU29VZOXwAz2ApMlkKhbMq9tCQc=; b=hglD0AVeAVBl3uH8g3mQDiX+tklVRvF+fjuyCPzNppEwNw5YX463ON+LFWJUjlh750 EIanXVOPrygT8kjv+REJxoQo94JsNRghvNR6SlXevvsmFN4kjExkIGJ13fyahrMN6cWu yGc3Usqwt3Wj+SJYqFNTmRr1ooYuHPNZEhOoIWttn+9doBh/AMBC8PjGhAk8GF+9u7OM D+UQnq3pEwWYTzVbPvV6LCs1w3fs4kaZ0grlv19pWnXAbyVXyO642Y2uNCIVnw138N+Q LMMt3Gx/XeHyjQefFKYBiFw3a/IlpOZ4+CDPVH4PJmyq7ll5w36BpkDDqHrjQQpzofEJ qqhw== X-Gm-Message-State: AA+aEWbRF/Bnj3WReCC2krrsC1U2qXIMaxDm9O7QuQADGSj3ki1CHeSy EdupcHnJ4B8Kdj6MLE9F+NN9zdZVuaw9seAJiwzj/rmzTwc= X-Google-Smtp-Source: AFSGD/Wzbx5Lw3MOHejECgSV9XZp8NcoYVn+3nULMcgev/z3IZu1/p6O9Wy5UEVspW2haBguf5cZnVUtvOzZPIUqvFg= X-Received: by 2002:a37:9201:: with SMTP id u1mr157619qkd.258.1544731252846; Thu, 13 Dec 2018 12:00:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Thu, 13 Dec 2018 13:00:41 -0700 Message-ID: Subject: Re: MIPS future... To: "freebsd-mips@freebsd.org" X-Rspamd-Queue-Id: AB78C6FA4A X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=AMHiFxIK X-Spamd-Result: default: False [-4.25 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.970,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.33)[ip: (-8.68), ipnet: 2607:f8b0::/32(-1.59), asn: 15169(-1.31), country: US(-0.09)]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[ALT1.aspmx.l.google.com,aspmx.l.google.com,ALT2.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[b.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.93)[-0.934,0]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 13 Dec 2018 20:00:54 -0000 On Wed, Dec 12, 2018 at 11:15 AM Warner Losh wrote: > OK. To be a good player in the FreeBSD ecosystem, we need to do a few > things. > > First, we need to implement atomic_swap_64. hps did this for mips64 and > committed it. He sent me some further patches for it that I need to commit > when I get a change, maybe at the airport tonight. > > But this brings up a couple of issues I'd like to bring up. > > First, to implement atomic_swap_64 on mips-32 is hard. In that it's not > just the canonical ldd/sdd sequence because those aren't available there. > We can do the standard trick of reading STATUS0, clearing IE, storing it, > do the operation and then restoring STATUS0. This is efficient enough for > the use in the kernel for the supported cores we have. > > With two exceptions. First is running 32-bit kernels on 64-bit hardware. > We deprecated that with Octeon because of the weird hacks we needed to do > too make it work. I'd like to universally deprecate this. There's little > benefit and a real cost to doing this. I'd like to remove the SWARM_SMP, > XLP, and GXEMUL32 (or at least remove the smp option). > > But there's JZ4780. It's a legit mips32 + SMP. It's on Image Creator's > CI20. This was released in Nov 2014 with a refresh in March 2015. This is a > dead-end product line (there's no new cores and none new that I can find). > This was a RPi competitor, but it was slower, less capable and more > expensive so it's kinda rare now. I'd say we need to de-support this > device. I know of only one user, and he's not responded to my email. I > think 12 will have to be the last release we have this in. Today, the only > affect is for some drivers that can't run on this platform, but the writing > is on the wall. > > That brings me to my next question: SWARM. Can we kill SWARM entirely? > It's for the BCM1250 part, released in sometime before 2000. It was super > popular because it was the reference for a ton of things that followed. I > think it's run is over and we can remove it. I can find no users of it in > the nyc dmesg database. Mine has been in a plastic bag since before my sone > was born in 2006... So I'm thinking we can remove this platform. It was on > the edge last time I did a GC in mips-land. > > And then there's the even larger question: how many people are still using > mips32? It looks like a fair number, maybe, but I have no idea for sure, so > if you do, please provide feedback on the platforms you are running FreeBSD > 11 or newer on. > I've done a preliminary pass at removing this old support. I've included the mips32 ISA (generally the MIPS4Kc core) removal as well. It's a big review, but I've chopped it into individual commits in case one of them winds up being backed out: https://reviews.freebsd.org/D18543 Warner