Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0C374C77B7E for ; Thu, 25 May 2023 16:55:01 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2EEj-0003KA-GF; Thu, 25 May 2023 12:54:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2EEi-0003Jk-W6 for qemu-riscv@nongnu.org; Thu, 25 May 2023 12:54:49 -0400 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2EEg-0006Lk-E6 for qemu-riscv@nongnu.org; Thu, 25 May 2023 12:54:48 -0400 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-38ede2e0e69so1050400b6e.2 for ; Thu, 25 May 2023 09:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1685033685; x=1687625685; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pQEAy0LhIbDL76aAiiMzyqY3WLz9EzhyYRF8ON1xaCY=; b=BEMrH4Sg6AYiBdJgi3cNLSEL8NrUalnBHSesDMHPeqUyFyg0rxSPx27Qx4lMtAEBoe 33sbV/SSpEFaLaTtsjQvuJJceFclaU7gEkupl2l1dEGu5zi+xbh4c/1LrOuiTwoegKUb sQCmNd/HoJH5J+f5TZggTQFjJ4PsR8sPzCcVOIKzBMUOphOZ/BIgGGTvuYfaJh9GKjq9 lSDA/wQ8c3jz++9sNEvcHw8YDx0oZMo/5o//3uqpw4LgQXcdj2jpb+3FpZ1QEt2msmX6 JFYgp7jwYBBwvvRR9U1ZDgKj/ASPzTuGzndKjbVlsnD2QHikKE+vH08+KQy3kPsnjCqV rgcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685033685; x=1687625685; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pQEAy0LhIbDL76aAiiMzyqY3WLz9EzhyYRF8ON1xaCY=; b=hOdIvgLFHnsx74v72wmvy3jBWzsteHwT3aAfq4ZypXqLp9LMPgNUTTIlPH6zTRVtf2 60AywQ6aP+eZuJirF3pnX9rmtzip4W8skDMvoGpsbKIq9KybdDU6xwCVt5Evm/gmWet3 Xc1/9+2ty86pqOgwsZSMcm2fN0KXv7yMt1uS8vhCoCkBjx0YXN/IBuEYYKNYlpvSKkOc XDkxVZSO9xGbluL/Wxi7vnSczE/k4WY/yL2yDLK6pFzQuivBQqdOn94vTfBD9xoHnuK6 8mEdmGGRzJFe4dEbG1p3fIgXL4W1mmIvbysocDhtGbjFC3GMEa/ERWN6uhiS6AZRoPwk 7ALw== X-Gm-Message-State: AC+VfDzne0kXmr7W6GNp/UnyrJ3iDsCUN0oT6q7aKtK+Mu0pUnDnXT8A 4Xg4aW4dzlYDzzAZ9iSzqgOLvA== X-Google-Smtp-Source: ACHHUZ4KGYTmll31uL4n9T4nxiEIZ1/uAwVV4NxVJ16xkYJxPYMdSPODwd/FAVWMgvx0HXE9Za98cg== X-Received: by 2002:a05:6808:1917:b0:398:2c02:20a2 with SMTP id bf23-20020a056808191700b003982c0220a2mr137482oib.17.1685033685146; Thu, 25 May 2023 09:54:45 -0700 (PDT) Received: from sunil-laptop ([106.51.186.3]) by smtp.gmail.com with ESMTPSA id w16-20020a056808091000b003907c4bc505sm678664oih.11.2023.05.25.09.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 09:54:44 -0700 (PDT) Date: Thu, 25 May 2023 22:24:37 +0530 From: Sunil V L To: Andrea Bolognani Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Heinrich Schuchardt Subject: Re: [PATCH v3] hw/riscv: virt: Assume M-mode FW in pflash0 only when "-bios none" Message-ID: References: <20230523102805.100160-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=sunilvl@ventanamicro.com; helo=mail-oi1-x235.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On Thu, May 25, 2023 at 04:19:12PM +0000, Andrea Bolognani wrote: > On Thu, May 25, 2023 at 08:32:46PM +0530, Sunil V L wrote: > > On Thu, May 25, 2023 at 01:43:28PM +0000, Andrea Bolognani wrote: > > > I have also tried booting an openSUSE Tumbleweed "JeOS" image, since > > > that's the only distro I'm aware of that uses UEFI boot on RISC-V at > > > this point - though they use U-Boot's UEFI support rather than edk2. > > > > > > During that attempt, I ended up in the edk2 shell. Running > > > > > > fs0:\efi\boot\bootriscv64.efi > > > > > > brings up GRUB just fine, but selecting the default boot entry > > > results in > > > > > > Loading Linux 6.3.2-1-default ... > > > Loading initial ramdisk ... > > > EFI stub: Booting Linux Kernel... > > > EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path > > > EFI stub: Generating empty DTB > > > EFI stub: Exiting boot services... > > > > > > being printed, after which it's back to OpenSBI and from there to > > > edk2 again. > > > > Thanks!. Please add -machine acpi=off in qemu command to boot the > > kernel. > > Yup, that worked! It booted all the way to the login prompt :) > > Note that libvirt automatically adds acpi=off, so that won't be a > concern for libvirt users. > Great!. Thanks. Since we decided to keep acpi enabled by default in qemu similar to other architectures, we need to turn this off until complete ACPI support is merged in linux kernel. Thanks for the information that libvirt turns it off by default. > > > > > Going further and testing libvirt integration. After hacking around > > > > > other issues, I finally stumbled upon this error: > > > > > > > > > > qemu-system-riscv64: Property 'virt-machine.pflash0' not found > > > > > > > > Thanks!. This needs some investigation. Let me look into supporting > > > > this. > > > > > > Yes please! It's critical to libvirt integration. Feel free to CC me > > > when you post patches and I'll gladly test them. > > > > Sure, I have the fix ready. I need to convert this into a patch series > > now. Will send it soon and thanks in advance for helping with testing. > > Excellent! Looking forward to it :) > Sent. Thanks, Sunil