Path: csiph.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Rob Landley Newsgroups: linux.kernel Subject: Re: [PATCH v2 31/32] sh: support a 2-byte smp_store_mb Date: Wed, 06 Jan 2016 21:30:02 +0100 Message-ID: References: X-Original-To: Peter Zijlstra Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=vf9LUNvmt5VZfN0bZBMtaHNGT/9XFFQs0wBlLUEDQws=; b=h8Zpi/VonkSw8sxIF0Izqn55BXbjbxUpTfa9OtTYtZEnOyj+oq2BRDSK9oOFI56Gtc krKdMEieRmEewJ2jJLd5EOe16wMwKqS8e32GV/LCM3UNq2zO26e5nmhX4llSDFWuIdYa tnl+f7cZPfvSYEyXWfD1JbjBud/+3y3mLHPlVlglsfATA9xjzBpLzrOAejuGkvKH23GM 78QUALzCFkRyr7lkDwFyIdGadSReLdB1dEsNte4DrSzeaV0TTcGxGBphDQPCyUmn3hVh aPsybySAbEuyzAkrQnXAk2pqJgyNC3KjEfL1bHmQZDnsy+06ytWKVFFpB9hstmo4uGgx jOhA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=vf9LUNvmt5VZfN0bZBMtaHNGT/9XFFQs0wBlLUEDQws=; b=Sf0XpiJDyByxYhhQ4JFfTTXLbYRiUsCTJAajapVOpOIuW6wOX8lzvpOiU45JeDG0nE ZJjtjzomyLqvLbR5F5AXb/qhL/GmF2i9ew7cWmzBxEDyioNY4RYugNi2PqnJWpMxTxsK GJvpjYsA6xgND2+iv7hXONzEU2MdQN7DYiQe1oFSAnPAhXAnPbgKtDP81qb8R4U2ztH5 F4LKWKsxpUdZRUi9mdq3RdMXi6bfXvybzDlvJBCMDpNOw2K4PDdpGpe83SBYch1L4Pmv ktMmVgya2tWYwsgcsrTUsMxqDdfJiiIQWXr3EaDh3GB9lj7IshQpg21xSQk4PmZJY1Oz AYSA== X-Gm-Message-State: ALoCoQnRX5yooT2Tdonu0T+5g8eoImCZoQKS6yBowrC27CUeh2DBL8a4s6tCjLVRlnBMJJmUJfRAVi1YLntjCPDjo+YuS9hpPw== X-Received: by 10.202.197.18 with SMTP id v18mr68399977oif.116.1452111681934; Wed, 06 Jan 2016 12:21:21 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 73 Organization: linux.* mail to news gateway X-Original-Cc: "Michael S. Tsirkin" , Rich Felker , linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, Jeff Dionne , Yoshinori Sato X-Original-Date: Wed, 6 Jan 2016 14:21:19 -0600 X-Original-Message-ID: <568D773F.6000408@landley.net> X-Original-References: <1451572003-2440-1-git-send-email-mst@redhat.com> <1451572003-2440-32-git-send-email-mst@redhat.com> <20160105232735.GC238@brightrain.aerifal.cx> <20160106131321-mutt-send-email-mst@redhat.com> <20160106114023.GU6344@twins.programming.kicks-ass.net> <20160106134301-mutt-send-email-mst@redhat.com> <20160106143218.GV6344@twins.programming.kicks-ass.net> <568D35EB.7090108@landley.net> <20160106165740.GX6344@twins.programming.kicks-ass.net> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1303040 On 01/06/2016 10:57 AM, Peter Zijlstra wrote: > On Wed, Jan 06, 2016 at 09:42:35AM -0600, Rob Landley wrote: >> (I would have thought the presence of working QEMU support would tide us >> over providing an easy basic regression testing environment, but people >> keep insisting that's not real and doesn't count. But if we can keep it >> 99% working until the sh4 patents expire later this year, we can add mmu >> and have full sh4 in hardware again with BSD VHDL.) > > I didn't know there was a 'working' qemu for SH. Yes, for several years now? https://lists.gnu.org/archive/html/qemu-devel/2010-03/msg00976.html I try to build bootable images with each new kernel, although I'm a few versions behind at the moment (this is 4.1 I think?): wget http://landley.net/aboriginal/bin/system-image-sh4.tar.gz tar xvzf system-image-sh4.tar.gz cd system-image-sh4 ./run-emulator.sh There's an sh2eb one in there too, but you need a $50 FPGA board to run it (Numato Mimas v2, setup walkthrough is at http://nommu.org/jcore). I keep meaning to poke at qemu and get their r2d board emulation to give me more than 64 megs of memory so I can do native compiles. (I have a native toolchain but building much more than "hello world" requires setting up a swap file because the board emulation only gives me one virtual disk. None of the other architectures need that...) I'd _also_ like to get proper sh2 support into qemu (sh2 code runs under sh4 but still), but the sh4 patents expire later this year and sometime after that we want to add an MMU to the VHDL, so... (We still want the nommu version because hard realtime is actually easier to verify without page faults, and the big product needs nanosecond accurate timestamps on stuff...) > My personal 'complaint' with SH is its lack of maintainer feedback. I do > full arch sweeps on semi-regular basis, and while I know in very board > terms how a fair number of archs work its impossible to know everything > about all 25+ we support. We (the j-core guys) have wanted to take over arch/sh maintainership for a while, we've just been trying to get the board we're working on in position to be upstreamed first. The feedback on my craptacular first effort to chip off a chunk that other people could at least reproduce against a then-current kernel was "ew" and "redo it all as device tree". So we went away again to work on that... Meanwhile all $DAYJOB's in-house resources (at se-instruments.com) have been tied up making SMP work for a product. (Yes, sh2 SMP. A NOMMU smp system. There were some teething troubles, but it's working now. Alas, not on the above $50 FPGA because that's only got an LX9 FPGA which one SOC instance uses like 2/3 of the gates in. We're doing the SMP stuff in LX45 boards, which are crazy expensive.) I note I just sent a Numato board to the buildroot maintainer so I can walk him through adding jcore support to buildroot. And I got toybox working nommu, and Rich added sh2 support to musl-libc... There has been activity on this arch, just not on this list due to the noise from a bunch of different Renesas arm systems and whatever "arm/shmobile" is. ("Not superh or jcore compatible", that's all I know...) Rob -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/