From patchwork Sun Sep 22 10:11:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: lekkit@at.encryp.ch X-Patchwork-Id: 1988366 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=at.encryp.ch header.i=@at.encryp.ch header.a=rsa-sha256 header.s=20240721-cheems-de-box-skhron-com-ua header.b=RtipnWT4; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XBcmP6n6gz1xsL for ; Mon, 23 Sep 2024 06:14:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7630488BF9; Sun, 22 Sep 2024 22:14:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=at.encryp.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=at.encryp.ch header.i=@at.encryp.ch header.b="RtipnWT4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D8A9F889B3; Sun, 22 Sep 2024 12:11:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cheems.de.box.skhron.com.ua (cheems.de.box.skhron.com.ua [IPv6:2a01:4f8:231:76a::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 10D5188279 for ; Sun, 22 Sep 2024 12:11:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=at.encryp.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lekkit@at.encryp.ch From: lekkit@at.encryp.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=at.encryp.ch; s=20240721-cheems-de-box-skhron-com-ua; t=1726999870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Zhc5AYN4Zv4vIhutze8A0EUJ4ZXIsBnJmLm3i6aHAkw=; b=RtipnWT4OkIG2LXDuyF2oKhPXTVzbxe6v9zJpI260hyNIGL7L5b3ufljIx+2rd4HCkwX2g fGtZFJYatA3Pety3osL5pSuTV8rjFvSLNlR2iV8EQB0einzQjUi56fXfx5B6rL7SRC7yOL iPHxFNCDx3179CmF++Smtz50tpg/tIaQQxf+gTv5mY7AaG1TFmvpkYHTz/m7I8TobUI34Q OkYc7+fzOS5CTT5zI/mm+02XwCYp3HY3icreBVCDXBnnbFWNARBtfGfyZ8gBbQ2OtwTpVw +gRSrk7+z/KqASWwiQYCkNrXsswPcc35qBk/gisXq7X5Xof1TikDthR7T/8FGA== To: u-boot@lists.denx.de Cc: nyandarknessgirl@gmail.com Subject: [PATCH 1/3] riscv: qemu: Enable booting from NVMe Date: Sun, 22 Sep 2024 13:11:00 +0300 Message-ID: <20240922101102.7010-1-lekkit@cheems.de.box.skhron.com.ua> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 22 Sep 2024 22:14:37 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: LekKit <50500857+LekKit@users.noreply.github.com> QEMU supports NVMe devices, but U-Boot only tries to boot from Virtio. This is problematic when explicitly using NVMe, so fix that. Additionally, RVVM virtual machine is almost fully compatible with QEMU, except it only implements NVMe drives instead of VirtIO. --- include/configs/qemu-riscv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h index 2f594bfc..cf4fcb90 100644 --- a/include/configs/qemu-riscv.h +++ b/include/configs/qemu-riscv.h @@ -22,6 +22,7 @@ "stderr=serial,vidconsole\0" #define BOOT_TARGET_DEVICES(func) \ + func(NVME, nvme, 0) \ func(VIRTIO, virtio, 0) \ func(VIRTIO, virtio, 1) \ func(SCSI, scsi, 0) \ From patchwork Sun Sep 22 10:11:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: lekkit@at.encryp.ch X-Patchwork-Id: 1988367 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=at.encryp.ch header.i=@at.encryp.ch header.a=rsa-sha256 header.s=20240721-cheems-de-box-skhron-com-ua header.b=AhwXFmWj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XBcmZ17Jkz1xsL for ; Mon, 23 Sep 2024 06:14:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D202188C86; Sun, 22 Sep 2024 22:14:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=at.encryp.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=at.encryp.ch header.i=@at.encryp.ch header.b="AhwXFmWj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4DD4C889B3; Sun, 22 Sep 2024 12:11:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cheems.de.box.skhron.com.ua (cheems.de.box.skhron.com.ua [195.201.247.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 774A288279 for ; Sun, 22 Sep 2024 12:11:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=at.encryp.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lekkit@at.encryp.ch From: lekkit@at.encryp.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=at.encryp.ch; s=20240721-cheems-de-box-skhron-com-ua; t=1726999873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kAGBoRsU/9pR3O1RCFF9oSuFeM35Pz1dZ4iNpqfltVo=; b=AhwXFmWjPEsOPVszXc7tsfL8OWIwDG89Vy/wppIBwJcbkwJ0Xdbo1c5rkC1spf3Le3svx7 ddOw/HEWQf7YV6rxhaBjcJLfLyXza7qmqUYqDD2isQ5LKYNEI1wP0QpQn9TqcjSDSqc6fd bez1WwjGR60Xmpfh84reKMk6gyleQr3WA0axx02E6B6IL4wAUnMFVmVjKaDAwL/DSM8+SW ukjBccfIVMfbUiaXMjEZ9jG+Fq3oguA/jr5SezClJ2AoTUOPtef5N8b96Cyeu/nv97JuJL dE8un5+5NAjvV2r+cofEDC9dqYxwAQI7Bl+ZEeEFL+yeChN7J1ebjnqXi/Itzw== To: u-boot@lists.denx.de Cc: nyandarknessgirl@gmail.com Subject: [PATCH 2/3] riscv: qemu: Enable EFI framebuffer Date: Sun, 22 Sep 2024 13:11:01 +0300 Message-ID: <20240922101102.7010-2-lekkit@cheems.de.box.skhron.com.ua> In-Reply-To: <20240922101102.7010-1-lekkit@at.encryp.ch> References: <20240922101102.7010-1-lekkit@at.encryp.ch> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 22 Sep 2024 22:14:37 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: LekKit <50500857+LekKit@users.noreply.github.com> Enable framebuffer for better virtual machine integration. Some guests need EFI FB to work properly. --- board/emulation/qemu-riscv/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig index 9538c66e..012ac14a 100644 --- a/board/emulation/qemu-riscv/Kconfig +++ b/board/emulation/qemu-riscv/Kconfig @@ -58,6 +58,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply E1000 imply PCI imply NVME_PCI + imply VIDEO + imply VIDEO_SIMPLE imply PCIE_ECAM_GENERIC imply DM_RNG imply DM_RTC From patchwork Sun Sep 22 10:11:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: lekkit@at.encryp.ch X-Patchwork-Id: 1988368 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=at.encryp.ch header.i=@at.encryp.ch header.a=rsa-sha256 header.s=20240721-cheems-de-box-skhron-com-ua header.b=eIsdJ6EH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XBcmw0c6Qz1xsM for ; Mon, 23 Sep 2024 06:15:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4323388CA2; Sun, 22 Sep 2024 22:14:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=at.encryp.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=at.encryp.ch header.i=@at.encryp.ch header.b="eIsdJ6EH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B4FC588279; Sun, 22 Sep 2024 12:11:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cheems.de.box.skhron.com.ua (cheems.de.box.skhron.com.ua [195.201.247.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E534288953 for ; Sun, 22 Sep 2024 12:11:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=at.encryp.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lekkit@at.encryp.ch From: lekkit@at.encryp.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=at.encryp.ch; s=20240721-cheems-de-box-skhron-com-ua; t=1726999875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B0VmJLlnlfM0/bj3AFZto43eI2jHvqwU7hB9QNE6Vv0=; b=eIsdJ6EHT+eo0psXUrcZEycczNX4GslwkjGo01B5Nl1eOYmo978xTvsj1rIjyRkljA1kLl gi2MOLfbMxCgR+OKbi4KJHlFTMcRVc5rsVXx7VZu5xwSwxL5rviSiS8w/sroS1K/mfUWfL uTTGxA1j9VebWrBQwlfqgWATwextpxYG0tZftPdCx2928FSMcamG1c09wrctDW8AdUlczF bWt25YutNh8pCLckiixdWKg0r93EhQ5ScVm6tnvZqrKVS2zamLaUPioLe88ehHW8T8KeyI GWeYQ03acg1ukiorOc4ezk1QXf/SCl8qFbTK/laco8dpBt/mV5rKw/4ih+KrnQ== To: u-boot@lists.denx.de Cc: nyandarknessgirl@gmail.com Subject: [PATCH 3/3] riscv: qemu: Explicitly advertise RVVM support Date: Sun, 22 Sep 2024 13:11:02 +0300 Message-ID: <20240922101102.7010-3-lekkit@cheems.de.box.skhron.com.ua> In-Reply-To: <20240922101102.7010-1-lekkit@at.encryp.ch> References: <20240922101102.7010-1-lekkit@at.encryp.ch> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 22 Sep 2024 22:14:37 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: LekKit <50500857+LekKit@users.noreply.github.com> This patch series enables full RVVM virtual machine support which was earlier inconveniently provided as out-of-tree patchset. This should be cleaner than a separate board config, since both emulators provide similar feature set. --- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index fa3b016c..7c52e666 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -21,7 +21,7 @@ config TARGET_OPENPITON_RISCV64 bool "Support RISC-V cores on OpenPiton SoC" config TARGET_QEMU_VIRT - bool "Support QEMU Virt Board" + bool "Support QEMU Virt & RVVM Boards" select BOARD_LATE_INIT config TARGET_SIFIVE_UNLEASHED