Skip to contentSkip to conversation

seabios: 1.11.2 update

PATCH In review Gerd Hoffmann 1 participant 9 messages Jun 20, 2018 – Jul 2, 2018

lore
Share & tools
lore
#0 lore raw

cover seabios: 1.11.2 update

Hi folks,

So, here is the current state of the seabios update for the upcoming qemu 3.0 release. This time it is a bit more than just the usual "update submodule and binaries".

seabios 1.11.2 is not released yet. The plan is to cherry-pick the changes needed to support the new qemu 3.0 display devices (bochs-display and ramfb) into the 1.11-stable branch for the 1.11.2 release. Current state is here:
https://git.kraxel.org/cgit/seabios/log/?h=1.11-stable-testing

Changes in this patch series:
- seabios submodule update (to the testing branch).
- new vgabios configs for bochs-display and ramfb.
- update the bios config to enables ide dma (for qnx).
- drop (old) vgabios submodule and build rules.
- seabios binary update.
- make bochs-display and ramfb load the new vgabios roms.

Git branch for this series is here:
https://git.kraxel.org/cgit/qemu/log/?h=seabios-1.11.2

cheers,
Gerd

Gerd Hoffmann (7):
seabios: update submodule to 1.11.2-testing
seabios: add vga configs for bochs-display and ramfb
seabios: enable ide dma
vgabios: remove submodule and build rules.
seabios: update binaries
bochs-display: enable vgabios
ramfb: enable vgabios

 hw/display/bochs-display.c    |   1 +
 hw/display/ramfb.c            |   1 +
 .gitmodules                   |   3 ---
 pc-bios/bios-256k.bin         | Bin 262144 -> 262144 bytes
 pc-bios/bios.bin              | Bin 131072 -> 131072 bytes
 pc-bios/vgabios-cirrus.bin    | Bin 38400 -> 38400 bytes
 pc-bios/vgabios-qxl.bin       | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-stdvga.bin    | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-virtio.bin    | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-vmware.bin    | Bin 38912 -> 38912 bytes
 pc-bios/vgabios.bin           | Bin 38400 -> 38400 bytes
 roms/Makefile                 |  20 +++-----------------
 roms/config.seabios-128k      |   1 +
 roms/config.seabios-256k      |   1 +
 roms/config.vga-bochs-display |   3 +++
 roms/config.vga-ramfb         |   3 +++
 roms/seabios                  |   2 +-
 roms/vgabios                  |   1 -
 18 files changed, 14 insertions(+), 22 deletions(-)
 create mode 100644 roms/config.vga-bochs-display
 create mode 100644 roms/config.vga-ramfb
 delete mode 160000 roms/vgabios
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/7 seabios: update submodule to 1.11.2-testing

https://git.kraxel.org/cgit/seabios/log/?h=1.11-stable-testing

For testing, will be replaced with final 1.11.2 of course ...

---
 roms/seabios | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
roms/seabios +1 -1
index 0551a4be2c..84c60f980e 160000
@@ -1 +1 @@
-Subproject commit 0551a4be2ce599fb60e478b4c15e06ab6587822c
+Subproject commit 84c60f980e9deb3372a55e572a8f28c6733e8c01
Signature · 1 line
2.9.3
#2 lore raw

PATCH 2/7 seabios: add vga configs for bochs-display and ramfb

In reply to Gerd Hoffmann

Both bochs-display and ramfb are devices with a simple framebuffer and no vga emulation or text mode. seavgabios has support for text mode emulation (at vgabios call level), we are using that to provide some vga compatibility support for these devices.

---
 roms/Makefile                 | 2 +-
 roms/config.vga-bochs-display | 3 +++
 roms/config.vga-ramfb         | 3 +++
 3 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 roms/config.vga-bochs-display
 create mode 100644 roms/config.vga-ramfb
roms/Makefile +1 -1
index 02b69fbac8..a73778f60b 100644
@@ -1,5 +1,5 @@
 
-vgabios_variants := stdvga cirrus vmware qxl isavga virtio
+vgabios_variants := stdvga cirrus vmware qxl isavga virtio bochs-display ramfb
 vgabios_targets  := $(subst -isavga,,$(patsubst %,vgabios-%.bin,$(vgabios_variants)))
 pxerom_variants  := e1000 e1000e eepro100 ne2k_pci pcnet rtl8139 virtio vmxnet3
 pxerom_targets   := 8086100e 808610d3 80861209 10500940 10222000 10ec8139 1af41000 15ad07b0
roms/config.vga-bochs-display new file +3 -0
new file mode 100644
index 0000000000..d2adaaef66
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_DISPLAY_BOCHS=y
+CONFIG_VGA_PCI=y
roms/config.vga-ramfb new file +3 -0
new file mode 100644
index 0000000000..c809c799b9
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_RAMFB=y
+CONFIG_VGA_PCI=n
Signature · 1 line
2.9.3
#3 lore raw

PATCH 3/7 seabios: enable ide dma

In reply to Gerd Hoffmann

QNX reportedly requires this to boot.
Should also speed up booting other guests.

Note: Upstream seabios defaults this to 'n' to due to known problems on physical hardware (qemu not affected), and wouldn't flip the default to 'y'. So we adjust our local build config accordingly.

---
 roms/config.seabios-128k | 1 +
 roms/config.seabios-256k | 1 +
 2 files changed, 2 insertions(+)
roms/config.seabios-128k +1 -0
index 486ef0e132..35b5a07d8f 100644
@@ -2,6 +2,7 @@
 # need to turn off features (xhci,uas) to make it fit into 128k
 CONFIG_QEMU=y
 CONFIG_ROM_SIZE=128
+CONFIG_ATA_DMA=y
 CONFIG_BOOTSPLASH=n
 CONFIG_XEN=n
 CONFIG_USB_OHCI=n
roms/config.seabios-256k +1 -0
index 65e5015c2f..b14b614fcc 100644
@@ -1,3 +1,4 @@
 # for qemu machine types 2.0 + newer
 CONFIG_QEMU=y
 CONFIG_ROM_SIZE=256
+CONFIG_ATA_DMA=y
Signature · 1 line
2.9.3
#4 lore raw

PATCH 4/7 vgabios: remove submodule and build rules.

In reply to Gerd Hoffmann

It's the old, lgpl vgabios implementation.

Was left in as fallback when we switched to seavgabios, so we could easily switch back in case we see regressions. It's unused since years now, reportedly doesn't even build, and lacks support for recently (and not so recently) added display devices.

Zap it.

---
 .gitmodules   |  3 ---
 roms/Makefile | 18 ++----------------
 roms/vgabios  |  1 -
 3 files changed, 2 insertions(+), 20 deletions(-)
 delete mode 160000 roms/vgabios
.gitmodules +0 -3
index 49e9c2e3f4..d108478e0a 100644
@@ -1,6 +1,3 @@
-[submodule "roms/vgabios"]
-	path = roms/vgabios
-	url = git://git.qemu-project.org/vgabios.git/
 [submodule "roms/seabios"]
 	path = roms/seabios
 	url = git://git.qemu-project.org/seabios.git/
roms/Makefile +2 -16
index a73778f60b..f1ac85ae9b 100644
@@ -56,8 +56,7 @@ default:
 	@echo "nothing is build by default"
 	@echo "available build targets:"
 	@echo "  bios           -- update bios.bin (seabios)"
-	@echo "  seavgabios     -- update vgabios binaries (seabios)"
-	@echo "  lgplvgabios    -- update vgabios binaries (lgpl)"
+	@echo "  vgabios        -- update vgabios binaries (seabios)"
 	@echo "  sgabios        -- update sgabios binaries"
 	@echo "  pxerom         -- update nic roms (bios only)"
 	@echo "  efirom         -- update nic roms (bios+efi, this needs"
@@ -71,7 +70,7 @@ bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k
 	cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin
 	cp seabios/builds/seabios-256k/bios.bin ../pc-bios/bios-256k.bin
 
-seavgabios: $(patsubst %,seavgabios-%,$(vgabios_variants))
+vgabios seavgabios: $(patsubst %,seavgabios-%,$(vgabios_variants))
 
 seavgabios-isavga: build-seabios-config-vga-isavga
 	cp seabios/builds/vga-isavga/vgabios.bin ../pc-bios/vgabios.bin
@@ -94,17 +93,6 @@ build-seabios-config-%: config.%
 		OUT=$(CURDIR)/seabios/builds/$*/ all
 
 
-lgplvgabios: $(patsubst %,lgplvgabios-%,$(vgabios_variants))
-
-lgplvgabios-isavga: build-lgplvgabios
-	cp vgabios/VGABIOS-lgpl-latest.bin ../pc-bios/vgabios.bin
-lgplvgabios-%: build-lgplvgabios
-	cp vgabios/VGABIOS-lgpl-latest.$*.bin ../pc-bios/vgabios-$*.bin
-
-build-lgplvgabios:
-	$(MAKE) -C vgabios $(vgabios_targets)
-
-
 .PHONY: sgabios skiboot
 sgabios:
 	$(MAKE) -C sgabios
@@ -159,8 +147,6 @@ skiboot:
 
 clean:
 	rm -rf seabios/.config seabios/out seabios/builds
-	$(MAKE) -C vgabios clean
-	rm -f vgabios/VGABIOS-lgpl-latest*
 	$(MAKE) -C sgabios clean
 	rm -f sgabios/.depend
 	$(MAKE) -C ipxe/src veryclean
roms/vgabios deleted +0 -1
deleted file mode 160000
index 19ea12c230..0000000000
@@ -1 +0,0 @@
-Subproject commit 19ea12c230ded95928ecaef0db47a82231c2e485
Signature · 1 line
2.9.3
#5 lore raw

PATCH 5/7 seabios: update binaries

In reply to Gerd Hoffmann
---
 pc-bios/bios-256k.bin      | Bin 262144 -> 262144 bytes
 pc-bios/bios.bin           | Bin 131072 -> 131072 bytes
 pc-bios/vgabios-cirrus.bin | Bin 38400 -> 38400 bytes
 pc-bios/vgabios-qxl.bin    | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-stdvga.bin | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-virtio.bin | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-vmware.bin | Bin 38912 -> 38912 bytes
 pc-bios/vgabios.bin        | Bin 38400 -> 38400 bytes
 8 files changed, 0 insertions(+), 0 deletions(-)
pc-bios/bios-256k.bin binary +0 -0
index 0061dc99288bee61e60e31d1e24a52b97b0c5fb6..3b821600e56a1ab55b091bc67c7c4ce0fe6d8e4a 100644
GIT binary patch
pc-bios/bios.bin binary +0 -0
index 69bb8635ae36e95f3b066ae16ff9d44e8a3665ba..ec1430d593bfe062a1de6e6ff11c34478c3e5f31 100644
GIT binary patch
pc-bios/vgabios-cirrus.bin binary +0 -0
index cec498d59e254b64c4fc7ca291409c735736b43c..0122cfcfb269fd3088727cc1d7ff2918a81ca532 100644
GIT binary patch
pc-bios/vgabios-qxl.bin binary +0 -0
index 82c9970df73829e3886f503369f50c294c72558e..ecacad3f0d1c2ed9542835a18ef6667fbe05a98d 100644
GIT binary patch
pc-bios/vgabios-stdvga.bin binary +0 -0
index 8029c2ae126d461ccd3881ff06d944d2791d7446..5411cfd6beaa819dd11199ab85c4674c0f76b0c7 100644
GIT binary patch
pc-bios/vgabios-virtio.bin binary +0 -0
index 79333575e0a2980cee17d3677d4ab1098defcd99..aa1c118e4c13fbc19a96d818f219ed33696ead8d 100644
GIT binary patch
pc-bios/vgabios-vmware.bin binary +0 -0
index ba1718c7849a28ec0e0847236737d0d440358ed6..978951cf3a5bc059f1c18aef91026a2603616de9 100644
GIT binary patch
pc-bios/vgabios.bin binary +0 -0
index b624014bb93d67f6271aedc749abcd2df4b4f202..2aff8f143e741d7d31f48d3c022aa65b84073c40 100644
GIT binary patch
Signature · 1 line
2.9.3
#6 lore raw

PATCH 6/7 bochs-display: enable vgabios

In reply to Gerd Hoffmann

Add vgabios binary to pci rom bar.

---
 hw/display/bochs-display.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/bochs-display.c +1 -0
index 1187d77576..12d8a66c6c 100644
@@ -337,6 +337,7 @@ static void bochs_display_class_init(ObjectClass *klass, void *data)
     k->device_id = PCI_DEVICE_ID_QEMU_VGA;
 
     k->realize   = bochs_display_realize;
+    k->romfile   = "vgabios-bochs-display.bin";
     k->exit      = bochs_display_exit;
     dc->vmsd     = &vmstate_bochs_display;
     dc->props    = bochs_display_properties;
Signature · 1 line
2.9.3
#7 lore raw

PATCH 7/7 ramfb: enable vgabios

In reply to Gerd Hoffmann

Add vgabios binary to fw_cfg vgaroms.

---
 hw/display/ramfb.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/ramfb.c +1 -0
index 6867bce8ae..44c572c356 100644
@@ -88,6 +88,7 @@ RAMFBState *ramfb_setup(Error **errp)
 
     s = g_new0(RAMFBState, 1);
 
+    rom_add_vga("vgabios-ramfb.bin");
     fw_cfg_add_file_callback(fw_cfg, "etc/ramfb",
                              NULL, ramfb_fw_cfg_write, s,
                              &s->cfg, sizeof(s->cfg), false);
Signature · 1 line
2.9.3
#8 lore raw
In reply to Gerd Hoffmann

Hi,

Quoted 5 lines

seabios 1.11.2 is not released yet. The plan is to cherry-pick the changes needed to support the new qemu 3.0 display devices (bochs-display and ramfb) into the 1.11-stable branch for the 1.11.2 release. Current state is here:

   https://git.kraxel.org/cgit/seabios/log/?h=1.11-stable-testing

seabios release 1.11.2 tagged and pushed now. Re-created the branch to make sure the commit ids in the log are correct (they changed due to a repo setup issue). Cherry-picked one additional bugfix commit.

cheers,
Gerd