Skip to content

Add preliminary support for QFW on Arm

Heinrich Schuchardt u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1arm: qemu: support qfw+0 -06 replies
1/1arm: qemu: support qfw+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Add preliminary support for QFW on Arm
Quoted 19 lines · Asherah Connor

This patch adds preliminary support for the QEMU firmware interface (aka. QEMU fw_cfg) on the Arm platform. I'm sending this to see if there's interest in accepting this support; ultimately, I'd like to get the QEMU "ramfb" display working, which requires the use of fw_cfg to configure.

Please note this is my first attempt at adding functionality to U-Boot and there are likely to be many mistakes. Among others:

* I've added this to arch_early_init_r, mimicking the existing support in arch/x86/cpu/qemu/qemu.c. Let me know if this is incorrect.

* I am unsure about the Kconfig changes. These make qemu_arm64_defconfig work out of the box. It can still be disabled and build correctly. I've implied only "QFW" because the command wouldn't be necessary for e.g. future ramfb support. We may want to give the option a description in that case---it is currently considered "hidden" and only selected when "CMD_QFW" is.

Quoted 2 lines

* I would be happy to maintain this going forward. Let me know if I should submit a patch for MAINTAINTERS.

Hello Asherah,

thank you for addressing the missing GPU support when running under QEMU ARM.

virtio-gpu is an alternative to ramfb. Why are you targeting ramfb and not virtio-gpu? Which impact does it have on the guest OS?

Best regards

Heinrich

Quoted 14 lines

Asherah Connor (1):
arm: qemu: support qfw

  arch/arm/Kconfig            |   1 +
  arch/arm/Makefile           |   1 +
  arch/arm/mach-qemu/Kconfig  |   2 +
  arch/arm/mach-qemu/Makefile |   1 +
  arch/arm/mach-qemu/qemu.c   | 109 ++++++++++++++++++++++++++++++++++++
  5 files changed, 114 insertions(+)

create mode 100644 arch/arm/mach-qemu/Makefile
create mode 100644 arch/arm/mach-qemu/qemu.c