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) \