U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] riscv: qemu: Enable booting from NVMe
@ 2024-07-17 18:22 Eva Kurchatova
  2024-07-17 18:24 ` Eva Kurchatova
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Eva Kurchatova @ 2024-07-17 18:22 UTC (permalink / raw)
  To: u-boot

From da876ced5ff607a4f21e30ab26fb1a972af56570 Mon Sep 17 00:00:00 2001
From: LekKit <50500857+LekKit@users.noreply.github.com>
Date: Wed, 17 Jul 2024 20:31:21 +0300
Subject: [PATCH 1/3] riscv: qemu: Enable booting from NVMe

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH 1/3] riscv: qemu: Enable booting from NVMe
@ 2024-09-22 10:11 lekkit
  2024-09-24  2:48 ` Leo Liang
  0 siblings, 1 reply; 6+ messages in thread
From: lekkit @ 2024-09-22 10:11 UTC (permalink / raw)
  To: u-boot; +Cc: nyandarknessgirl

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-24  2:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 18:22 [PATCH 1/3] riscv: qemu: Enable booting from NVMe Eva Kurchatova
2024-07-17 18:24 ` Eva Kurchatova
2024-07-17 18:24 ` Eva Kurchatova
2024-09-09  7:09 ` Leo Liang
  -- strict thread matches above, loose matches on Subject: below --
2024-09-22 10:11 lekkit
2024-09-24  2:48 ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox