Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6625844ybi; Wed, 29 May 2019 10:27:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwphDrqryRWKbfk4nasVd+3jYpg5oVKBLuxShcfjrRdnYrkl7EFY5Vv/X0pD5ONi5cSlcbL X-Received: by 2002:aa7:8a53:: with SMTP id n19mr152153307pfa.11.1559150869526; Wed, 29 May 2019 10:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559150869; cv=none; d=google.com; s=arc-20160816; b=PuNOzqoso4kKKbrBqM7ZGzlaX27/D4rMYRuKe52izd78VAQ0+q567+3/3iwrBWYh8F qYu8eAl3/itpbDum+JP38fiZNALeyrmGNNpQr0OvTW1lHvQDp64C6uc2A3cpLvxdlBUc ecbqY1o0GvE5dLHHKYrsqrMH7H2iKFGjLyNCWII7E88oo8lyIRQn2eS76JRbhe6NlErc a3G0ryAoT0TyfxeHXlTSI+Z6nl3v7WPg3mNXWQNNTX8uf6vdDeq3cn0yWrVWNOtKXMzw 35jQDmUUvpa4iVdy5oFYKfb42jriFUJWRbq5c4ACBAEHJzBK+Oll5ZO4nRkXOi973HlF 91bg== 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=05/fn13tWdkuP2jbzLdgGVw/WPVOyHa3JR8tLqwyzyg=; b=RaM/mZtKU/G7f2ju+FiBRR34/JO57QMrhltBjVqmz+gcRD9jpt1oiBadD60oF+S0dm UrZDTVKlEcVd5K60TXKb77eaj07WbanhvhuCLoNoGpZttcCddroXpz7v9ZKaDYU38muo e7uMWkEpui5Mn0yi62BfeEzVoHyGucnIej3AIbO01jbXCNCWAxiTL5ATmajtAfYMTufL 3CzME6CnM3WbSTqnL4feY0kEeFaZ2NVzqPl1cSyVbpE/loSbdCtBUOpIp6Hg0bxQhxEn /UoQ55+mTPgV4AWsJDHwR5yjE98vfp+yQLNxVdCfpIzzg6weRJN0TnKoTG+3NEnlPJjL CwhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Wp8okvQG; 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 w4si344265pgf.28.2019.05.29.10.27.33; Wed, 29 May 2019 10:27:49 -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=Wp8okvQG; 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 S1727015AbfE2RZN (ORCPT + 99 others); Wed, 29 May 2019 13:25:13 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:50964 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbfE2RZN (ORCPT ); Wed, 29 May 2019 13:25:13 -0400 Received: by mail-it1-f194.google.com with SMTP id a186so5277449itg.0 for ; Wed, 29 May 2019 10:25:12 -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=05/fn13tWdkuP2jbzLdgGVw/WPVOyHa3JR8tLqwyzyg=; b=Wp8okvQG49treFUvGf307mQ1udyHalrmXpAQuVspFNU50zTFPafRYWLfO5nwUiqLaz Oun3HWQHuyee5LnlISk6joiiD3rAlhIvQp3djdac3Lwo7wSKovbpPyU6nqNjQg2A1hu+ YA83HwvXibsJ/e0fJcWwegfNwyMzIFWvLd4bhcbKQgPH88L+gEjdS7VNvapKmWzC+LzZ seulKXe0qOyWe5hJD6IwPJqGLzMRAQ8FjrdzehcqkmS7LDoqfWet0tBBcNoAOqC32EZG Fs8gtwLZGivn8GKBEJiybu97uGZOvP2r8JrgMlKtg5tmZSUfi3fOomiK/aD7OiHbQZFO hvkA== 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=05/fn13tWdkuP2jbzLdgGVw/WPVOyHa3JR8tLqwyzyg=; b=jlmJdZJNsNepNjyJarfe52ObJYDGvCH2ruYTjPqUbUkUOzx+AwbJ/SOOEG//AS2+jk TFX3b2oSuNtl9WC/QehIQbjs0dg2aAwdoCCiPQjIGBT0omQXBLGr4dMr4kso+i5/3IzD pyyG4IY+3TpxQOSEyuN1F76Rh67OHNZYakDrfCV30dLxq2gsKC8W3f1UXqnRa43Rp3GP kDNEu0xFhv1otEzPuRrqxnr8cVGnZOl5+5RceNDlIbKddUjJB7C0pL/naUBYUEthPeQq UBXeut8WbA4i64H7YkK7eM7nazv5OImxAxSE3Bt50Lt0aVdxvNmf4gu7Lhr/o7fhi+xE jKGA== X-Gm-Message-State: APjAAAXKO1siAGzDJhwUjqY+Cv5cGhN/8DqZJcnebz4HUyELdCbS6t13 4pkJalZVNDAKv8nkJqHs1NB5ccAXXlQ= X-Received: by 2002:a24:29cd:: with SMTP id p196mr8834303itp.116.1559150711673; Wed, 29 May 2019 10:25:11 -0700 (PDT) Received: from [192.168.1.196] ([216.160.37.230]) by smtp.gmail.com with ESMTPSA id k18sm1255341itb.0.2019.05.29.10.25.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 10:25:10 -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: <86woi94lvs.fsf@baylibre.com> Date: Wed, 29 May 2019 12:25:09 -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: References: <86o93mpqbx.fsf@baylibre.com> <20190528153542.jfkkwycyc3vu6hld@excalibur.cnev.de> <081611ea-a0d3-b0c9-3e08-8946513f2174@wdc.com> <86woi94lvs.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 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 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)? I=E2=80=99d like to get everything that=E2=80=99s working integrated in = one place into a freedom-u-sdk test branch. >> Network booting is still not working as the clock driver probe = doesn't=20 >> 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