Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6114960ybi; Wed, 29 May 2019 03:07:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB81llXRTDjrA0BGvdE+v7o+iCYw8umzJEH83paCD0jvgLlwWvmrlvY4Y9gCewYaPdOWad X-Received: by 2002:a65:4649:: with SMTP id k9mr36454615pgr.239.1559124433546; Wed, 29 May 2019 03:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559124433; cv=none; d=google.com; s=arc-20160816; b=qO5ezmM3+T7/9IOevsOWUx7TsGPpmakVYdzGzlzg6YIFY3UmlKNzIcm5KfEq/cARNz VeoFXMQnuUUt0qOwnjXszAPHAxuOzqTbULUCychJVEirKu7oHtI7oh+kCjpxqCueO7oN J0OFnkFhcUi99af6YJ2b61sRi1ASRK6corfG11mPGaabn4exQGFPbEs03KGOyX75WlTb lliL3/mGm+JSPCkuMnQcVZZCv2xEellnTuRPO3sj6PJzt9ghXdhvIILVaZ/EQiMtdk87 JdMfC2clz2NPNk0B6PH4dAY6WoOyXuugTKG9qM9RtbVDUNNnNYl17DCQtipNb5Auu1W9 r8OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=EvRHuK8mz2NMxeqe94A9v/S9Mu1WuY4pJlAWP/0yaCU=; b=Ie0ByVXpKkJcDIxfhHRXOp6fGWgOx1I2G5/BrqFGMjOAa4E1f8hw5qmK5eXQE9MZIm 9HHrhbGhdiaSXVeH6ljoPGOVroiYcvCjcfURia2zgd3XCdZQnHiWs0QIdZrEZ6yB3HPx eQx0PNR38COLmdcmxO4N1blQn1mUc5QRE86GvGCBHHo1yNnQMtsoLW2sBJtIXchDQtY9 3p07H4rI9pZHrmS0GGXugXJlEKruOH8rN7O269d9719oUR9VMEVxMTxwqnfEJPizpchY qI6zEXnmUQQJe+Y30qPhAsQ8jkl8Z4H7hyJdlrGwoqzW2ZozElHEWB0p/LJMA3S0bT8Y IYrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=V+CQc1Ua; 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 n1si26083089pld.61.2019.05.29.03.06.57; Wed, 29 May 2019 03:07:13 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=V+CQc1Ua; 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 S1726238AbfE2KEp (ORCPT + 99 others); Wed, 29 May 2019 06:04:45 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42669 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbfE2KEo (ORCPT ); Wed, 29 May 2019 06:04:44 -0400 Received: by mail-wr1-f67.google.com with SMTP id l2so1278806wrb.9 for ; Wed, 29 May 2019 03:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=EvRHuK8mz2NMxeqe94A9v/S9Mu1WuY4pJlAWP/0yaCU=; b=V+CQc1Uawwh7H+49Sc63wT1Z0PeCzOUvhYN0X5juPv/tDrEQfn4viRo7A4giKds037 FIxwvb6pfHvuaKYB1ogomOuc7GBDUpF1aRTl9Rh6vI3G9TmNKj2wgM1zJQJGQ3YzyxoF ROlkb4JfXfnuzYHTXcBmxNyoZRJLBBJGSKJ1fkHk0OOM/VhyxPH1BYYyAUXfpsCFaUaO KXcbZuY+nm3NoAJL7VFoswDkS6gCkQaEGHlsfdn0/y8lN7p7PSNgCFeQbaBSc94dMMxW MYywOeqF6i0VEmmzgHxhri84uURb59HPScaQVwezeuZbVu7e51kRAGGqHVlYr/u8dOtH pt5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=EvRHuK8mz2NMxeqe94A9v/S9Mu1WuY4pJlAWP/0yaCU=; b=m6sEPMlCPPgsKLkN5IF4IJ7iPESfRNr2hHQxNe0cxkJycUpt965rEvgICoIxv614fn YwRCSjf6cKX0JKN+jOfabNPX8zg2Mn4ulyQka0y6Fnl4SaG5eVugUuQafR/Wboknghz9 zcJdJ7LZa8W65+JiSfJJ1gtfJMuG8oQh7XqFVUcydKmBWtwnel6qqYqIKKhOfNZtZv6K M3calrWujE561mReqJOj2RzS/0vqjS0tskDueeQNfeHnhyyHkIm7cGwerI3ep0f8Mx3X lOm2DB7IQlTakJ1frdHtSVr/Fd8zFqmAWjahz1aVstfyxMEldSkK/+mzdoPgTR9iMK+i TdWA== X-Gm-Message-State: APjAAAUR4D4FSF2SdNe+bS/rKHy89zAB1+/4Gnjqaj462vCyU+wLZOFM hF3koGFlhOw9T5l/7hcY2rwEqQ== X-Received: by 2002:a05:6000:12:: with SMTP id h18mr4283978wrx.29.1559124281873; Wed, 29 May 2019 03:04:41 -0700 (PDT) Received: from localhost (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f197sm5965858wme.39.2019.05.29.03.04.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 03:04:41 -0700 (PDT) From: Loys Ollivier To: Atish Patra , Karsten Merker Cc: "linux-riscv\@lists.infradead.org" , "linux-kernel\@vger.kernel.org" , Paul Walmsley Subject: Re: Testing the recent RISC-V DT patchsets In-Reply-To: <081611ea-a0d3-b0c9-3e08-8946513f2174@wdc.com> References: <86o93mpqbx.fsf@baylibre.com> <20190528153542.jfkkwycyc3vu6hld@excalibur.cnev.de> <081611ea-a0d3-b0c9-3e08-8946513f2174@wdc.com> Date: Wed, 29 May 2019 12:04:39 +0200 Message-ID: <86woi94lvs.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 29 May 2019 at 00:50, Atish Patra wrote: > 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: >>> >>>> 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: >>>> >>>> https://github.com/sifive/riscv-linux/tree/dev/paulw/dts-v5.2-rc1-experimental >>>> >>>> A sample boot log follows, using a 'defconfig' build from that branch. >>> >>> Thanks Paul, I can confirm that it works. >>> >>> 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. >>> >>> Using FSBL + OpenSBI + U-Boot the same kernel + device tree hangs on >>> running /init. >>> >>> 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. >> >> Hello, >> >> 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 >> >> https://github.com/riscv/opensbi/commit/4e2cd478208531c47343290f15b577d40c82649c >> >> 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. >> >> Regards, >> Karsten >> > > I verified the updated DT with upstream kernel for the boot flow OpenSBI > + U-Boot + Linux or OpenSBI + Linux. > > OpenSBI should be compiled for sifive platform with following additional > argument > > FW_PAYLOAD_FDT_PATH= source>/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb > > FYI: It will only work when kernel is given a payload to U-Boot/OpenSBI > directly. > 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. Following the OpenSBI documentation [0] with U-Boot payload: FW_PAYLOAD_PATH=/u-boot.bin I get an U-Boot prompt and then I can just load the linux kernel and device tree from the network. [0]: https://github.com/riscv/opensbi/blob/master/docs/platform/sifive_fu540.md#building-sifive-fu540-platform > Network booting is still not working as the clock driver probe doesn't > happen because of the updated DT. > > -- > Regards, > Atish