Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4301803ybi; Mon, 3 Jun 2019 08:41:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8I2j8Qn8i4pxedLSYuCJ+A9E1UF2RTwx9TBOgQ7uH0EFDuc8OA2yU58+kxTg+xT8pJvj1 X-Received: by 2002:a63:184d:: with SMTP id 13mr29219366pgy.346.1559576516097; Mon, 03 Jun 2019 08:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559576516; cv=none; d=google.com; s=arc-20160816; b=0skj2P5Sfj7qjSEG/9UxGuNq/IjrQiP+5hBEzyb4px7ujeo2ACxngPUR81PN90yjb8 SRNBt58gzagTQFo4ZA3htMJLX7twJ+Bb06Sjo/OSizvncwtQ2YGnGfXfYD5Y0+ylYZXr zgWBSpEh24YQEDQaP411aROFCeaSJmc/OOCLSP79yaupnveq5LES0rCtMnJ8RlxYtIBz oVj/TtOvNx5eNbI3IiMoqY8I5M250cUQ68gWSF4oowL9Xoup5Uoe+o3iIQCwnqh3iPBU Eo0R/3MLdgqYKeseIk8MwdAEODvqHRWmTwzFmtvf1+upDXN2V3liTawR1uZETvTVqWg9 vhyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=hphZdPDGzesxi4f2dxYOudDZgbilETjRvECx0n0Na+I=; b=mQHciGUKyByx3vqz6QTSNHKMO6B7g+Ou+xI5+1/SYXnnn+ioCSmYUjP8JQvKfHI0Oc UX9vka5e0detIZcNNB90R2qQzXjwB91Hl4Uajk0OuZTU+U7MyFJp/5SDVQ+k8JwuZx7z To7+y4q8qNXwsNmTrq8SCug9jFzbBIolX8exJCIkvUv72IWUd7KnTy7meTishbcb+dwO VINmqxQH6VUS0bk7ESeO/GxbWxO2AzYBb+diQKrVuSxxBb/+gYwirNo0EBawwm0OXFC7 FDmCDRN3JsRdKrKoxZB7rcM0rzZovmwlU3ye6luqSKUaNPueqLh+s5ZbeYhFghSrDb5+ zRdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=JAdMMiNO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si18404595pgg.450.2019.06.03.08.41.37; Mon, 03 Jun 2019 08:41:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=JAdMMiNO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbfFCPkK (ORCPT + 99 others); Mon, 3 Jun 2019 11:40:10 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:39899 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727343AbfFCPkJ (ORCPT ); Mon, 3 Jun 2019 11:40:09 -0400 Received: by mail-it1-f195.google.com with SMTP id j204so21955075ite.4 for ; Mon, 03 Jun 2019 08:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hphZdPDGzesxi4f2dxYOudDZgbilETjRvECx0n0Na+I=; b=JAdMMiNO9SjXS91lV/fi2ndWJrz1B3Hv1MWUlELlP+3hk8oGwHjUtUkFlz9n46WEoN /jeazPQS5TgsGVsHaVfsCJAYA2aU0b1yd1OjWOf2AgpFkfxYM2KEbVNuUDTbUmyN5Vx3 BEiSPt2/8NQ2UwQPvQg091yZY6MMfJ2QatKz0NNK2QzkGLCkhH54Kf3erU+s+ZkewAwJ JFNRzC0wNCRGiH13mBZ3QauDK977fwSWe+J2++AfK/YwvCAsvb5QX/mdFB1vERCg9a61 iegnWARo95doPvGzhyp6/K+7c6In+K9/0kwDwF4WOGiXjDl7dLLvn1y7zPGKVWHc1hvD JR0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hphZdPDGzesxi4f2dxYOudDZgbilETjRvECx0n0Na+I=; b=NOzorVDzdwgRTaIQjeWuJNG/5/LyA4uBXJsJgU92SHmhPRghmM+hUxhn8a+jy7bQku N2yk3F4eyAuZStTq1chBSog2ZLchOnO9thPPhRruxkCf+AVKyQWRY5ecKHZosPaN37E+ Z89PP88kHfg1fs7lKuOSYVNHkFhrlYdgDzE/QLYtYXf+qKyyIhxhlh070BtxJsDk2SuY yt1SXMXFfxeyVkrya7YTIPwf72ZLs/iglIc7ftvkkrSK+dk1c/zmw9ZBU379i9clDWiQ AiU7JJLYTF0n7bqKkbf+OWMnGaSkQh9/qSjKoT6OeS7ni1RHrIEK/Af61Bvfw4EGY9Q6 E5Wg== X-Gm-Message-State: APjAAAUDupyfBL2RgZeR07PyQHeQFT9IyYumSUmdN/B8ozQGeRmewvsL +oJwSutZP38ZQ3E3UGJPJRVK/Q== X-Received: by 2002:a05:660c:546:: with SMTP id w6mr17465962itk.27.1559576408582; Mon, 03 Jun 2019 08:40:08 -0700 (PDT) Received: from [192.168.1.138] ([216.160.37.230]) by smtp.gmail.com with ESMTPSA id y18sm4922259iob.64.2019.06.03.08.40.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 08:40:07 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Testing the recent RISC-V DT patchsets From: Troy Benjegerdes In-Reply-To: <8636krhubp.fsf@baylibre.com> Date: Mon, 3 Jun 2019 10:40:06 -0500 Cc: Atish Patra , Karsten Merker , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Paul Walmsley Content-Transfer-Encoding: quoted-printable Message-Id: <4999B8C1-C968-4E46-8BE8-72C2907C041B@sifive.com> References: <86o93mpqbx.fsf@baylibre.com> <20190528153542.jfkkwycyc3vu6hld@excalibur.cnev.de> <081611ea-a0d3-b0c9-3e08-8946513f2174@wdc.com> <86woi94lvs.fsf@baylibre.com> <8636krhubp.fsf@baylibre.com> To: Loys Ollivier X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 3, 2019, at 4:49 AM, Loys Ollivier = wrote: >=20 > On Wed 29 May 2019 at 12:25, Troy Benjegerdes = wrote: >=20 >>> On May 29, 2019, at 5:04 AM, Loys Ollivier = wrote: >>>=20 >>> On Wed 29 May 2019 at 00:50, Atish Patra = wrote: >>>=20 >>>> On 5/28/19 8:36 AM, Karsten Merker wrote: >>>>> On Tue, May 28, 2019 at 05:10:42PM +0200, Loys Ollivier wrote: >>>>>> On Tue 28 May 2019 at 01:32, Paul Walmsley = wrote: >>>>>>=20 >>>>>>> An update for those testing RISC-V patches: here's a new branch = of >>>>>>> riscv-pk/bbl that doesn't try to read or modify the DT data at = all, which >>>>>>> should be useful until U-Boot settles down. >>>>> [...] >>>>>>> Here is an Linux kernel branch with updated DT data that can be = booted >>>>>>> with the above bootloader: >>>>>>>=20 >>>>>>> = https://github.com/sifive/riscv-linux/tree/dev/paulw/dts-v5.2-rc1-experime= ntal >>>>>>>=20 >>>>>>> A sample boot log follows, using a 'defconfig' build from that = branch. >>>>>>=20 >>>>>> Thanks Paul, I can confirm that it works. >>>>>>=20 >>>>>> Something is still unclear to myself. >>>>>> Using FSBL + riscv-pk/bbl the linux kernel + device tree boots. >>>>>> Neither FSBL nor riscv-pk/bbl are modifying the DT. >>>>>>=20 >>>>>> Using FSBL + OpenSBI + U-Boot the same kernel + device tree hangs = on >>>>>> running /init. >>>>>>=20 >>>>>> Would you have any pointer on what riscv-pk does that = OpenSBI/U-boot doesn't ? >>>>>> Or maybe it is the other way around - OpenSBI/U-boot does = something that >>>>>> extra that should not happen. >>>>>=20 >>>>> Hello, >>>>>=20 >>>>> I don't know which version of OpenSBI you are using, but there is >>>>> a problem with the combination of kernel 5.2-rc1 and OpenSBI >>>>> versions before commit >>>>>=20 >>>>> = https://github.com/riscv/opensbi/commit/4e2cd478208531c47343290f15b577d40c= 82649c >>>>>=20 >>>>> that can result in a hang on executing init, so in case you >>>>> should be using an older OpenSBI build that might be the source >>>>> of the problem that you are experiencing. >>>>>=20 >>>>> Regards, >>>>> Karsten >>>>>=20 >>>>=20 >>>> I verified the updated DT with upstream kernel for the boot flow = OpenSBI=20 >>>> + U-Boot + Linux or OpenSBI + Linux. >>>>=20 >>>> OpenSBI should be compiled for sifive platform with following = additional=20 >>>> argument >>>>=20 >>>> FW_PAYLOAD_FDT_PATH=3D>>> source>/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb >>>>=20 >>>> FYI: It will only work when kernel is given a payload to = U-Boot/OpenSBI=20 >>>> directly. >>>>=20 >>>=20 >>> Hum, I am surprised by this statement. >>> I was able to verify the latest DT patch serie from Paul with: >>> OpenSBI + U-Boot + Linux & DT. >>>=20 >>> Following the OpenSBI documentation [0] with U-Boot payload: >>> FW_PAYLOAD_PATH=3D/u-boot.bin >>>=20 >>> I get an U-Boot prompt and then I can just load the linux kernel and >>> device tree from the network. >>>=20 >>> [0]: = https://github.com/riscv/opensbi/blob/master/docs/platform/sifive_fu540.md= #building-sifive-fu540-platform >>>=20 >>=20 >> Could you confirm which git hash of U-boot you are building, and that = the .config matches >> the defconfig (or send me the .config you used)? >=20 > Sure, >=20 > OpenSBI: a6395acd6cb2c35871481d3e4f0beaf449f8c0fd > U-Boot: (origin/master) 344a0e4367d0820b8eb2ea4a90132433e038095f > Kernel: from Paul from this thread [1] >=20 > I use the sifive_fu540_defconfig of U-Boot with no additional changes. >=20 > [1] = https://github.com/sifive/riscv-linux/tree/dev/paulw/dts-v5.2-rc1-experime= ntal >=20 >>=20 >> I=E2=80=99d like to get everything that=E2=80=99s working integrated = in one place into a freedom-u-sdk test branch. >>=20 >>=20 >=20 > Let me know the test branch when it's up :) >=20 > Loys >=20 Have a look at https://github.com/tmagik/freedom-u-sdk/tree/dev/u-boot I need to fill in the makefiles (and set up our lab TFTP server) so=20 =E2=80=98make test=E2=80=99 builds and runs everything. The first time I tried I got an endless string of exceptions, and how I = get this: OpenSBI v0.3 (Jun 3 2019 08:04:44) ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : SiFive Freedom U540 Platform HART Features : RV64ACDFIMSU Platform Max HARTs : 5 Current Hart : 4 Firmware Base : 0x80000000 Firmware Size : 92 KB Runtime SBI Version : 0.1 PMP0: 0x0000000080000000-0x000000008001ffff (A) PMP1: 0x0000000000000000-0x0000007fffffffff (A,R,W,X) U-Boot 2019.07-rc3-00047-ga8a796e (Jun 03 2019 - 07:54:59 -0700) CPU: rv64imafdc Model: sifive,hifive-unleashed-a00 DRAM: 8 GiB In: serial@10010000 Out: serial@10010000 Err: serial@10010000 Net: =20 >>>> Network booting is still not working as the clock driver probe = doesn't >>>> happen because of the updated DT. >>>>=20 >>>> --=20 >>>> Regards, >>>> Atish >>>=20 >>> _______________________________________________ >>> linux-riscv mailing list >>> linux-riscv@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-riscv