From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kCWrh-0001JY-6N for mharc-qemu-riscv@gnu.org; Sun, 30 Aug 2020 19:36:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCWrg-0001IH-5L for qemu-riscv@nongnu.org; Sun, 30 Aug 2020 19:36:00 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:50555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCWrd-0005dv-5h for qemu-riscv@nongnu.org; Sun, 30 Aug 2020 19:35:59 -0400 Received: by mail-wm1-x342.google.com with SMTP id e17so3662804wme.0 for ; Sun, 30 Aug 2020 16:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=j8RBtorqaVEsLOmNgpW3EzUGHsToCN3xfe46gSDMurZJGFNEg18k0GvZKdOoScuO0k zlYrwS0pah7kXPLGqgfPBRxHOJGPX3hbhsI3IsaXdMIBVLnNEv98mTUVFnReYcAAxGPs sMg/fgdjTuC5L4ZV/psfBJMxu1gMdqqaZwLDPxgr1QUuEQZ1by7JTpF3LXNIgls9bR52 fbo1mee/ZsECNW5HqyQcko3TlbS/htkuGhXweyfG8AEFHcNh24jV/7Uzha0LIsCp77WY 2j0lJeqJ5X2rWl35Ys3SW/QIPjgsfGETi4kpiHBODBy2jWGW/fLNKVxR38vIVBxqD2wL Tfhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=MOAjxUO4vQhKenDwrOqb6a3HH0hlHQTmxV0008V8GhuTahtWBhSVqEcXXeIdfqmCIx RrimnfOGYA9zyDneVBzADR1seto0zGL2n8xASu/m5NfY5vAxJUodldjfjl0dw59YXcad NRSqk6mXkLuWo2LWC8quZW3FSYPf7zLS6ZYAI7Kw8w4FmxPTmZQX9EGWq8xXZzPyEpde V0NHo2S7YcX2Cl76mrPSzCcOFpHHK8bSWHclDLxmoRgWULR1ZqwShT4TBeImi5Iclohf Osly+pu4oqnKfzj/i8mGOn28dQnX0+7itJSO9T02YYJpGnKPDTa+jJeiJ2NVdF2DoJEQ u7ng== X-Gm-Message-State: AOAM531D5BG4B1Sq25qnl4zDwJp6O42xX8+fvvx0xtBOE3WnrLQhC1xh UvdMO3Wx5aiHmYBNf09bkdZHTA== X-Google-Smtp-Source: ABdhPJxnrUjQW5Yi/f20qAyShWbhd5YUVdj0/CuqpJzH0j7u25Md01wYnJ7zSCsxCVI2pBPRk9H3XQ== X-Received: by 2002:a1c:4d12:: with SMTP id o18mr342678wmh.177.1598830555254; Sun, 30 Aug 2020 16:35:55 -0700 (PDT) Received: from vanye ([2001:470:1f09:12f0:b26e:bfff:fea9:f1b8]) by smtp.gmail.com with ESMTPSA id z6sm9218591wml.41.2020.08.30.16.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Aug 2020 16:35:54 -0700 (PDT) Date: Mon, 31 Aug 2020 00:35:52 +0100 From: Leif Lindholm To: Bin Meng Cc: Alistair Francis , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Palmer Dabbelt , "qemu-devel@nongnu.org Developers" , "open list:RISC-V" , Peter Maydell , Alistair Francis , Sagar Karandikar , Bastian Koppelmann , Jason Wang , Bin Meng , Paolo Bonzini , Palmer Dabbelt , qemu-arm , "Edgar E. Iglesias" , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Subject: Re: [PATCH v2 00/16] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support Message-ID: <20200830233552.GG20124@vanye> References: <1598714261-8320-1-git-send-email-bmeng.cn@gmail.com> <20200830125659.GD20124@vanye> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=2a00:1450:4864:20::342; envelope-from=leif@nuviainc.com; helo=mail-wm1-x342.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 23:36:00 -0000 On Mon, Aug 31, 2020 at 06:15:52 +0800, Bin Meng wrote: > Hi Leif, > > > > The following perepherals are emulated: > > > - SiFive CLINT > > > - SiFive PLIC > > > - PolarFire SoC Multi-Mode UART > > > - SiFive PDMA > > > - Cadence eMMC/SDHCI controller > > > - Cadence Gigabit Ethernet MAC > > > > > > The BIOS image used by this machine is hss.bin, aka Hart Software > > > Services, which can be built from: > > > https://github.com/polarfire-soc/hart-software-services > > > > Are there any version requirements, or additional qemu patches, that > > need to be taken into account. Should I expect to see output on stdio? > > Thanks for trying! > > Did you apply the patch to skip the DDR memory initialization > mentioned in this page? > https://wiki.qemu.org/Documentation/Platforms/RISCV#Microchip_PolarFire_SoC_Icicle_Kit I did, but in honesty only after I sent the previous email :) (Since it made no difference, I didn't bother following up.) > > I tried to build hss 3faaaaf8ce0d, using > > https://github.com/riscv/riscv-gnu-toolchain (7f1f4ab5b0e0), which > > ends up being a gcc 10.1. That caused me to raise > > https://github.com/polarfire-soc/hart-software-services/issues/2. > > Yes, GCC 10 does not build is a known issue. Currently I am using GCC > 9 to build HSS. Right, I can confirm that with commit 93f82dc18e1d riscv-gnu-toolchain (the last before changing to gcc 10.1), I generate a 9.2.0 gcc that builds a hss.bin that boots successfully with the minimal command line qemu-system-riscv64 -M microchip-icicle-kit -smp 5 -bios hss.bin \ -display none -serial stdio Thanks! (I haven't looked any further than the hss.bin yet, but I'm now unblocked to do so.) Best Regards, Leif From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:ad09:0:0:0:0:0 with SMTP id t9csp3244930lfc; Sun, 30 Aug 2020 16:36:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxINAfnUOB+j4yY3QOBdrXfxNNrPa0aIQqK7JfTEhEo/Bl9pJFXrbBBrAlzQZM9bbTqHQ7m X-Received: by 2002:a25:7146:: with SMTP id m67mr9946578ybc.362.1598830567982; Sun, 30 Aug 2020 16:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598830567; cv=none; d=google.com; s=arc-20160816; b=LMUNviKzI7ImizwOH/j4gq9/Hhc2Rg0Xr2xqgVHm2NnsyMl1y1d/pJSuNcbJkjG0G4 LeRNU2UELMhDHAyaMEe4HdgzHxXZ7J4rvDB2UqtLLjvGTop7ft6D9XtyBOuSbKQh8NJl qFYCllDrub9hoeMS3ziGL9IjY5ygHMJHAeqYcaWMdOYWLvv1JL3ooKWYukMQvNAx5due Z/styLMaG7ol9WxorBSdzrtvQDKtzIQNS4lYWtlvKg5ZqpAaVVDApwdup+X6f9NjaS59 63mklbESr8RTL8j6KlSLb0eH/Y2ailSuNRTD+280nBm5KSYkL9Pmtr7cT4f5uwg6OweJ 5mNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=Ji95jowYxUW1e9ZYOvfTA4QcUJlslpiHU1z9CPTGqRNgdEmUs/GLNSVuvoNm4eISWi vFIvrzdL1RxKCmUUr8L7FqT9pFjWdgtAn+qxcQYXEakbGxHwNuYRokCs4YUEWByMdDDf 8T83xVmJAnETc6/zMpJ7VHggw2CWsgJbdYGR9hD8Y3OBVSfqCbdFSWAYXon4Qyi2wzdf EWreorhV0HzEZHafgLlHoPIBqeujP60bm4AMW+D6AVRJrg1JBcv6U+95iut6su7kUciX 1KxrRAjLQN7ZSy6ED9X1wad6gh2D7DS4pipwyFNtwrnM2zT1Fn8LpCZZCXh+hMLNntu0 y03Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=j8RBtorq; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y17si5930973ybj.49.2020.08.30.16.36.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Aug 2020 16:36:07 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=j8RBtorq; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:49126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCWrn-0001In-DW for alex.bennee@linaro.org; Sun, 30 Aug 2020 19:36:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCWrf-0001IB-GI for qemu-arm@nongnu.org; Sun, 30 Aug 2020 19:35:59 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:37555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCWrc-0005dw-Re for qemu-arm@nongnu.org; Sun, 30 Aug 2020 19:35:59 -0400 Received: by mail-wm1-x344.google.com with SMTP id x9so3734101wmi.2 for ; Sun, 30 Aug 2020 16:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=j8RBtorqaVEsLOmNgpW3EzUGHsToCN3xfe46gSDMurZJGFNEg18k0GvZKdOoScuO0k zlYrwS0pah7kXPLGqgfPBRxHOJGPX3hbhsI3IsaXdMIBVLnNEv98mTUVFnReYcAAxGPs sMg/fgdjTuC5L4ZV/psfBJMxu1gMdqqaZwLDPxgr1QUuEQZ1by7JTpF3LXNIgls9bR52 fbo1mee/ZsECNW5HqyQcko3TlbS/htkuGhXweyfG8AEFHcNh24jV/7Uzha0LIsCp77WY 2j0lJeqJ5X2rWl35Ys3SW/QIPjgsfGETi4kpiHBODBy2jWGW/fLNKVxR38vIVBxqD2wL Tfhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=C6bfbo7jAkzUJaTbpNoxbrZKCe1wgCEio6Q09cdSjPsIw+qnrRDh9pjOPb9AdRYjal MuTK12SmHbHRDtv6uxRM4R0iGAMjOCqzdsoDFONYX/5dyfDPU8+ZiQ4fvn3WexT6YGMx bS6GZImbIMdI2XcIimJV77OL93tVSKDhxXeT8EXrUq6RefN2cw9uMh1SqKFhQsli6m21 4dJs4wuyHc/WxMM0pvTKfwN+XzqjQ0q784XmJwLWRQ3Qg5o6CU7SMdjxfrR+J51v0kA5 CqLUeGLwb8KnAtQlITA0Ng0RZ0qz5OGKVtwFEuto3AASW7rBH1k5nYyTNuA4uCpDrU2H M3Sg== X-Gm-Message-State: AOAM532tqwfhZzjsgwqHmlPI12PRDtZxjwqWRbtNpPMY7R/OVH9759su hwwYXwZgvllMlbgNYVylrgzfTw== X-Received: by 2002:a1c:4d12:: with SMTP id o18mr342678wmh.177.1598830555254; Sun, 30 Aug 2020 16:35:55 -0700 (PDT) Received: from vanye ([2001:470:1f09:12f0:b26e:bfff:fea9:f1b8]) by smtp.gmail.com with ESMTPSA id z6sm9218591wml.41.2020.08.30.16.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Aug 2020 16:35:54 -0700 (PDT) Date: Mon, 31 Aug 2020 00:35:52 +0100 From: Leif Lindholm To: Bin Meng Subject: Re: [PATCH v2 00/16] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support Message-ID: <20200830233552.GG20124@vanye> References: <1598714261-8320-1-git-send-email-bmeng.cn@gmail.com> <20200830125659.GD20124@vanye> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=2a00:1450:4864:20::344; envelope-from=leif@nuviainc.com; helo=mail-wm1-x344.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Alistair Francis , "open list:RISC-V" , Sagar Karandikar , Bin Meng , Bastian Koppelmann , Jason Wang , Palmer Dabbelt , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , "qemu-devel@nongnu.org Developers" , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-arm , Alistair Francis , Paolo Bonzini , Palmer Dabbelt Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: Jx98PywuZI1d On Mon, Aug 31, 2020 at 06:15:52 +0800, Bin Meng wrote: > Hi Leif, > > > > The following perepherals are emulated: > > > - SiFive CLINT > > > - SiFive PLIC > > > - PolarFire SoC Multi-Mode UART > > > - SiFive PDMA > > > - Cadence eMMC/SDHCI controller > > > - Cadence Gigabit Ethernet MAC > > > > > > The BIOS image used by this machine is hss.bin, aka Hart Software > > > Services, which can be built from: > > > https://github.com/polarfire-soc/hart-software-services > > > > Are there any version requirements, or additional qemu patches, that > > need to be taken into account. Should I expect to see output on stdio? > > Thanks for trying! > > Did you apply the patch to skip the DDR memory initialization > mentioned in this page? > https://wiki.qemu.org/Documentation/Platforms/RISCV#Microchip_PolarFire_SoC_Icicle_Kit I did, but in honesty only after I sent the previous email :) (Since it made no difference, I didn't bother following up.) > > I tried to build hss 3faaaaf8ce0d, using > > https://github.com/riscv/riscv-gnu-toolchain (7f1f4ab5b0e0), which > > ends up being a gcc 10.1. That caused me to raise > > https://github.com/polarfire-soc/hart-software-services/issues/2. > > Yes, GCC 10 does not build is a known issue. Currently I am using GCC > 9 to build HSS. Right, I can confirm that with commit 93f82dc18e1d riscv-gnu-toolchain (the last before changing to gcc 10.1), I generate a 9.2.0 gcc that builds a hss.bin that boots successfully with the minimal command line qemu-system-riscv64 -M microchip-icicle-kit -smp 5 -bios hss.bin \ -display none -serial stdio Thanks! (I haven't looked any further than the hss.bin yet, but I'm now unblocked to do so.) Best Regards, Leif From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DC45C433E2 for ; Sun, 30 Aug 2020 23:36:39 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4A7282098B for ; Sun, 30 Aug 2020 23:36:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nuviainc-com.20150623.gappssmtp.com header.i=@nuviainc-com.20150623.gappssmtp.com header.b="j8RBtorq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4A7282098B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=nuviainc.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:50482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCWsI-0001tb-HI for qemu-devel@archiver.kernel.org; Sun, 30 Aug 2020 19:36:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCWrf-0001I5-0u for qemu-devel@nongnu.org; Sun, 30 Aug 2020 19:35:59 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:40728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCWrc-0005du-Rw for qemu-devel@nongnu.org; Sun, 30 Aug 2020 19:35:58 -0400 Received: by mail-wm1-x344.google.com with SMTP id v4so3002385wmj.5 for ; Sun, 30 Aug 2020 16:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=j8RBtorqaVEsLOmNgpW3EzUGHsToCN3xfe46gSDMurZJGFNEg18k0GvZKdOoScuO0k zlYrwS0pah7kXPLGqgfPBRxHOJGPX3hbhsI3IsaXdMIBVLnNEv98mTUVFnReYcAAxGPs sMg/fgdjTuC5L4ZV/psfBJMxu1gMdqqaZwLDPxgr1QUuEQZ1by7JTpF3LXNIgls9bR52 fbo1mee/ZsECNW5HqyQcko3TlbS/htkuGhXweyfG8AEFHcNh24jV/7Uzha0LIsCp77WY 2j0lJeqJ5X2rWl35Ys3SW/QIPjgsfGETi4kpiHBODBy2jWGW/fLNKVxR38vIVBxqD2wL Tfhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RASHodX0lMfHYt83QbTf2ezLNOxfAhKMutmXcqjpFuQ=; b=XwATiBoPkNpD1UKUPj7ZXqe2qqTd7/XPTewqRbrueiO28d2aXiC7XpW28Yhrl/4wu0 evJwZm7PKcrTlPoCsncUbtRd7Lb2Lj2y1FdOte4V/t7HZM1RLUXp4IZY4VbBK/kbrPB3 oOB7WD60GCfXSaEJjXckkxau6kd08D8qPvs54ge7ekFp+/Q4cipIWTHlG4uaZ82E8VIZ B1RzsGsmb8prs/wTD0I+7I8h98K/kRLJNNIopV3w41AFiJk5qXjv94bgV7lAx7ZFkDQQ 5rZf36ox7KTiWl0Onnp3Y9DyaGFTTZMP4crHiRPeyRqct4S2S2RtdN0ypMyqiCcII+UI 4WXw== X-Gm-Message-State: AOAM531+fbybjs5KJ0vBtSBQgQ7GMDZDdKMPw54VHWvIYh+VbUMJPFdI HupagZ9a8hpbp4b8Lm3b+cGanA== X-Google-Smtp-Source: ABdhPJxnrUjQW5Yi/f20qAyShWbhd5YUVdj0/CuqpJzH0j7u25Md01wYnJ7zSCsxCVI2pBPRk9H3XQ== X-Received: by 2002:a1c:4d12:: with SMTP id o18mr342678wmh.177.1598830555254; Sun, 30 Aug 2020 16:35:55 -0700 (PDT) Received: from vanye ([2001:470:1f09:12f0:b26e:bfff:fea9:f1b8]) by smtp.gmail.com with ESMTPSA id z6sm9218591wml.41.2020.08.30.16.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Aug 2020 16:35:54 -0700 (PDT) Date: Mon, 31 Aug 2020 00:35:52 +0100 From: Leif Lindholm To: Bin Meng Subject: Re: [PATCH v2 00/16] hw/riscv: Add Microchip PolarFire SoC Icicle Kit board support Message-ID: <20200830233552.GG20124@vanye> References: <1598714261-8320-1-git-send-email-bmeng.cn@gmail.com> <20200830125659.GD20124@vanye> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=2a00:1450:4864:20::344; envelope-from=leif@nuviainc.com; helo=mail-wm1-x344.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Alistair Francis , "open list:RISC-V" , Sagar Karandikar , Bin Meng , Bastian Koppelmann , Jason Wang , Palmer Dabbelt , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , "qemu-devel@nongnu.org Developers" , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-arm , Alistair Francis , "Edgar E. Iglesias" , Paolo Bonzini , Palmer Dabbelt Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, Aug 31, 2020 at 06:15:52 +0800, Bin Meng wrote: > Hi Leif, > > > > The following perepherals are emulated: > > > - SiFive CLINT > > > - SiFive PLIC > > > - PolarFire SoC Multi-Mode UART > > > - SiFive PDMA > > > - Cadence eMMC/SDHCI controller > > > - Cadence Gigabit Ethernet MAC > > > > > > The BIOS image used by this machine is hss.bin, aka Hart Software > > > Services, which can be built from: > > > https://github.com/polarfire-soc/hart-software-services > > > > Are there any version requirements, or additional qemu patches, that > > need to be taken into account. Should I expect to see output on stdio? > > Thanks for trying! > > Did you apply the patch to skip the DDR memory initialization > mentioned in this page? > https://wiki.qemu.org/Documentation/Platforms/RISCV#Microchip_PolarFire_SoC_Icicle_Kit I did, but in honesty only after I sent the previous email :) (Since it made no difference, I didn't bother following up.) > > I tried to build hss 3faaaaf8ce0d, using > > https://github.com/riscv/riscv-gnu-toolchain (7f1f4ab5b0e0), which > > ends up being a gcc 10.1. That caused me to raise > > https://github.com/polarfire-soc/hart-software-services/issues/2. > > Yes, GCC 10 does not build is a known issue. Currently I am using GCC > 9 to build HSS. Right, I can confirm that with commit 93f82dc18e1d riscv-gnu-toolchain (the last before changing to gcc 10.1), I generate a 9.2.0 gcc that builds a hss.bin that boots successfully with the minimal command line qemu-system-riscv64 -M microchip-icicle-kit -smp 5 -bios hss.bin \ -display none -serial stdio Thanks! (I haven't looked any further than the hss.bin yet, but I'm now unblocked to do so.) Best Regards, Leif