Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2030863ybk; Sun, 17 May 2020 08:04:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrf+6BRm/DoZq7VDbn2bsqTPG0a3lO5THanPOdYJ7Iu7NCu/sNgW8gSiF3En3dVJqyO5c9 X-Received: by 2002:a17:906:c108:: with SMTP id do8mr4760529ejc.134.1589727890613; Sun, 17 May 2020 08:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589727890; cv=none; d=google.com; s=arc-20160816; b=TeXxny53qQh6DU62xwEfj58O1xk3vIITXS8j10PPu4sBKsgtQCTnqbw+IcYA6NW3hL 5hW00Bwf19B5CU5ecGWsisXMovZkF3SJ/awVJr4PkpwpxWVrzBl/D2juAJLk0Bi2enG8 ygWCNr8ktmB2B+3Gw1po77CVzcBsU2gCDydKgkoCa0b9H6ssS1n5NmIoWMBcYklfnVej ObEi6IBEjbY/LBr7zRwRfjiKMH94fh+BzyiniAN0sYj9Qmj/XLQFGNRy9hvkOYNd9+MP NCUxRJsnCKmF3zpPueQetfI4MRzIIwcQpQZVozlR5YKNGc0M6wSf3mXu3PcNBAr/Bo95 jnWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tLlUBQkR53fMDVlTGndVPriLCW43pOz8xWgQ28WfIRM=; b=qKYVrtGtWE0O+AFOulY1GahUS4iMaNtVhzO7UT9BuhGZErYZ/WHWvLKj9vnDByp5BF 7+FIluJfZbWxZ9D+6oTC0HihwkO7kHWHCNTMgCfseP32ULPmLTBcUQeJiGrasLstvn3J 0N0QdT3Z27JBWhu1Kr0xNo2wtndFq4wOUpUdpv2AGLBzvIqrtx6aqptCzBg9I/x8+1xI Zz6T59OyMx0FxZ4F6bVISG0Nk1b6lnvVeXO92WY12MuxhdHOXD25p4ee9Fp2c2L9DBkf GWnXZSHQX41E11OxON799OQvLu006QkKrUCGihHia127XiWSVC7vkuCuqCnJAkDocz47 UeJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si3247187edv.420.2020.05.17.08.04.13; Sun, 17 May 2020 08:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbgEQPBa (ORCPT + 99 others); Sun, 17 May 2020 11:01:30 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59300 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbgEQPBa (ORCPT ); Sun, 17 May 2020 11:01:30 -0400 Received: from ip5f5af183.dynamic.kabel-deutschland.de ([95.90.241.131] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jaKn6-00031w-BG; Sun, 17 May 2020 15:01:24 +0000 Date: Sun, 17 May 2020 17:01:23 +0200 From: Christian Brauner To: David Miller Cc: arnd@arndb.de, guoren@kernel.org, linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 0/3] sparc: port to copy_thread_tls() and struct kernel_clone_args Message-ID: <20200517150123.sl36ug27gwnyz6gf@wittgenstein> References: <20200512171527.570109-1-christian.brauner@ubuntu.com> <20200512.130633.293867428547074800.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200512.130633.293867428547074800.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 01:06:33PM -0700, David Miller wrote: > From: Christian Brauner > Date: Tue, 12 May 2020 19:15:24 +0200 > > > I've tested this series with qemu-system-sparc64 and a Debian Sid image > > and it comes up no problem (Here's a little recording > > https://asciinema.org/a/329510 ). > > Can you show how you put this environment together and also what > compilation tools you used? Looks great. Sorry for the delay. That mail somehow got lost in my inbox. So in general, I used qemu-system-sparc64 which is available in Universe with either Debian or Ubuntu and that's what I've been using as host distro. So you need a deb http://us.archive.ubuntu.com/ubuntu/ universe deb-src http://us.archive.ubuntu.com/ubuntu/ universe deb http://us.archive.ubuntu.com/ubuntu/ -updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ -updates universe int /etc/apt/sources.list So after this, you should be able to install apt install qemu-system-sparc Now we need an image and believe it or not there's a guy who lives in Berlin too who builds Debian images for all crazy architectures. You can download them from: https://cdimage.debian.org/cdimage/ports/ They're built quite frequently. Sometimes you get unlucky because a new kernel won't boot anymore then going a couple of months back usually helps. So for this experiment I downloaded: https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso then I did: cd .local/share/qemu truncate -s 15GB sparc64.img And then to _install_: qemu-system-sparc64 \ -m 4096 \ -device virtio-blk-pci,bus=pciB,drive=hd \ -drive file=/home/brauner/Downloads/debian-9.0-sparc64-NETINST-1.iso,format=raw,if=ide,bus=1,unit=0,media=cdrom,readonly=on \ -drive file=/home/brauner/.local/share/qemu/sparc64.img,format=raw,if=none,id=hd \ -boot order=d \ -net nic \ -net user \ -nographic \ Then the Debian install will run after it finishes you can boot with: qemu-system-sparc64 \ -name debian-unstable-sparc64 -machine sun4u,accel=tcg,usb=off -m 4096 \ -smp 1,sockets=1,cores=1,threads=1 \ -uuid ccd8b5c2-b8e4-4d5e-af19-9322cd8e55bf -rtc base=utc -no-reboot -no-shutdown \ -boot strict=on \ -drive file=/home/brauner/.local/share/qemu/sparc64.img,if=none,id=drive-ide0-0-1,format=raw,cache=none,aio=native \ -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-1,id=ide0-0-1 \ -msg timestamp=on -nographic If the install isn't setting up the repos right and you can't install stuff the correct url is: http://ftp.ports.debian.org/debian-ports/ to put into sources.list > > > This is the sparc specific bit and _if_ you agree with the changes here > > it'd be nice if I could get your review, and if technically correct, > > your ack so I can fold this into a larger series and move on to the next > > arch. > > With the delay slot instruction indentation fixed: > > Acked-by: David S. Miller Thank you, Dave! Christian