Skip to contentSkip to conversation

riscv: qemu: Enable EFI framebuffer

PATCH In review [email protected] 2 participants 5 messages Sep 22, 2024 – Sep 24, 2024 1 message not in the archive RISC-V

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/3 riscv: qemu: Enable EFI framebuffer

From: LekKit <[email protected]>

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(+)
board/emulation/qemu-riscv/Kconfig +2 -0
index 9538c66e..012ac14a 100644
@@ -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
Signature · 1 line
2.46.0
#3 lore raw
In reply to [email protected]

Hi Lekkit,

Quoted 15 lines · On Sun, Sep 22, 2024 at 01:11:01PM +0300, [email protected] wrote:

[EXTERNAL MAIL]

From: LekKit <[email protected]>

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(+)
board/emulation/qemu-riscv/Kconfig +0 -0
index 9538c66e..012ac14a 100644

board/emulation/qemu-riscv/Kconfig config BOARD_SPECIFIC_OPTIONS # dummy · line 62

Quoted 5 lines
board/emulation/qemu-riscv/Kconfig +2 -0
@@ -58,6 +58,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply E1000
        imply PCI
        imply NVME_PCI
+       imply VIDEO
+       imply VIDEO_SIMPLE

Enabling simplefb driver generates the following compile warning for 32 bit environment. Could you take a look and fix that?

drivers/video/simplefb.c: In function 'simple_video_probe':
drivers/video/simplefb.c:30:15: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'fdt_addr_t' {aka 'unsigned int'} [-Wformat=]

   30 |         debug("%s: base=%llx, size=%llu\n", __func__, base, size);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/video/simplefb.c:30:28: note: format string is defined here

   30 |         debug("%s: base=%llx, size=%llu\n", __func__, base, size);
      |                         ~~~^
      |                            |
      |                            long long unsigned int

Best regards,
Leo

Quoted 6 lines
board/emulation/qemu-riscv/Kconfig +0 -1
        imply PCIE_ECAM_GENERIC
        imply DM_RNG
        imply DM_RTC
--

2.46.0

#4 lore raw

PATCH 3/3 riscv: qemu: Explicitly advertise RVVM support

In reply to a message not in the archive

From: LekKit <[email protected]>

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(-)
arch/riscv/Kconfig +1 -1
index fa3b016c..7c52e666 100644
@@ -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
Signature · 1 line
2.46.0
Reviewed-by on v1 3/3
#5 lore raw

Re: [PATCH 3/3] riscv: qemu: Explicitly advertise RVVM support

Quoted 4 lines · On Sun, Sep 22, 2024 at 01:11:02PM +0300, [email protected] wrote:

[EXTERNAL MAIL]

From: LekKit <[email protected]>

Quoted 8 lines

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